  :root {
    --noir: #0A0A0A;
    --noir-riche: #111111;
    --or: #C9A961;
    --or-clair: #D4B876;
    --or-fonce: #A8893F;
    --blanc-casse: #F5F2EC;
    --gris-doux: #8A8A8A;
    --serif: 'Gilda Display', serif;
    --serif-italic: 'Cormorant Garamond', serif;
    --sans: 'Inter', sans-serif;
    --color-onyx: #0A0A0A;
    --color-perle: #E8E6E1;
    --color-bronze: #B89974;
    --app-wallpaper: url('/assets/wallpapers/app-wallpaper.png');
    --app-wallpaper-scrim: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 38%, rgba(0, 0, 0, 0.08) 100%);
    --web-wallpaper: url('/assets/wallpapers/web-wallpaper.png');
    --web-wallpaper-scrim: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, transparent 42%, rgba(0, 0, 0, 0.06) 100%);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: var(--sans);
    background: var(--noir);
    color: var(--blanc-casse);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* ========== LANGUAGE TOGGLE ========== */
  .lang-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    background: rgba(201, 169, 97, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 169, 97, 0.4);
    color: var(--or);
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease, opacity 0.1s ease;
    font-family: var(--sans);
  }
  .lang-toggle:hover {
    background: var(--or);
    color: var(--noir);
  }

  /* Language Visibility Logic */
  body.fr .en { display: none !important; }
  body.en .fr { display: none !important; }

  /* ========== NAVIGATION ========== */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 2rem 4rem;
    display: flex; justify-content: center; align-items: center;
    transition: padding 0.5s ease;
    background: transparent;
  }
  nav::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
  }
  nav.scrolled {
    padding: 1.2rem 4rem;
  }
  .logo {
    font-family: var(--serif);
    font-size: 1.5rem; font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--or);
    text-transform: uppercase;
  }
  .nav-logo-link {
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.1s ease;
  }
  .nav-logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(201,169,97,0.2));
    transition: filter 0.3s ease;
  }
  .nav-logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(201,169,97,0.45));
  }
  .footer-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.8rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(201,169,97,0.15));
  }
  .nav-links { display: flex; gap: 3rem; list-style: none; transition: opacity 0.1s ease; }
  .nav-links a {
    color: var(--blanc-casse); text-decoration: none;
    font-size: 0.85rem; font-weight: 400;
    letter-spacing: 0.15em; text-transform: uppercase;
    transition: color 0.3s ease; position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 1px; background: var(--or);
    transition: width 0.3s ease;
  }
  .nav-links a:hover { color: var(--or); }
  .nav-links a:hover::after { width: 100%; }
  .nav-cta {
    color: var(--or); text-decoration: none;
    font-size: 0.75rem; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 400;
    transition: opacity 0.3s ease;
  }
  .nav-cta:hover { opacity: 0.65; }

  /* ========== HERO ========== */
  .hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 60px 4rem 6rem;
    position: relative;
    background: 
      linear-gradient(to right, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.75) 12%, rgba(10, 10, 10, 0) 38%, rgba(10, 10, 10, 0) 62%, rgba(10, 10, 10, 0.75) 88%, rgba(10, 10, 10, 1) 100%),
      linear-gradient(to right, rgba(10, 10, 10, 0.85) 40%, rgba(10, 10, 10, 0.4) 100%),
      url('/assets/wallpapers/hero-bg.png') center center / cover no-repeat;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
      linear-gradient(rgba(201, 169, 97, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(201, 169, 97, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
  }
  .hero::after {
    content: '';
    position: absolute; top: 38%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(196, 168, 108, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
  }
  .hero-content {
    max-width: 760px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    position: relative; z-index: 2; width: 100%;
    margin-top: -50px;
  }
  .hero-text {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; gap: 2.75rem;
  }
  .hero-text h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 400; line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--blanc-casse);
  }
  .hero-text h1 .gold {
    color: var(--or); font-style: italic;
    font-family: var(--serif-italic); font-weight: 300;
    font-size: 0.73em; display: block;
  }
  .hero-text .subtitle-wrapper {
    max-width: 420px;
    margin: 10px auto 0;
  }
  .hero-text .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #B8A88A;
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 420px;
    margin: 48px auto 0;
  }
  .hero-text .subtitle + .subtitle {
    margin-top: 32px;
    margin-bottom: 0;
  }
  .hero-text .subtitle-wrapper .subtitle {
    margin: 0;
  }
  .hero-text .subtitle-wrapper .subtitle + .subtitle {
    margin-top: 32px;
  }
  .hero-ctas { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
  .btn-link {
    color: var(--or); text-decoration: none;
    font-size: 0.78rem; letter-spacing: 0.15em;
    text-transform: uppercase; font-weight: 400;
    transition: opacity 0.3s ease;
    display: inline-flex; align-items: center; gap: 0.5rem;
  }
  .btn-link:hover { opacity: 0.65; }
  .btn-primary {
    padding: 1.1rem 2.5rem; background: var(--or); color: var(--noir);
    text-decoration: none; font-size: 0.8rem; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 500; transition: all 0.3s ease;
    border: 1px solid var(--or); display: inline-block;
  }
  .btn-primary:hover { background: transparent; color: var(--or); }
  .btn-secondary {
    padding: 1.1rem 2.5rem; background: transparent; color: var(--blanc-casse);
    text-decoration: none; font-size: 0.8rem; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 400; transition: all 0.3s ease;
    border: 1px solid rgba(245, 242, 236, 0.2); display: inline-block;
  }
  .btn-secondary:hover { border-color: var(--or); color: var(--or); }

  /* ========== SCROLL KEY ========== */
  .hero-scroll-key {
    position: absolute;
    bottom: 2.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    cursor: pointer;
    opacity: 0;
    text-decoration: none;
    animation: keyReveal 1.2s ease-out 2s forwards, keyFloat 4s ease-in-out 3.2s infinite;
  }
  @keyframes keyReveal {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  @keyframes keyFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
  }
  .hero-scroll-key svg {
    width: 14px;
    height: auto;
    color: var(--or);
    opacity: 0.5;
    filter: drop-shadow(0 0 6px rgba(201, 169, 97, 0.2));
    transition: opacity 0.4s ease, filter 0.4s ease;
    animation: keyBurst 3.2s ease-in-out 3.5s infinite;
  }
  .hero-scroll-key:hover svg {
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(201, 169, 97, 0.8)) drop-shadow(0 0 40px rgba(212, 184, 118, 0.5));
    animation-play-state: paused;
  }

  @keyframes keyBurst {
    0%, 45%, 100% {
      opacity: 0.45;
      filter: drop-shadow(0 0 4px rgba(201, 169, 97, 0.12));
    }
    52% {
      opacity: 1;
      filter: drop-shadow(0 0 22px rgba(201, 169, 97, 0.95)) drop-shadow(0 0 45px rgba(212, 184, 118, 0.65)) drop-shadow(0 0 8px rgba(255, 240, 190, 0.8));
    }
    62% {
      opacity: 0.5;
      filter: drop-shadow(0 0 5px rgba(201, 169, 97, 0.15));
    }
    70% {
      opacity: 1;
      filter: drop-shadow(0 0 26px rgba(201, 169, 97, 1)) drop-shadow(0 0 55px rgba(212, 184, 118, 0.7)) drop-shadow(0 0 10px rgba(255, 240, 190, 0.9));
    }
    82% {
      opacity: 0.45;
      filter: drop-shadow(0 0 4px rgba(201, 169, 97, 0.12));
    }
  }

  /* Hero background data-particles canvas */
  .hero-data-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  /* Gold orbit particles canvas */
  .key-orbit-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 130px;
    height: 130px;
  }

  /* ========== HERO ANIMATIONS ========== */
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-animate-title {
    animation: heroFadeUp 1.2s ease-out forwards;
    opacity: 0;
  }
  .hero-animate-subtitle {
    animation: heroFadeUp 1.2s ease-out 0.3s forwards;
    opacity: 0;
  }

  /* ── Loader luxe ── */
  .hero-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 160px;
    margin: 0 auto 0.6rem;
    opacity: 0;
    animation: heroFadeUp 1s ease-out 0.8s forwards;
  }
  .hero-loader-label {
    font-family: var(--sans);
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(201, 169, 97, 0.28);
    transition: color 0.8s ease, opacity 0.8s ease;
  }
  .hero-loader-track {
    width: 100%;
    height: 1px;
    background: rgba(201, 169, 97, 0.10);
    border-radius: 2px;
    position: relative;
  }
  /* halo fixe sur toute la piste */
  .hero-loader-track::before {
    content: '';
    position: absolute;
    inset: -2px 0;
    background: rgba(201, 169, 97, 0.04);
    border-radius: 2px;
    pointer-events: none;
  }
  .hero-loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
      to right,
      rgba(201, 169, 97, 0.05) 0%,
      rgba(201, 169, 97, 0.55) 80%,
      rgba(255, 232, 160, 0.85) 100%
    );
    border-radius: 2px;
    position: relative;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* orbe lumineux à l'extrémité du fill */
  .hero-loader-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 248, 210, 0.95);
    box-shadow: 0 0 5px 2px rgba(201, 169, 97, 0.55),
                0 0 12px 4px rgba(201, 169, 97, 0.20);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .hero-loader-fill.active::after { opacity: 1; }
  /* flash complet à 100 % */
  @keyframes loaderComplete {
    0%   { box-shadow: none; }
    40%  { box-shadow: 0 0 10px 3px rgba(201,169,97,0.45); }
    100% { box-shadow: none; }
  }
  .hero-loader-fill.done {
    animation: loaderComplete 1.2s ease forwards;
  }
  .hero-loader.fading {
    transition: opacity 1.8s ease;
    opacity: 0 !important;
  }

  /* ── Cloud session loader (Sanctuaire) ── */
  .ps-cloud-session-loader {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    background: rgba(4, 4, 10, 0.62);
    backdrop-filter: blur(10px) saturate(1.05);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
    opacity: 1;
    transition: opacity 1.1s ease, visibility 1.1s ease;
    pointer-events: all;
  }
  .ps-cloud-session-loader[hidden] { display: none !important; }
  .ps-cloud-session-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 35px;
    background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(201, 169, 97, 0.07) 0%, transparent 72%);
    pointer-events: none;
  }
  .ps-cloud-session-loader.fading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .ps-cloud-session-loader.is-sanctuary-switch {
    z-index: 40;
    background: rgba(4, 4, 10, 0.94);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    transition: opacity 0.65s ease, visibility 0.65s ease;
  }
  .ps-cloud-session-loader.is-sanctuary-switch.fading {
    opacity: 0;
  }
  .ps-cloud-session-loader-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(180px, 58vw);
    animation: ps-lock-fade-in 0.75s ease both;
  }
  .ps-cloud-session-loader-orn {
    width: 28px;
    height: 14px;
    border: 1px solid rgba(201, 169, 97, 0.22);
    border-bottom: none;
    border-radius: 28px 28px 0 0;
    margin-bottom: 2px;
    opacity: 0.7;
  }
  .ps-cloud-session-loader-label {
    font-family: var(--sans);
    font-size: 0.58rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(201, 169, 97, 0.42);
  }
  .ps-cloud-session-loader-step {
    font-family: var(--sans);
    font-size: 0.5rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(201, 169, 97, 0.26);
    min-height: 0.7rem;
    transition: opacity 0.35s ease, color 0.35s ease;
  }
  .ps-cloud-session-loader-step:empty { display: none; }
  .ps-cloud-session-loader-track {
    width: 100%;
    height: 1px;
    background: rgba(201, 169, 97, 0.10);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }
  .ps-cloud-session-loader-track::before {
    content: '';
    position: absolute;
    inset: -2px 0;
    background: rgba(201, 169, 97, 0.04);
    border-radius: 2px;
    pointer-events: none;
  }
  .ps-cloud-session-loader-track::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(201, 169, 97, 0.18) 45%,
      rgba(255, 232, 160, 0.28) 50%,
      rgba(201, 169, 97, 0.18) 55%,
      transparent 100%
    );
    transform: translateX(-100%);
    animation: ps-cloud-loader-shimmer 2.4s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes ps-cloud-loader-shimmer {
    0%   { transform: translateX(-100%); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
  }
  .ps-cloud-session-loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
      to right,
      rgba(201, 169, 97, 0.05) 0%,
      rgba(201, 169, 97, 0.55) 80%,
      rgba(255, 232, 160, 0.85) 100%
    );
    border-radius: 2px;
    position: relative;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .ps-cloud-session-loader-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 248, 210, 0.95);
    box-shadow: 0 0 5px 2px rgba(201, 169, 97, 0.55),
                0 0 12px 4px rgba(201, 169, 97, 0.20);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .ps-cloud-session-loader-fill.active::after { opacity: 1; }
  .ps-cloud-session-loader-fill.done {
    animation: loaderComplete 1.2s ease forwards;
  }

  /* ── Logo app — point focal du héro ── */
  .hero-app-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 0.15rem;
    opacity: 0;
    animation: heroFadeUp 1s ease-out 0.55s forwards;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .hero-app-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    animation: heroLogoFloat 5s ease-in-out 1.8s infinite;
  }
  .hero-app-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.28) 0%, rgba(201, 169, 97, 0.08) 42%, transparent 72%);
    animation: heroLogoAura 4.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }
  .hero-app-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 148px;
    height: 148px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.78;
    transition: opacity 0.45s ease;
  }
  .hero-app-logo-img {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    object-fit: contain;
    display: block;
    opacity: 0.82;
    filter: brightness(1) drop-shadow(0 0 16px rgba(201, 169, 97, 0.42)) drop-shadow(0 0 32px rgba(212, 184, 118, 0.22));
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
    animation: heroLogoShine 4.2s ease-in-out 1.2s infinite;
  }
  .hero-app-link:hover .hero-app-logo-img,
  .hero-app-link:focus-visible .hero-app-logo-img {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(1.08) drop-shadow(0 0 24px rgba(201, 169, 97, 0.85)) drop-shadow(0 0 48px rgba(212, 184, 118, 0.55)) drop-shadow(0 0 8px rgba(255, 240, 190, 0.9));
    animation-play-state: paused;
  }
  .hero-app-link:focus-visible {
    outline: 1px solid rgba(201, 169, 97, 0.45);
    outline-offset: 8px;
    border-radius: 2px;
  }
  .hero-app-link:hover .hero-app-orbit,
  .hero-app-link:focus-visible .hero-app-orbit { opacity: 1; }
  .hero-app-link:hover .hero-app-logo,
  .hero-app-link:focus-visible .hero-app-logo { animation-play-state: paused; }
  @keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
  }
  @keyframes heroLogoAura {
    0%, 100% { opacity: 0.55; transform: scale(0.92); }
    50%       { opacity: 1; transform: scale(1.06); }
  }
  @keyframes heroLogoShine {
    0%, 58%, 100% {
      opacity: 0.78;
      filter: brightness(0.98) drop-shadow(0 0 14px rgba(201, 169, 97, 0.35)) drop-shadow(0 0 28px rgba(212, 184, 118, 0.18));
    }
    66% {
      opacity: 1;
      filter: brightness(1.12) drop-shadow(0 0 22px rgba(201, 169, 97, 0.72)) drop-shadow(0 0 44px rgba(212, 184, 118, 0.42)) drop-shadow(0 0 10px rgba(255, 240, 190, 0.85));
    }
    74% {
      opacity: 0.82;
      filter: brightness(1) drop-shadow(0 0 16px rgba(201, 169, 97, 0.4));
    }
    82% {
      opacity: 1;
      filter: brightness(1.1) drop-shadow(0 0 26px rgba(201, 169, 97, 0.78)) drop-shadow(0 0 50px rgba(212, 184, 118, 0.48));
    }
  }
  @media (max-width: 768px) {
    .hero-app-logo { width: 124px; height: 124px; }
    .hero-app-orbit { width: 124px; height: 124px; }
    .hero-app-logo-img { width: 64px; height: 64px; }
  }

  /* ========== MANIFESTE ========== */
  .manifeste {
    padding: 10rem 4rem; text-align: center; background: var(--noir); position: relative;
  }
  .manifeste-content { max-width: 900px; margin: 0 auto; }
  .manifeste-quote {
    font-family: var(--serif-italic); font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 300; line-height: 1.3; color: var(--or); font-style: italic; margin-bottom: 2rem;
  }
  .manifeste-author { font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--blanc-casse); margin-top: 1.5rem; }
  .ornement {
    display: inline-block; width: 60px; height: 1px; background: var(--or); margin: 2.5rem auto 0; position: relative;
  }
  .ornement::before, .ornement::after {
    content: ''; position: absolute; top: 50%; width: 4px; height: 4px; background: var(--or); border-radius: 50%; transform: translateY(-50%);
  }
  .ornement::before { left: -10px; } .ornement::after { right: -10px; }

  /* ========== CONCEPT ========== */
  .concept {
    padding: 10rem 4rem; background: linear-gradient(180deg, var(--noir) 0%, #050505 100%); position: relative; overflow: hidden;
  }
  .concept::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(15, 26, 46, 0.05) 0%, transparent 50%);
    pointer-events: none;
  }
  .concept-content { max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }
  .concept-header { text-align: center; max-width: 900px; margin: 0 auto 6rem; }
  .concept-header .section-eyebrow { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--or); margin-bottom: 1.5rem; }
  .concept-header h2 {
    font-family: var(--serif); font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.2; margin-bottom: 2rem; color: var(--blanc-casse); letter-spacing: -0.02em;
  }
  .concept-header h2 .italic { font-family: var(--serif-italic); font-style: italic; color: var(--or); font-weight: 300; }
  .concept-header p { font-size: 1.1rem; color: var(--gris-doux); line-height: 1.8; font-weight: 300; }

  .concept-speech {
    max-width: 900px; margin: 0 auto 6rem; padding: 4rem; background: rgba(201, 169, 97, 0.03); border: 1px solid rgba(201, 169, 97, 0.2); position: relative;
  }
  .concept-speech::before {
    content: '"'; position: absolute; top: -20px; left: 40px; font-family: var(--serif); font-size: 6rem; color: var(--or); opacity: 0.3; line-height: 1;
  }
  .concept-speech p {
    font-family: var(--serif-italic); font-size: 1.3rem; font-style: italic; color: var(--blanc-casse); line-height: 1.8; margin-bottom: 1.5rem; font-weight: 300;
  }
  .concept-speech p:last-child { margin-bottom: 0; }
  .concept-speech .highlight { color: var(--or); font-weight: 400; }

  /* ========== LE CONFIDENT ========== */
  .confident {
    padding: 8rem 4rem; background: linear-gradient(180deg, #050505 0%, var(--noir) 100%); position: relative; overflow: hidden;
  }
  .confident::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.06) 0%, transparent 60%); pointer-events: none;
  }
  .confident-content {
    max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; align-items: center; position: relative; z-index: 2;
  }
  .confident-text .section-eyebrow { color: var(--or); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1.5rem; }
  .confident-text h2 {
    font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.2; margin-bottom: 1.5rem; color: var(--blanc-casse); letter-spacing: -0.02em;
  }
  .confident-text h2 .italic { font-family: var(--serif-italic); font-style: italic; color: var(--or); font-weight: 300; }
  .confident-text p { font-size: 1.05rem; color: var(--gris-doux); line-height: 1.8; margin-bottom: 1.5rem; font-weight: 300; }
  .confident-text .emphasis {
    font-family: var(--serif-italic); font-style: italic; color: var(--or-clair); font-size: 1.2rem; line-height: 1.5; margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--or);
  }

  /* ── Logo app — colonne visuelle Le Confident (page d'accueil) ── */
  .confident-app-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  html.aigyros-app-standalone .confident-app-visual { display: none !important; }
  html:not(.aigyros-app-standalone) .phone-mockup-anchor { display: none !important; }

  .confident-app-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .confident-app-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    animation: heroLogoFloat 5.5s ease-in-out infinite;
  }
  .confident-app-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.24) 0%, rgba(201, 169, 97, 0.07) 42%, transparent 72%);
    animation: heroLogoAura 4.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }
  .confident-app-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.72;
    transition: opacity 0.45s ease;
  }
  .confident-app-logo-img {
    position: relative;
    z-index: 2;
    width: 104px;
    height: 104px;
    object-fit: contain;
    display: block;
    opacity: 0.84;
    filter: brightness(1) drop-shadow(0 0 14px rgba(201, 169, 97, 0.38)) drop-shadow(0 0 28px rgba(212, 184, 118, 0.2));
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
    animation: heroLogoShine 4.2s ease-in-out 0.6s infinite;
  }
  .confident-app-link:hover .confident-app-logo-img,
  .confident-app-link:focus-visible .confident-app-logo-img {
    opacity: 1;
    transform: scale(1.06);
    filter: brightness(1.06) drop-shadow(0 0 20px rgba(201, 169, 97, 0.75)) drop-shadow(0 0 40px rgba(212, 184, 118, 0.45)) drop-shadow(0 0 8px rgba(255, 240, 190, 0.85));
    animation-play-state: paused;
  }
  .confident-app-link:focus-visible {
    outline: 1px solid rgba(201, 169, 97, 0.45);
    outline-offset: 8px;
    border-radius: 2px;
  }
  .confident-app-link:hover .confident-app-orbit,
  .confident-app-link:focus-visible .confident-app-orbit { opacity: 1; }
  .confident-app-link:hover .confident-app-logo,
  .confident-app-link:focus-visible .confident-app-logo { animation-play-state: paused; }

  .phone-mockup-anchor { position: relative; }
  .phone-mockup-spacer {
    display: none;
    width: 320px; height: 640px;
    margin: 0 auto;
    pointer-events: none;
  }
  .phone-mockup-anchor.is-floating-active .phone-mockup-spacer { display: block; }
  .phone-float-hint {
    display: none;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(245, 242, 236, 0.42);
    margin-top: 1.1rem;
    letter-spacing: 0.06em;
    font-weight: 300;
  }

  .phone-mockup {
    position: relative; width: 320px; height: 640px; margin: 0 auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%); border-radius: 45px; padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5), 0 0 0 2px #C9A961, inset 0 0 0 1px rgba(201, 169, 97, 0.4);
    animation: float-phone 6s ease-in-out infinite;
  }
  @keyframes float-phone { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
  .phone-screen {
    width: 100%; height: 100%; background: linear-gradient(180deg, #1a1a2e 0%, #0a0a1a 100%); border-radius: 35px; padding: 50px 20px 20px; position: relative; overflow: hidden;
  }
  .phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 100px; height: 25px; background: #000; border-radius: 20px; z-index: 4; }
  .phone-time { font-size: 0.75rem; color: var(--blanc-casse); text-align: center; margin-bottom: 2rem; font-weight: 500; letter-spacing: 0.1em; }
  .notification {
    background: rgba(245, 242, 236, 0.12); backdrop-filter: blur(20px); border: 1px solid rgba(201, 169, 97, 0.2); border-radius: 20px; padding: 1.2rem; margin-bottom: 1rem;
  }
  .notification-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
  .notification-icon {
    width: 28px; height: 28px; background: linear-gradient(135deg, var(--or) 0%, var(--or-fonce) 100%); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-family: var(--serif-italic); color: var(--noir); font-size: 0.9rem; font-style: italic; font-weight: 500;
  }
  .notification-app { font-size: 0.7rem; color: var(--or); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
  .notification-time { font-size: 0.65rem; color: rgba(245, 242, 236, 0.5); margin-left: auto; }
  .notification-title { font-family: var(--serif); font-size: 0.95rem; color: var(--blanc-casse); margin-bottom: 0.3rem; font-weight: 500; }
  .notification-body { font-family: var(--serif-italic); font-size: 0.9rem; color: rgba(245, 242, 236, 0.85); font-style: italic; line-height: 1.4; }
  .phone-actions { position: absolute; bottom: 30px; left: 20px; right: 20px; display: flex; gap: 0.8rem; }
  .action-btn {
    flex: 1; padding: 0.8rem; background: rgba(201, 169, 97, 0.15); border: 1px solid var(--or); border-radius: 12px;
    color: var(--or); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; font-weight: 500;
  }

  /* ========== HÉRITAGES ========== */
  .legacy-section {
    padding: 10rem 4rem;
    position: relative;
    overflow: hidden;
  }
  .legacy-section:nth-child(odd) { background: var(--noir); }
  .legacy-section:nth-child(even) { background: var(--noir-riche); }
  .legacy-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
  }
  .legacy-number {
    font-family: var(--serif);
    font-size: 8rem;
    color: var(--or);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 2rem;
    position: absolute;
    top: 4rem;
    left: 4rem;
    pointer-events: none;
    user-select: none;
  }
  .legacy-header { margin-bottom: 3rem; }
  .legacy-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--blanc-casse);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
  }
  .legacy-subtitle {
    font-family: var(--serif-italic);
    font-size: 1.3rem;
    color: var(--or);
    font-style: italic;
    font-weight: 300;
    line-height: 1.4;
  }
  .legacy-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
  }
  .legacy-icon svg {
    stroke: var(--or);
    stroke-width: 1.2;
    fill: none;
  }
  .legacy-description {
    font-size: 1.05rem;
    color: var(--gris-doux);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2.5rem;
  }
  .legacy-features {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .legacy-features li {
    font-size: 0.95rem;
    color: var(--blanc-casse);
    line-height: 1.7;
    padding-left: 28px;
    position: relative;
    margin-bottom: 1rem;
    font-weight: 300;
    opacity: 0.85;
  }
  .legacy-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--or);
    opacity: 0.6;
  }
  @media (max-width: 1024px) {
    .legacy-content { grid-template-columns: 1fr; gap: 3rem; }
    .legacy-number { position: static; font-size: 5rem; margin-bottom: 1rem; }
    .legacy-section { padding: 6rem 2rem; }
  }
  @media (max-width: 768px) {
    .legacy-section { padding: 4rem 1.5rem; }
    .legacy-title { font-size: 2rem; }
    .legacy-subtitle { font-size: 1.1rem; }
  }
  /* ========== CASE STUDIES ========== */
  .case-studies { padding: 8rem 4rem; background: var(--noir); }
  .case-studies .section-header { text-align: center; max-width: 800px; margin: 0 auto 5rem; }
  .case-studies .section-eyebrow { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--or); margin-bottom: 1.5rem; }
  .case-studies .section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.2; margin-bottom: 1.5rem; color: var(--blanc-casse); }
  .case-studies .section-subtitle { font-size: 1.05rem; color: var(--gris-doux); font-weight: 300; line-height: 1.7; }
  .case-studies-container { max-width: 1100px; margin: 0 auto; }
  .case-study-card {
    margin-bottom: 2rem;
    border: 1px solid rgba(201, 169, 97, 0.2);
    background: rgba(201, 169, 97, 0.02);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
  }
  .case-study-card.visible { animation: caseStudyIn 0.6s ease forwards; }
  .case-study-card:nth-child(1).visible { animation-delay: 0.05s; }
  .case-study-card:nth-child(2).visible { animation-delay: 0.15s; }
  .case-study-card:nth-child(3).visible { animation-delay: 0.25s; }
  .case-study-card:nth-child(4).visible { animation-delay: 0.35s; }
  .case-study-card:nth-child(5).visible { animation-delay: 0.45s; }
  .case-study-card:nth-child(6).visible { animation-delay: 0.55s; }
  .case-study-card:nth-child(7).visible { animation-delay: 0.65s; }
  @keyframes caseStudyIn { to { opacity: 1; transform: translateY(0); } }
  .case-study-card:hover { border-color: rgba(201, 169, 97, 0.4); }
  .case-study-card.active { background: rgba(201, 169, 97, 0.05); }
  .case-study-header { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem; }
  .case-study-header-text { flex: 1; padding-right: 2rem; }
  .case-study-title { font-family: var(--serif); font-size: 1.5rem; color: var(--blanc-casse); font-weight: 400; line-height: 1.3; }
  .case-study-subtitle { font-family: var(--serif-italic); font-size: 0.95rem; color: var(--or); font-style: italic; margin-top: 0.5rem; font-weight: 300; }
  .case-study-indicator { font-size: 2rem; color: var(--or); transition: transform 0.4s ease; flex-shrink: 0; line-height: 1; font-weight: 300; }
  .case-study-card.active .case-study-indicator { transform: rotate(45deg); }
  .case-studies .case-study-content {
    max-width: none;
    margin: 0;
    background: transparent;
    border: none;
    position: static;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.6s ease;
    padding: 0 2.5rem;
  }
  .case-studies .case-study-content::before { display: none; }
  .case-studies .case-study-card.active .case-study-content { max-height: 1200px; padding: 0 2.5rem 2.5rem; }
  .case-study-section { margin-bottom: 1.8rem; }
  .case-study-section:last-child { margin-bottom: 0; }
  .case-study-section-title { font-family: var(--serif); color: var(--or); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.8rem; }
  .case-study-section-text { font-size: 0.95rem; color: var(--gris-doux); line-height: 1.8; font-weight: 300; }

  /* ========== TIMELINE ========== */
  /* — Trois Dimensions — */
  .dimensions {
    padding: 8rem 4rem;
    background: linear-gradient(180deg, #050505 0%, var(--noir) 100%);
    position: relative;
  }
  .dimensions-content { max-width: 1200px; margin: 0 auto; }
  .dimensions .section-header { text-align: center; max-width: 800px; margin: 0 auto 5rem; }
  .dimensions .section-eyebrow { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--or); margin-bottom: 1.5rem; }
  .dimensions .section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.2; color: var(--blanc-casse); }
  .dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .dimension-card {
    padding: 2.5rem 2rem;
    background: rgba(201, 169, 97, 0.03);
    border: 1px solid rgba(201, 169, 97, 0.2);
    position: relative;
    transition: border-color 0.4s ease, background 0.4s ease;
  }
  .dimension-card:hover {
    border-color: rgba(201, 169, 97, 0.4);
    background: rgba(201, 169, 97, 0.05);
  }
  .dimension-number {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--or);
    opacity: 0.5;
    display: block;
    margin-bottom: 1.25rem;
  }
  .dimension-card h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--blanc-casse);
    font-weight: 400;
    margin-bottom: 1.25rem;
    line-height: 1.3;
  }
  .dimension-card p {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--gris-doux);
    line-height: 1.7;
    font-weight: 300;
  }

  /* ========== ANATOMIE DU SANCTUAIRE ========== */
  .anatomy {
    padding: 9rem 4rem;
    background: var(--noir);
    position: relative;
  }
  .anatomy-content { max-width: 1200px; margin: 0 auto; }
  .anatomy .section-header { text-align: center; max-width: 720px; margin: 0 auto 5rem; }
  .anatomy .section-eyebrow {
    font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--or); margin-bottom: 1.5rem;
  }
  .anatomy .section-title {
    font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 400; line-height: 1.2; margin-bottom: 1.25rem; color: var(--blanc-casse);
  }
  .anatomy .section-subtitle {
    font-family: var(--serif-italic); font-size: 1.15rem; font-style: italic;
    color: var(--gris-doux); font-weight: 300; line-height: 1.6;
  }
  .anatomy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .anatomy-card {
    padding: 2.75rem 2.25rem;
    background: #0D0D0D;
    border: 1px solid rgba(201, 169, 97, 0.28);
    transition: border-color 0.4s ease, background 0.4s ease;
  }
  .anatomy-card:hover {
    border-color: rgba(201, 169, 97, 0.5);
    background: #101010;
  }
  .anatomy-card--coeur {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    background:
      linear-gradient(to top, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.72) 42%, rgba(8, 8, 8, 0.28) 100%),
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('/assets/illustrations/coeur-physique.png') center 45% / cover no-repeat;
    transition: border-color 0.4s ease, background 0.4s ease;
  }
  .anatomy-card--coeur:hover {
    background:
      linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.62) 42%, rgba(8, 8, 8, 0.18) 100%),
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('/assets/illustrations/coeur-physique.png') center 45% / cover no-repeat;
  }
  .anatomy-card--coeur .anatomy-icon { display: none; }
  .anatomy-card--coeur h3,
  .anatomy-card--coeur p { position: relative; z-index: 1; }
  .anatomy-card--isolation {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    background:
      linear-gradient(to top, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.72) 42%, rgba(8, 8, 8, 0.28) 100%),
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('/assets/illustrations/isolation-absolue.png') center 40% / cover no-repeat;
    transition: border-color 0.4s ease, background 0.4s ease;
  }
  .anatomy-card--isolation:hover {
    background:
      linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.62) 42%, rgba(8, 8, 8, 0.18) 100%),
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('/assets/illustrations/isolation-absolue.png') center 40% / cover no-repeat;
  }
  .anatomy-card--isolation .anatomy-icon { display: none; }
  .anatomy-card--isolation h3,
  .anatomy-card--isolation p { position: relative; z-index: 1; }
  .anatomy-card--chiffrement {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    background:
      linear-gradient(to top, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.72) 42%, rgba(8, 8, 8, 0.28) 100%),
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('/assets/illustrations/chiffrement.png') center center / cover no-repeat;
    transition: border-color 0.4s ease, background 0.4s ease;
  }
  .anatomy-card--chiffrement:hover {
    background:
      linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.62) 42%, rgba(8, 8, 8, 0.18) 100%),
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('/assets/illustrations/chiffrement.png') center center / cover no-repeat;
  }
  .anatomy-card--chiffrement .anatomy-icon { display: none; }
  .anatomy-card--chiffrement h3,
  .anatomy-card--chiffrement p { position: relative; z-index: 1; }
  .anatomy-card--support {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    background:
      linear-gradient(to top, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.72) 42%, rgba(8, 8, 8, 0.28) 100%),
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('/assets/illustrations/support-centenaire.png') center 40% / cover no-repeat;
    transition: border-color 0.4s ease, background 0.4s ease;
  }
  .anatomy-card--support:hover {
    background:
      linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.62) 42%, rgba(8, 8, 8, 0.18) 100%),
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('/assets/illustrations/support-centenaire.png') center 40% / cover no-repeat;
  }
  .anatomy-card--support .anatomy-icon { display: none; }
  .anatomy-card--support h3,
  .anatomy-card--support p { position: relative; z-index: 1; }
  .anatomy-icon {
    width: 40px; height: 40px; margin-bottom: 1.75rem;
  }
  .anatomy-icon svg {
    width: 100%; height: 100%;
    stroke: var(--or);
    stroke-width: 1;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .anatomy-card h3 {
    font-family: var(--serif); font-size: 1.35rem; font-weight: 400;
    color: var(--blanc-casse); margin-bottom: 1rem; line-height: 1.35;
  }
  .anatomy-card p {
    font-family: var(--sans); font-size: 0.95rem; color: var(--gris-doux);
    line-height: 1.75; font-weight: 300;
  }

  .timeline-section { padding: 8rem 4rem 3rem; background: var(--noir); }
  .timeline-section .section-header { text-align: center; max-width: 800px; margin: 0 auto 6rem; }
  .timeline-section .section-eyebrow { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--or); margin-bottom: 1.5rem; }
  .timeline-section .section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.2; margin-bottom: 1.5rem; color: var(--blanc-casse); }
  .timeline-section .section-subtitle { font-size: 1.05rem; color: var(--gris-doux); font-weight: 300; line-height: 1.7; }
  .timeline { max-width: 1200px; margin: 0 auto; position: relative; padding: 4rem 0; }
  .timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(to bottom, transparent, var(--or), transparent); transform: translateX(-50%); }
  .timeline-item { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3rem; margin-bottom: 4rem; align-items: center; }
  .timeline-item:nth-child(even) .timeline-content { grid-column: 3; text-align: left; }
  .timeline-item:nth-child(even) .timeline-empty { grid-column: 1; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: right; }
  .timeline-dot { width: 16px; height: 16px; background: var(--or); border-radius: 50%; position: relative; z-index: 2; box-shadow: 0 0 0 4px var(--noir), 0 0 0 5px var(--or); }
  .timeline-period { font-family: var(--serif-italic); font-size: 1.5rem; color: var(--or); font-style: italic; margin-bottom: 0.5rem; font-weight: 500; }
  .timeline-title { font-family: var(--serif); font-size: 1.3rem; color: var(--blanc-casse); margin-bottom: 0.8rem; font-weight: 500; }
  .timeline-desc { font-size: 0.95rem; color: var(--gris-doux); line-height: 1.6; font-weight: 300; }


  /* ========== FONDATEUR ========== */
  .fondateur {
    padding: 7vh 8vw 16vh;
    background: var(--noir);
    position: relative;
    overflow: hidden;
  }
  .fondateur-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8vw;
    align-items: center;
  }
  .fondateur-portrait-wrap.fade-in { transition-delay: 0.2s; }
  .fondateur-portrait-wrap {
    width: 75%;
    margin: 0 auto;
  }
  .fondateur-portrait-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid #B89974;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  }
  .fondateur-portrait-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.3), transparent);
    pointer-events: none;
    z-index: 1;
  }
  .fondateur-portrait-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: filter 1.2s ease;
  }
  .fondateur-portrait-frame:hover img {
    filter: grayscale(60%) contrast(1.1) brightness(0.97);
  }
  .fondateur-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #B89974;
    margin-bottom: 2rem;
  }
  .fondateur-eyebrow::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: #B89974;
    margin-bottom: 1.2rem;
  }
  .fondateur-title {
    font-family: var(--serif-italic);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: var(--blanc-casse);
    letter-spacing: -0.02em;
  }
  .fondateur-title .name-accent {
    font-style: italic;
    color: #B89974;
  }
  .fondateur-body p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: #E5E1D9;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1.5rem;
  }
  .fondateur-body p:last-of-type { margin-bottom: 0; }
  body.fr .fondateur-body p:nth-of-type(5),
  body.en .fondateur-body p:nth-of-type(6) { margin-bottom: 0; }
  .fondateur-signature {
    margin-top: 3rem;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #B89974;
    font-weight: 500;
  }
  .fondateur-signature span {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: none;
    color: var(--gris-doux);
    font-weight: 300;
  }

  /* ========== FAQ ========== */
  .faq-section {
    padding: 16vh 8vw;
    background: var(--color-onyx);
  }
  .faq-inner {
    max-width: 900px;
    margin: 0 auto;
  }
  .faq-header {
    text-align: center;
  }
  .faq-header-line {
    width: 60px;
    height: 1px;
    background: var(--color-bronze);
    margin: 0 auto 2rem;
  }
  .faq-title {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-bronze);
    margin-bottom: 1.5rem;
  }
  .faq-subtitle {
    font-family: var(--serif-italic);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-perle);
    opacity: 0.7;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 8vh;
  }
  .faq-accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .faq-group {
    padding: 4vh 0 1vh;
  }
  .faq-group:first-child {
    padding-top: 0;
  }
  .faq-group + .faq-item,
  .faq-item + .faq-group {
    border-top: none;
  }
  .faq-group-title {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-bronze);
    opacity: 0.9;
    line-height: 1.6;
  }
  .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s ease;
  }
  .faq-item:hover {
    border-bottom-color: rgba(184, 153, 116, 0.4);
  }
  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: 3vh 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-perle);
    transition: color 0.3s ease;
  }
  .faq-question-text {
    flex: 1;
    line-height: 1.5;
  }
  .faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: var(--color-bronze);
    transition: opacity 0.3s ease;
  }
  .faq-icon::before {
    content: '+';
    display: block;
    transition: opacity 0.3s ease;
  }
  .faq-item.is-active .faq-icon::before {
    content: '−';
  }
  .faq-answer {
    display: none;
    margin-top: 0;
    padding-right: 4vw;
    padding-bottom: 3vh;
  }
  .faq-item.is-active .faq-answer {
    display: block;
    margin-top: 2.5vh;
  }
  .faq-answer p {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(232, 230, 225, 0.75);
    font-weight: 300;
    opacity: 0;
    transform: translateY(10px);
  }
  .faq-answer p + p {
    margin-top: 1.5em;
  }
  .faq-item.is-active .faq-answer p {
    animation: faqAnswerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes faqAnswerIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ========== CTA FINAL ========== */
  .cta-final { padding: 10rem 4rem; background: var(--noir); text-align: center; position: relative; overflow: hidden; }
  .cta-final::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%); pointer-events: none;
  }
  .cta-final-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
  .cta-final h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.2; margin-bottom: 2rem; color: var(--blanc-casse); }
  .cta-final h2 .gold { color: var(--or); font-style: italic; font-family: var(--serif-italic); }
  .cta-final p { font-size: 1.1rem; color: var(--gris-doux); margin-bottom: 3rem; line-height: 1.7; font-weight: 300; }
  .cta-final .rareté { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--or); margin-top: 3rem; font-style: italic; font-family: var(--serif-italic); }

  /* ========== FOOTER ========== */
  footer { padding: 4rem; background: var(--noir-riche); border-top: 1px solid rgba(201, 169, 97, 0.1); }
  .footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(201, 169, 97, 0.1); }
  .footer-brand .logo { margin-bottom: 1.5rem; display: block; }
  .footer-brand p { font-size: 0.9rem; color: var(--gris-doux); line-height: 1.7; font-weight: 300; max-width: 300px; }
  .footer-col h4 { font-family: var(--serif); font-size: 0.9rem; color: var(--or); margin-bottom: 1.5rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 0.8rem; }
  .footer-col ul li a { color: var(--gris-doux); text-decoration: none; font-size: 0.85rem; transition: color 0.3s ease; font-weight: 300; }
  .footer-col ul li a:hover { color: var(--or); }
  .footer-bottom { max-width: 1400px; margin: 2rem auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--gris-doux); }
  .footer-locations { display: flex; gap: 2rem; font-style: italic; font-family: var(--serif-italic); }

  /* ========== WEB WALLPAPER (site marketing — desktop + mobile) ========== */
  html:not(.aigyros-app-standalone) body {
    background-color: #040f2d;
    background-image: var(--web-wallpaper-scrim), var(--web-wallpaper);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  @media (min-width: 1024px) {
    html:not(.aigyros-app-standalone) body {
      background-attachment: fixed;
    }
  }

  html:not(.aigyros-app-standalone) .hero,
  html:not(.aigyros-app-standalone) .manifeste,
  html:not(.aigyros-app-standalone) .concept,
  html:not(.aigyros-app-standalone) .confident,
  html:not(.aigyros-app-standalone) .legacy-section,
  html:not(.aigyros-app-standalone) .legacy-section:nth-child(odd),
  html:not(.aigyros-app-standalone) .legacy-section:nth-child(even),
  html:not(.aigyros-app-standalone) .case-studies,
  html:not(.aigyros-app-standalone) .dimensions,
  html:not(.aigyros-app-standalone) .anatomy,
  html:not(.aigyros-app-standalone) .timeline-section,
  html:not(.aigyros-app-standalone) .fondateur,
  html:not(.aigyros-app-standalone) .faq-section,
  html:not(.aigyros-app-standalone) .cta-final,
  html:not(.aigyros-app-standalone) footer {
    background: transparent;
  }

  html:not(.aigyros-app-standalone) .hero::before {
    content: none;
  }

  html:not(.aigyros-app-standalone) .hero::after {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(196, 168, 108, 0.03) 0%, transparent 70%);
  }

  @media (max-width: 768px) {
    html:not(.aigyros-app-standalone) .hero::after {
      width: min(900px, 140vw);
      height: min(900px, 140vw);
    }
  }

  /* ========== ANIMATIONS ========== */
  .fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }

  /* ========== HAMBURGER ========== */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-shrink: 0;
    z-index: 1002;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--or);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* ========== MOBILE NAV OVERLAY ========== */
  .mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem 3rem;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .mobile-nav.open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
  }
  .mobile-nav-links a {
    font-family: var(--serif);
    font-size: 1.7rem;
    color: var(--blanc-casse);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
  }
  .mobile-nav-links a:hover,
  .mobile-nav-links a:focus { color: var(--or); }
  .mobile-nav-cta {
    padding: 1rem 2.5rem;
    border: 1px solid var(--or);
    color: var(--or);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    font-family: var(--sans);
    transition: all 0.3s ease;
  }
  .mobile-nav-cta:hover { background: var(--or); color: var(--noir); }

  /* ========== RESPONSIVE — TABLET ========== */
  @media (max-width: 1024px) {
    .confident-content { grid-template-columns: 1fr; gap: 4rem; }
    .concept-grid { grid-template-columns: 1fr; gap: 2rem; }
    .dimensions-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .anatomy-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-content { grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
    .timeline-item { grid-template-columns: auto 1fr; gap: 1.5rem; }
    .timeline::before { left: 20px; }
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content { grid-column: 2; text-align: left; }
    .timeline-empty { display: none; }
  }

  /* ========== RESPONSIVE — MOBILE ========== */
  @media (max-width: 768px) {
    /* Language toggle */
    .lang-toggle { top: 1rem; right: 1rem; padding: 0.45rem 0.85rem; font-size: 0.7rem; }

    /* Navigation — logo à gauche, hamburger à droite */
    nav { padding: 0.9rem 1.2rem; justify-content: space-between; align-items: center; }
    nav.scrolled { padding: 0.7rem 1.2rem; }

    /* Logo : repositionné en flux normal, taille réduite */
    .nav-logo-link {
      position: static;
      transform: none;
      left: auto;
      top: auto;
    }
    .nav-logo-img { height: 30px; }

    /* Hamburger : espace à droite pour ne pas couvrir le bouton EN */
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; margin-right: 3.8rem; }

    /* Section paddings */
    .hero { padding: 6rem 1.5rem 3.5rem; }
    .manifeste { padding: 4.5rem 1.5rem; }
    .concept { padding: 4.5rem 1.5rem; }
    .dimensions { padding: 4.5rem 1.5rem; }
    .dimensions-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .anatomy { padding: 4.5rem 1.5rem; }
    .confident { padding: 4.5rem 1.5rem; }
    .case-studies { padding: 4.5rem 1.5rem; }
    .case-studies .case-study-header { padding: 2rem; }
    .case-studies .case-study-title { font-size: 1.3rem; }
    .case-studies .case-study-content { padding: 0 2rem; }
    .case-studies .case-study-card.active .case-study-content { padding: 0 2rem 2rem; }
    .timeline-section { padding: 4.5rem 1.5rem 2rem; }
    .fondateur { padding: 5vh 1.5rem 10vh; }
    .fondateur-grid { grid-template-columns: 1fr; gap: 4rem; }
    .fondateur-portrait-wrap { width: 60%; margin: 0 auto; }
    .fondateur-text { text-align: left; }
    .faq-section { padding: 12vh 5vw; }
    .faq-question { font-size: 0.85rem; }
    .faq-answer p { font-size: 0.95rem; }
    .faq-answer { padding-right: 0; }
    .cta-final { padding: 4.5rem 1.5rem; }
    footer { padding: 3rem 1.5rem; }

    /* Hero */
    .hero { padding: 120px 1.5rem 4rem; }
    .btn-primary, .btn-secondary { text-align: center; padding: 1rem 1.5rem; }
    .hero-text .subtitle-wrapper { max-width: 320px; margin-top: 36px; }
    .hero-text .subtitle { font-size: 1.1rem; max-width: 320px; margin-top: 36px; }

    /* Manifeste */
    .manifeste-quote { font-size: clamp(1.5rem, 5vw, 2.2rem); }

    /* Concept */
    .concept-speech { padding: 2rem 1.5rem; margin-bottom: 3rem; }
    .concept-speech::before { font-size: 4rem; top: -12px; left: 15px; }
    .concept-grid { gap: 1.5rem; }
    .concept-card { padding: 2rem 1.5rem; }
    .concept-header { margin-bottom: 3rem; }

    /* Confident */
    .phone-mockup { width: min(320px, 82vw); height: min(640px, 164vw); }
    .confident-content { gap: 3rem; }
    .phone-mockup { margin-left: auto; margin-right: auto; display: block; }
    .confident-app-logo { width: 168px; height: 168px; }
    .confident-app-orbit { width: 168px; height: 168px; }
    .confident-app-logo-img { width: 88px; height: 88px; }


    /* Timeline */
    .timeline { padding: 2rem 0; }
    .timeline-item { margin-bottom: 2.5rem; }

    /* CTA Final */
    .cta-final .btn-primary { display: block; max-width: 360px; margin: 0 auto; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-locations { justify-content: center; gap: 1.5rem; }
  }

  /* ========== RESPONSIVE — SMALL MOBILE ========== */
  @media (max-width: 480px) {
    /* Navigation */
    nav { padding: 0.8rem 1rem; }
    nav.scrolled { padding: 0.6rem 1rem; }
    .nav-logo-img { height: 26px; }
    .nav-hamburger { margin-right: 3.4rem; }
    .logo { font-size: 1.2rem; letter-spacing: 0.2em; }
    .lang-toggle { padding: 0.4rem 0.7rem; font-size: 0.65rem; }

    .hero { padding: 100px 1.2rem 3rem; }
    .btn-primary, .btn-secondary { font-size: 0.75rem; letter-spacing: 0.12em; }

    /* Manifeste */
    .manifeste { padding: 3.5rem 1.2rem; }
    .manifeste-quote { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
    .manifeste-quote br { display: none; }

    /* Concept */
    .concept { padding: 3.5rem 1.2rem; }
    .concept-speech p { font-size: 1.1rem; }

    /* Anatomy */
    .anatomy { padding: 3.5rem 1.2rem; }
    .anatomy-card { padding: 2.25rem 1.75rem; }

    /* Confident */
    .confident { padding: 3.5rem 1.2rem; }
    .phone-mockup { width: min(310px, 84vw); height: min(620px, 168vw); }


    /* Timeline */
    .timeline-section { padding: 3.5rem 1.2rem 1.5rem; }
    .timeline-period { font-size: 1.2rem; }
    .timeline-title { font-size: 1.1rem; }

    /* CTA Final */
    .cta-final { padding: 3.5rem 1.2rem; }

    /* Footer */
    footer { padding: 2.5rem 1.2rem; }

    /* Mobile nav smaller text */
    .mobile-nav-links a { font-size: 1.4rem; }
    .mobile-nav-links { gap: 1.8rem; }
  }

  /* ========== RESPONSIVE — TINY (≤360px) ========== */
  @media (max-width: 360px) {
    nav { padding: 0.7rem 0.9rem; }
    .nav-logo-img { height: 23px; }
    .nav-hamburger { margin-right: 3.2rem; }
    .hero { padding: 5rem 1rem 2.5rem; }
    .manifeste, .concept, .confident, .anatomy, .legacy-section, .case-studies,
    .timeline-section, .cta-final { padding-left: 1rem; padding-right: 1rem; }
    footer { padding: 2rem 1rem; }
    .phone-mockup { width: min(290px, 84vw); height: min(580px, 168vw); }
    .mobile-nav-links a { font-size: 1.2rem; }
    .mobile-nav-cta { font-size: 0.68rem; padding: 0.85rem 1.8rem; }
  }

  /* ========== PHONE SIMULATION ========== */
  .phone-sim-screen {
    width: 100%; height: 100%;
    background:
      var(--app-wallpaper-scrim),
      var(--app-wallpaper) center center / cover no-repeat;
    border-radius: 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .phone-sim-screen::before {
    content: none;
  }
  .phone-sim-screen::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 100% 80% at 50% 20%, rgba(0, 0, 0, 0.12) 0%, transparent 58%);
    pointer-events: none; z-index: 1; border-radius: 35px;
  }
  .ps-statusbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 44px 20px 8px; flex-shrink: 0; position: relative; z-index: 3;
  }
  .ps-sanctuary-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .ps-sanctuary-status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 7px rgba(74, 222, 128, 0.7);
    animation: ps-pulse-green 2.2s ease-in-out infinite;
    flex-shrink: 0;
  }
  .ps-sanctuary-status.is-offline .ps-sanctuary-status-dot {
    background: rgba(138, 138, 138, 0.38);
    box-shadow: none;
    animation: none;
  }
  .ps-sanctuary-status.is-resonance .ps-sanctuary-status-dot {
    background: #4ade80;
    box-shadow: 0 0 7px rgba(74, 222, 128, 0.7);
    animation: ps-pulse-green 2.2s ease-in-out infinite;
  }
  .ps-sanctuary-status.is-syncing .ps-sanctuary-status-dot {
    background: #E8D4A0;
    box-shadow: 0 0 6px rgba(232, 212, 160, 0.55);
    animation: ps-pulse-gold 1.4s ease-in-out infinite;
  }
  .ps-sanctuary-status.is-pending .ps-sanctuary-status-dot {
    background: rgba(232, 212, 160, 0.72);
    box-shadow: none;
    animation: none;
  }
  .ps-sanctuary-status.is-resonance-error .ps-sanctuary-status-dot {
    background: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.55);
    animation: none;
  }
  .ps-statusbar-end { display: flex; align-items: center; gap: 10px; }
  .ps-signal { display: flex; align-items: flex-end; gap: 2.5px; }
  .ps-signal-bar { background: #F5F2EC; border-radius: 1px; width: 3px; }
  .ps-signal-bar:nth-child(1){height:5px;} .ps-signal-bar:nth-child(2){height:8px;} .ps-signal-bar:nth-child(3){height:11px;} .ps-signal-bar:nth-child(4){height:14px;}
  .ps-signal.is-offline .ps-signal-bar { background: rgba(138, 138, 138, 0.38); }
  .ps-signal.is-offline .ps-signal-bar:nth-child(3),
  .ps-signal.is-offline .ps-signal-bar:nth-child(4) { opacity: 0; }

  .ps-views { flex: 1; position: relative; overflow: hidden; min-height: 0; z-index: 2; }
  .ps-view {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.58s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .ps-view.active { transform: translateX(0); }
  .ps-view.slide-out { transform: translateX(-100%); pointer-events: none; }

  /* ── LOCK SCREEN ── */
  .ps-lock {
    position: absolute; inset: 0; z-index: 20;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 20px;
    border-radius: 35px;
    background: rgba(4, 4, 8, 0.04);
    backdrop-filter: blur(2px) saturate(1.02);
    -webkit-backdrop-filter: blur(2px) saturate(1.02);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.65s ease, visibility 0.65s ease;
    touch-action: none;
    -webkit-touch-callout: none;
  }
  .ps-lock::before {
    content: '';
    position: absolute; inset: 0; border-radius: 35px;
    background: radial-gradient(ellipse 80% 60% at 50% 35%, rgba(201, 169, 97, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
  }
  .ps-lock.ps-lock-unlocking {
    opacity: 0; visibility: hidden; pointer-events: none;
    backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  }
  .ps-lock.ps-lock-hidden { display: none; }
  .ps-lock-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 320px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    animation: ps-lock-fade-in 0.8s ease both;
  }
  @keyframes ps-lock-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .ps-lock-logo-btn {
    display: flex; flex-direction: column; align-items: center; gap: 1.35rem;
    background: none; border: none; cursor: pointer;
    padding: 28px 40px;
    min-width: min(100%, 300px);
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    --hold-progress: 0;
    outline: none;
  }
  .ps-lock-logo-btn:focus-visible {
    outline: 1px solid rgba(201, 169, 97, 0.45);
    outline-offset: 10px; border-radius: 2px;
  }
  .ps-lock-logo {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 148px; height: 148px;
    animation: heroLogoFloat 5s ease-in-out 1.8s infinite;
  }
  .ps-lock-logo::before {
    content: '';
    position: absolute;
    inset: calc(-8px - 24px * var(--hold-progress, 0));
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(201, 169, 97, calc(0.28 + 0.55 * var(--hold-progress, 0))) 0%,
      rgba(201, 169, 97, calc(0.08 + 0.28 * var(--hold-progress, 0))) 42%,
      transparent 72%);
    animation: heroLogoAura 4.2s ease-in-out infinite;
    pointer-events: none; z-index: 0;
    transition: inset 0.08s linear;
  }
  .ps-lock-logo-btn.ps-lock-active .ps-lock-logo { animation-play-state: paused; }
  .ps-lock-logo-btn.ps-lock-active .ps-lock-logo::before { animation-play-state: paused; }
  .ps-lock-orbit {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 148px; height: 148px;
    pointer-events: none; z-index: 1;
    opacity: calc(0.78 + 0.22 * var(--hold-progress, 0));
    transition: opacity 0.12s linear;
  }
  .ps-lock-progress {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 160px; height: 160px;
    pointer-events: none; z-index: 3;
    opacity: calc(0.35 + 0.65 * var(--hold-progress, 0));
    transition: opacity 0.15s linear;
  }
  .ps-lock-progress-track {
    fill: none;
    stroke: rgba(201, 169, 97, 0.14);
    stroke-width: 2.5;
  }
  .ps-lock-progress-fill {
    fill: none;
    stroke: rgba(212, 184, 118, 0.92);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: calc(440 * (1 - var(--hold-progress, 0)));
    transition: stroke-dashoffset 0.07s linear;
    filter: drop-shadow(0 0 6px rgba(201, 169, 97, 0.45));
  }
  .ps-lock-logo-img {
    position: relative; z-index: 2;
    width: 76px; height: 76px;
    object-fit: contain; display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
    opacity: calc(0.82 + 0.18 * var(--hold-progress, 0));
    filter:
      brightness(calc(1 + 0.12 * var(--hold-progress, 0)))
      drop-shadow(0 0 calc(16px + 48px * var(--hold-progress, 0)) rgba(201, 169, 97, calc(0.42 + 0.52 * var(--hold-progress, 0))))
      drop-shadow(0 0 calc(32px + 64px * var(--hold-progress, 0)) rgba(212, 184, 118, calc(0.22 + 0.45 * var(--hold-progress, 0))))
      drop-shadow(0 0 calc(8px + 20px * var(--hold-progress, 0)) rgba(255, 240, 190, calc(0.5 * var(--hold-progress, 0))));
    transform: scale(calc(1 + 0.1 * var(--hold-progress, 0)));
    transition: transform 0.08s linear, opacity 0.08s linear;
    animation: heroLogoShine 4.2s ease-in-out 1.2s infinite;
  }
  .ps-lock-logo-btn.ps-lock-active .ps-lock-logo-img { animation-play-state: paused; }
  .ps-lock-hint {
    font-family: var(--serif-italic); font-size: 0.85rem; font-style: italic;
    color: rgba(245, 242, 236, calc(0.38 + 0.45 * var(--hold-progress, 0)));
    letter-spacing: 0.03em; line-height: 1.45;
    transition: color 0.12s linear;
  }
  .ps-lock.is-pass-step { touch-action: auto; }
  .ps-lock.is-pass-step .ps-lock-logo-btn {
    pointer-events: none;
    padding-bottom: 0;
  }
  .ps-lock.is-pass-step .ps-lock-hint { opacity: 0.45; }
  .ps-lock-pass {
    position: relative; z-index: 2;
    width: 100%; max-width: 280px;
    display: none;
    flex-direction: column; align-items: center;
    text-align: center;
    margin-top: 1.75rem;
  }
  .ps-lock-pass[hidden] { display: none !important; }
  .ps-lock.is-pass-step .ps-lock-pass {
    display: flex;
    animation: ps-lock-fade-in 0.55s ease both;
  }
  .ps-lock-pass-tag {
    font-family: var(--sans);
    font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.72); margin-bottom: 10px; font-weight: 500;
  }
  .ps-lock-pass-title {
    font-family: var(--serif); font-size: 1.12rem; color: #F5F2EC;
    font-weight: 400; letter-spacing: 0.03em; margin-bottom: 18px; line-height: 1.3;
  }
  .ps-lock-pass-form {
    width: 100%; display: flex; flex-direction: column; gap: 10px;
  }
  .ps-lock-pass-input-wrap {
    width: 100%; position: relative;
    border: 1px solid rgba(201, 169, 97, 0.22);
    border-radius: 12px;
    background: rgba(8, 8, 12, 0.55);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .ps-lock-pass-input-wrap:focus-within {
    border-color: rgba(201, 169, 97, 0.48);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.08);
  }
  .ps-lock-pass-input-wrap.ps-lock-shake { animation: ps-lock-shake 0.45s ease; }
  @keyframes ps-lock-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
  }
  .ps-lock-pass-input {
    width: 100%; box-sizing: border-box;
    padding: 14px 16px; border: none; background: transparent;
    font-family: monospace; font-size: 1.05rem; letter-spacing: 0.22em;
    color: #F5F2EC; text-align: center;
    outline: none;
  }
  .ps-lock-pass-input::placeholder {
    font-family: var(--serif-italic); font-style: italic; letter-spacing: 0.04em;
    color: rgba(138, 138, 138, 0.45); font-size: 0.82rem;
  }
  .ps-lock-pass-error {
    min-height: 1.1em; font-size: 0.72rem; line-height: 1.4;
    color: rgba(232, 165, 152, 0.92); letter-spacing: 0.03em;
  }
  .ps-lock-pass-submit {
    width: 100%; padding: 13px 16px; border-radius: 12px; border: none; cursor: pointer;
    font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #0A0A0C;
    background: linear-gradient(135deg, #D4B876 0%, #C9A961 48%, #B8953F 100%);
    box-shadow: 0 4px 18px rgba(201, 169, 97, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .ps-lock-pass-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(201, 169, 97, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  .ps-lock-pass-submit:active:not(:disabled) { transform: scale(0.98); }
  .ps-lock-lueur {
    position: absolute; inset: 0; border-radius: 35px; z-index: 12;
    pointer-events: none; opacity: 0;
    background:
      radial-gradient(circle at 50% 42%, rgba(255, 248, 220, 0.95) 0%, rgba(232, 201, 138, 0.55) 18%, rgba(201, 169, 97, 0.25) 38%, transparent 68%);
    transform: scale(0.35);
  }
  .ps-lock-lueur.ps-lock-lueur-active {
    animation: ps-lock-lueur-burst 0.85s cubic-bezier(0.18, 0.82, 0.28, 1) forwards;
  }
  @keyframes ps-lock-lueur-burst {
    0% { opacity: 0; transform: scale(0.35); }
    25% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.65); }
  }

  /* ── HOME WELCOME ── */
  .ps-home { padding: 0; overflow: hidden; }
  .ps-home-content {
    padding: 14px 16px 10px; overflow-y: auto; height: 100%;
    scrollbar-width: none;
  }
  .ps-home-content::-webkit-scrollbar { display: none; }
  .ps-home-content.ps-home-content-hidden { opacity: 0; pointer-events: none; }
  .ps-home-content.ps-home-content-is-switching {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .ps-home-content.ps-home-content-in {
    animation: ps-home-reveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  @keyframes ps-home-reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .ps-welcome {
    position: absolute; inset: 0; z-index: 13;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 20px; text-align: center;
    background:
      radial-gradient(ellipse 120% 80% at 50% 35%, rgba(201, 169, 97, 0.09) 0%, transparent 58%),
      radial-gradient(ellipse 90% 70% at 50% 100%, rgba(201, 169, 97, 0.04) 0%, transparent 55%);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.48s ease;
    overflow: hidden;
  }
  .ps-welcome::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: radial-gradient(ellipse 88% 78% at 50% 50%, transparent 48%, rgba(0, 0, 0, 0.16) 100%);
  }
  .ps-welcome.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .ps-welcome.ps-welcome-out { opacity: 0; }
  .ps-welcome-particles-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
  }
  .ps-welcome-inner {
    position: relative; z-index: 2;
    max-width: 220px;
    display: flex; flex-direction: column; align-items: center;
  }
  .ps-welcome-logo-wrap {
    display: flex; justify-content: center;
    margin: 0 auto 18px;
    opacity: 0; transform: scale(0.88);
    transition: opacity 0.55s ease 0.15s, transform 0.65s cubic-bezier(0.34, 1.2, 0.64, 1) 0.15s;
  }
  .ps-welcome-reveal .ps-welcome-logo-wrap { opacity: 1; transform: scale(1); }
  .ps-welcome-logo {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 108px; height: 108px;
    animation: heroLogoFloat 5s ease-in-out 0.4s infinite;
  }
  .ps-welcome-logo::before {
    content: '';
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.32) 0%, rgba(201, 169, 97, 0.08) 42%, transparent 72%);
    animation: heroLogoAura 4.2s ease-in-out infinite;
    pointer-events: none; z-index: 0;
  }
  .ps-welcome-orbit {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 108px; height: 108px;
    pointer-events: none; z-index: 1; opacity: 0.8;
  }
  .ps-welcome-logo-img {
    position: relative; z-index: 2;
    width: 56px; height: 56px; object-fit: contain; display: block;
    opacity: 0.86;
    filter: brightness(1) drop-shadow(0 0 18px rgba(201, 169, 97, 0.48)) drop-shadow(0 0 36px rgba(212, 184, 118, 0.24));
    animation: heroLogoShine 4.2s ease-in-out 0.6s infinite;
  }
  .ps-welcome-orn {
    width: 52px; height: 1px; margin: 0 auto 14px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.55), transparent);
    opacity: 0; transform: scaleX(0);
    transition: opacity 0.5s ease 0.85s, transform 0.5s ease 0.85s;
  }
  .ps-welcome-reveal .ps-welcome-orn { opacity: 1; transform: scaleX(1); }
  .ps-welcome-tag {
    font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.62); margin-bottom: 10px; font-weight: 500;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.45s ease 1.05s, transform 0.45s ease 1.05s;
  }
  .ps-welcome-reveal .ps-welcome-tag { opacity: 1; transform: translateY(0); }
  .ps-welcome-title {
    font-family: var(--serif); font-size: 1.22rem; color: #F5F2EC;
    font-weight: 400; letter-spacing: 0.05em; margin-bottom: 7px; line-height: 1.35;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.5s ease 1.25s, transform 0.5s ease 1.25s;
  }
  .ps-welcome-reveal .ps-welcome-title { opacity: 1; transform: translateY(0); }
  .ps-welcome-sub {
    font-family: var(--serif-italic); font-size: 0.82rem; font-style: italic;
    color: rgba(245, 242, 236, 0.48); line-height: 1.5; max-width: 200px;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.5s ease 1.48s, transform 0.5s ease 1.48s;
  }
  .ps-welcome-reveal .ps-welcome-sub { opacity: 1; transform: translateY(0); }
  .ps-welcome-orn-bottom {
    width: 52px; height: 1px; margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.32), transparent);
    opacity: 0; transform: scaleX(0);
    transition: opacity 0.45s ease 1.68s, transform 0.45s ease 1.68s;
  }
  .ps-welcome-reveal .ps-welcome-orn-bottom { opacity: 1; transform: scaleX(1); }

  /* ── SÉLECTEUR DE PROFIL ── */
  .ps-profile-picker {
    position: absolute; inset: 0; z-index: 9;
    display: flex; flex-direction: column;
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%, rgba(201, 169, 97, 0.06) 0%, transparent 55%);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .ps-profile-picker.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .ps-profile-picker.ps-profile-out { opacity: 0; }
  .ps-profile-picker-scroll {
    flex: 1; min-height: 0; overflow-y: auto; padding: 18px 14px 14px;
    scrollbar-width: none;
  }
  .ps-profile-picker-scroll::-webkit-scrollbar { display: none; }
  .ps-profile-picker-header { text-align: center; margin-bottom: 14px; }
  .ps-profile-picker-tag {
    font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.6); margin-bottom: 8px; font-weight: 500;
  }
  .ps-profile-picker-title {
    font-family: var(--serif); font-size: 1.15rem; color: #F5F2EC;
    font-weight: 400; letter-spacing: 0.04em; margin-bottom: 6px;
  }
  .ps-profile-picker-sub {
    font-family: var(--serif-italic); font-size: 0.8rem; font-style: italic;
    color: rgba(245, 242, 236, 0.45); line-height: 1.5; max-width: 220px; margin: 0 auto;
  }
  /* ── SÉLECTEUR HÉRITIER (expérience) ── */
  .ps-heir-picker {
    position: absolute; inset: 0; z-index: 11;
    display: flex; flex-direction: column;
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%, rgba(201, 169, 97, 0.06) 0%, transparent 55%),
      rgba(8, 10, 18, 0.97);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.42s ease, visibility 0.42s ease;
  }
  .ps-heir-picker::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.14) 100%);
  }
  .ps-heir-picker.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .ps-heir-picker-scroll {
    position: relative; z-index: 1;
    flex: 1; min-height: 0; overflow-y: auto; padding: 18px 14px 14px;
    scrollbar-width: none;
  }
  .ps-heir-picker-scroll::-webkit-scrollbar { display: none; }
  .ps-heir-picker-header { text-align: center; margin-bottom: 14px; }
  .ps-heir-picker-tag {
    font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.6); margin-bottom: 8px; font-weight: 500;
  }
  .ps-heir-picker-title {
    font-family: var(--serif); font-size: 1.1rem; color: #F5F2EC;
    font-weight: 400; letter-spacing: 0.04em; margin-bottom: 6px;
  }
  .ps-heir-picker-sub {
    font-family: var(--serif-italic); font-size: 0.78rem; font-style: italic;
    color: rgba(245, 242, 236, 0.45); line-height: 1.5; max-width: 230px; margin: 0 auto;
  }
  .ps-heir-picker-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .ps-heir-picker-card {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px 11px 14px; border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    background: rgba(201, 169, 97, 0.03);
    cursor: pointer; text-align: left; width: 100%;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    position: relative; overflow: hidden;
  }
  .ps-heir-picker-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--ps-profile-accent, #C9A961);
    opacity: 0.45; transition: opacity 0.22s ease;
  }
  .ps-heir-picker-card:hover {
    background: rgba(201, 169, 97, 0.08);
    border-color: rgba(201, 169, 97, 0.38);
    transform: translateY(-1px);
  }
  .ps-heir-picker-card:active { transform: scale(0.98); }
  .ps-heir-picker-card-icon {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    border: 1px solid rgba(201, 169, 97, 0.28);
    background: rgba(201, 169, 97, 0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; color: #C9A961;
    overflow: hidden;
  }
  .ps-heir-picker-card-icon-photo img,
  .ps-heir-row-icon-photo img,
  .ps-recipient-chip-icon-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .ps-heir-picker-card-body { flex: 1; min-width: 0; }
  .ps-heir-picker-card-name {
    font-family: var(--serif); font-size: 0.975rem; color: #F5F2EC; font-weight: 500;
    margin-bottom: 2px;
  }
  .ps-heir-picker-card-meta {
    font-size: 0.72rem; color: #8A8A8A; line-height: 1.4;
  }
  .ps-heir-picker-card-meta.has-frags { color: rgba(201, 169, 97, 0.75); }
  .ps-heir-picker-card-arrow {
    color: #C9A961; font-size: 1.1rem; opacity: 0.5; flex-shrink: 0;
  }
  .ps-heir-picker-back {
    width: 100%; padding: 9px;
    background: transparent; border: 1px solid rgba(201, 169, 97, 0.18);
    border-radius: 10px; color: rgba(245, 242, 236, 0.55);
    font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; font-family: var(--sans); transition: all 0.22s ease;
  }
  .ps-heir-picker-back:hover {
    border-color: rgba(201, 169, 97, 0.35);
    color: rgba(245, 242, 236, 0.8);
  }

  /* ── ÉCRAN D'ENTRÉE EXPÉRIENCE HÉRITIER ── */
  .ps-heir-intro {
    position: absolute; inset: 0; z-index: 12;
    display: flex; flex-direction: column;
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%, rgba(201, 169, 97, 0.07) 0%, transparent 55%),
      rgba(8, 10, 18, 0.98);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.42s ease, visibility 0.42s ease;
  }
  .ps-heir-intro.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .ps-heir-intro-scroll {
    position: relative; z-index: 1;
    flex: 1; min-height: 0; overflow-y: auto; padding: 22px 16px 16px;
    display: flex; flex-direction: column; align-items: stretch; justify-content: center;
    scrollbar-width: none;
  }
  .ps-heir-intro-scroll::-webkit-scrollbar { display: none; }
  .ps-heir-intro-header { text-align: center; margin-bottom: 18px; }
  .ps-heir-intro-tag {
    font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.6); margin-bottom: 14px; font-weight: 500;
  }
  .ps-heir-intro-persona {
    display: inline-flex; align-items: center; gap: 10px; justify-content: center;
    margin-bottom: 14px;
  }
  .ps-heir-intro-persona-icon {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(201, 169, 97, 0.32);
    background: rgba(201, 169, 97, 0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #C9A961; overflow: hidden;
  }
  .ps-heir-intro-persona-icon-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ps-heir-intro-persona-text { text-align: left; }
  .ps-heir-intro-persona-name {
    font-family: var(--serif); font-size: 1.05rem; color: #F5F2EC; font-weight: 500;
    line-height: 1.2;
  }
  .ps-heir-intro-persona-rel {
    font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(201, 169, 97, 0.72); margin-top: 2px;
  }
  .ps-heir-intro-title {
    font-family: var(--serif); font-size: 1.15rem; color: #F5F2EC;
    font-weight: 400; letter-spacing: 0.03em; margin-bottom: 10px; line-height: 1.35;
  }
  .ps-heir-intro-body {
    font-family: var(--serif-italic); font-size: 0.88rem; font-style: italic;
    color: rgba(245, 242, 236, 0.62); line-height: 1.65;
    max-width: 280px; margin: 0 auto 12px;
  }
  .ps-heir-intro-count {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 5px 12px; border-radius: 20px;
    border: 1px solid rgba(201, 169, 97, 0.28);
    background: rgba(201, 169, 97, 0.07);
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.85); font-weight: 500;
  }
  .ps-heir-intro-count.is-empty {
    border-color: rgba(138, 138, 138, 0.25);
    background: rgba(138, 138, 138, 0.06);
    color: rgba(138, 138, 138, 0.75);
  }
  .ps-heir-intro-begin {
    display: block; width: 100%; max-width: 280px; margin: 0 auto 10px;
    padding: 12px 16px; border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.42);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.16), rgba(201, 169, 97, 0.06));
    color: #F5F2EC; font-family: var(--sans); font-size: 0.78rem;
    letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; transition: all 0.22s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-heir-intro-begin:hover {
    border-color: rgba(201, 169, 97, 0.62);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.22), rgba(201, 169, 97, 0.1));
  }
  .ps-heir-intro-begin:active { transform: scale(0.98); }
  .ps-heir-intro-back {
    display: block; width: 100%; max-width: 280px; margin: 0 auto;
    padding: 8px; background: none; border: none; cursor: pointer;
    font-family: var(--serif-italic); font-size: 0.78rem; font-style: italic;
    color: rgba(138, 138, 138, 0.85); transition: color 0.2s ease;
  }
  .ps-heir-intro-back:hover { color: rgba(201, 169, 97, 0.75); }

  /* ── BILAN POST-SIMULATION (créateur) ── */
  .ps-heir-report {
    position: absolute; inset: 0; z-index: 13;
    display: flex; flex-direction: column;
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%, rgba(122, 155, 184, 0.08) 0%, transparent 55%),
      rgba(8, 10, 18, 0.98);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.42s ease, visibility 0.42s ease;
  }
  .ps-heir-report.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .ps-heir-report-scroll {
    position: relative; z-index: 1;
    flex: 1; min-height: 0; overflow-y: auto; padding: 22px 16px 16px;
    display: flex; flex-direction: column; gap: 12px;
    scrollbar-width: none;
  }
  .ps-heir-report-scroll::-webkit-scrollbar { display: none; }
  .ps-heir-report-header { text-align: center; margin-bottom: 4px; }
  .ps-heir-report-tag {
    font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(122, 155, 184, 0.65); margin-bottom: 10px; font-weight: 500;
  }
  .ps-heir-report-title {
    font-family: var(--serif); font-size: 1.1rem; color: #F5F2EC;
    font-weight: 400; letter-spacing: 0.03em; margin-bottom: 6px; line-height: 1.35;
  }
  .ps-heir-report-sub {
    font-family: var(--serif-italic); font-size: 0.8125rem; font-style: italic;
    color: rgba(245, 242, 236, 0.58); line-height: 1.5;
  }
  .ps-heir-report-section {
    padding: 10px 12px; border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.14);
    background: rgba(201, 169, 97, 0.03);
  }
  .ps-heir-report-section-label {
    font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.55); margin-bottom: 6px; font-weight: 500;
  }
  .ps-heir-report-list { display: flex; flex-direction: column; gap: 4px; }
  .ps-heir-report-item {
    font-family: var(--serif); font-size: 0.8125rem; color: rgba(245, 242, 236, 0.88);
    line-height: 1.4;
  }
  .ps-heir-report-item.is-quote {
    font-family: var(--serif-italic); font-style: italic;
    color: rgba(245, 242, 236, 0.78);
  }
  .ps-heir-report-item.is-muted { color: rgba(245, 242, 236, 0.42); font-style: italic; }
  .ps-heir-report-hint {
    font-family: var(--serif-italic); font-size: 0.775rem; font-style: italic;
    color: rgba(201, 169, 97, 0.62); line-height: 1.5; padding: 0 2px;
  }
  .ps-heir-report-continue {
    width: 100%; padding: 11px; margin-top: 4px;
    background: rgba(122, 155, 184, 0.12); border: 1px solid rgba(122, 155, 184, 0.35);
    border-radius: 12px; color: rgba(210, 225, 240, 0.92);
    font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
    font-family: var(--sans); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-heir-report-continue:hover { background: rgba(122, 155, 184, 0.2); }
  .ps-heir-report-continue:active { transform: scale(0.98); }

  .ps-heir-picker-card.is-underfed-empty {
    border-color: rgba(180, 130, 130, 0.28);
    background: rgba(180, 130, 130, 0.04);
  }
  .ps-heir-picker-card.is-underfed-low {
    border-color: rgba(201, 169, 97, 0.18);
  }
  .ps-heir-picker-card-alert {
    font-size: 0.625rem; letter-spacing: 0.06em; line-height: 1.35;
    color: rgba(212, 165, 165, 0.88); margin-top: 3px;
  }
  .ps-heir-picker-card-alert.is-soft { color: rgba(201, 169, 97, 0.62); }

  /* ── FINALISATION DU SANCTUAIRE (overlay) ── */
  .ps-finalization-picker {
    position: absolute; inset: 0; z-index: 14;
    display: flex; flex-direction: column;
    background:
      radial-gradient(ellipse 140% 90% at 50% -18%, rgba(201, 169, 97, 0.14) 0%, transparent 58%),
      radial-gradient(ellipse 70% 45% at 50% 105%, rgba(201, 169, 97, 0.06) 0%, transparent 62%),
      linear-gradient(180deg, rgba(8, 10, 18, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.55s ease;
    overflow: hidden;
  }
  .ps-finalization-picker::before {
    content: '';
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 168px; height: 62px;
    border: 1px solid rgba(201, 169, 97, 0.14);
    border-bottom: none;
    border-radius: 84px 84px 0 0;
    pointer-events: none; z-index: 1;
    box-shadow: inset 0 10px 28px rgba(201, 169, 97, 0.04);
  }
  .ps-finalization-picker::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
      radial-gradient(ellipse 90% 80% at 50% 50%, transparent 48%, rgba(0, 0, 0, 0.22) 100%),
      repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(201, 169, 97, 0.012) 2px, rgba(201, 169, 97, 0.012) 3px);
  }
  .ps-finalization-picker.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .ps-finalization-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
  }
  .ps-finalization-scroll {
    position: relative; z-index: 2;
    flex: 1; min-height: 0; overflow-y: auto;
    padding: 20px 14px max(18px, env(safe-area-inset-bottom, 0px));
    scrollbar-width: none;
  }
  .ps-finalization-scroll::-webkit-scrollbar { display: none; }
  .ps-finalization-scroll > * { position: relative; z-index: 1; }
  @keyframes ps-finalization-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes ps-finalization-seal-pulse {
    0%, 100% { transform: scale(1); opacity: 0.82; }
    50% { transform: scale(1.04); opacity: 1; }
  }
  @keyframes ps-finalization-seal-glow {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.08); }
  }
  @keyframes ps-finalization-confirm-seal-in {
    from { opacity: 0; transform: scale(0.72) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
  }
  .ps-finalization-picker.visible .ps-finalization-tag {
    animation: ps-finalization-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .ps-finalization-picker.visible .ps-finalization-seal-wrap {
    animation: ps-finalization-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
  }
  .ps-finalization-picker.visible .ps-finalization-ornament {
    animation: ps-finalization-fade-up 0.55s ease 0.1s both;
  }
  .ps-finalization-picker.visible .ps-finalization-title {
    animation: ps-finalization-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both;
  }
  .ps-finalization-picker.visible .ps-finalization-sub {
    animation: ps-finalization-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.18s both;
  }
  .ps-finalization-picker.visible .ps-finalization-manifesto {
    animation: ps-finalization-fade-up 0.55s ease 0.24s both;
  }
  .ps-finalization-picker.visible .ps-finalization-steps {
    animation: ps-finalization-fade-up 0.5s ease 0.28s both;
  }
  .ps-finalization-header { text-align: center; margin-bottom: 14px; }
  .ps-finalization-tag {
    font-family: var(--sans);
    font-size: 0.56rem; letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.72); margin-bottom: 10px; font-weight: 500;
  }
  .ps-finalization-seal-wrap {
    display: flex; justify-content: center; margin: 2px auto 10px;
  }
  .ps-finalization-seal {
    position: relative; width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
  }
  .ps-finalization-seal-glow {
    position: absolute; inset: -6px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.32) 0%, rgba(201, 169, 97, 0.06) 48%, transparent 72%);
    animation: ps-finalization-seal-glow 4.5s ease-in-out infinite;
    pointer-events: none;
  }
  .ps-finalization-seal-icon {
    position: relative; z-index: 1;
    font-size: 1.35rem; color: #C9A961; line-height: 1;
    text-shadow: 0 0 18px rgba(201, 169, 97, 0.55), 0 0 36px rgba(201, 169, 97, 0.22);
    animation: ps-finalization-seal-pulse 4.2s ease-in-out 0.8s infinite;
  }
  .ps-finalization-ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin: 0 auto 12px; max-width: 220px;
  }
  .ps-finalization-ornament::before,
  .ps-finalization-ornament::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.38), transparent);
  }
  .ps-finalization-ornament span {
    font-size: 0.45rem; letter-spacing: 0.35em; color: rgba(201, 169, 97, 0.5);
  }
  .ps-finalization-title {
    font-family: var(--serif); font-size: 1.22rem; color: #F5F2EC;
    font-weight: 400; letter-spacing: 0.03em; margin-bottom: 9px; line-height: 1.32;
  }
  .ps-finalization-sub {
    font-family: var(--serif-italic); font-size: 0.78rem; font-style: italic;
    color: rgba(245, 242, 236, 0.52); line-height: 1.58; max-width: 268px; margin: 0 auto;
  }
  .ps-finalization-manifesto {
    margin: 12px auto 0; padding: 9px 12px; max-width: 272px;
    border-radius: 11px;
    border: 1px solid rgba(201, 169, 97, 0.16);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.07) 0%, rgba(201, 169, 97, 0.02) 100%);
    font-family: var(--serif-italic); font-size: 0.68rem; font-style: italic;
    color: rgba(201, 169, 97, 0.72); line-height: 1.55; letter-spacing: 0.02em;
  }
  .ps-finalization-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin: 14px 0 16px; padding: 0 4px;
  }
  .ps-finalization-step {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    flex: 1; min-width: 0; position: relative;
  }
  .ps-finalization-step:not(:last-child)::after {
    content: ''; position: absolute; top: 7px; left: calc(50% + 12px); right: calc(-50% + 12px);
    height: 1px; background: rgba(201, 169, 97, 0.18); pointer-events: none;
  }
  .ps-finalization-step-dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1px solid rgba(201, 169, 97, 0.28);
    background: rgba(0, 0, 0, 0.35);
    transition: all 0.35s ease;
  }
  .ps-finalization-step.is-active .ps-finalization-step-dot,
  .ps-finalization-step.is-done .ps-finalization-step-dot {
    border-color: rgba(201, 169, 97, 0.65);
    background: rgba(201, 169, 97, 0.18);
    box-shadow: 0 0 12px rgba(201, 169, 97, 0.28);
  }
  .ps-finalization-step.is-done .ps-finalization-step-dot {
    background: rgba(201, 169, 97, 0.32);
  }
  .ps-finalization-step-label {
    font-size: 0.52rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(245, 242, 236, 0.32); text-align: center; line-height: 1.2;
    transition: color 0.35s ease;
  }
  .ps-finalization-step.is-active .ps-finalization-step-label,
  .ps-finalization-step.is-done .ps-finalization-step-label {
    color: rgba(201, 169, 97, 0.78);
  }
  .ps-finalization-modes { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
  .ps-finalization-mode-card {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 13px 13px 14px; border-radius: 13px;
    border: 1px solid rgba(201, 169, 97, 0.22);
    background: rgba(201, 169, 97, 0.04);
    cursor: pointer; text-align: left; width: 100%;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    position: relative; overflow: hidden;
  }
  .ps-finalization-mode-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--ps-profile-accent, #C9A961);
    opacity: 0.35; transition: opacity 0.22s ease;
  }
  .ps-finalization-mode-card:hover {
    background: rgba(201, 169, 97, 0.09);
    border-color: rgba(201, 169, 97, 0.42);
    transform: translateY(-1px);
  }
  .ps-finalization-mode-card:active { transform: scale(0.98); }
  .ps-finalization-mode-icon {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    border: 1px solid rgba(201, 169, 97, 0.3);
    background: rgba(201, 169, 97, 0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #C9A961;
  }
  .ps-finalization-mode-body { flex: 1; min-width: 0; }
  .ps-finalization-mode-title {
    font-family: var(--serif); font-size: 0.92rem; color: #F5F2EC;
    font-weight: 500; margin-bottom: 4px; line-height: 1.3;
  }
  .ps-finalization-mode-desc {
    font-family: var(--serif-italic); font-size: 0.72rem; font-style: italic;
    color: rgba(245, 242, 236, 0.44); line-height: 1.45;
  }
  .ps-finalization-mode-arrow {
    color: #C9A961; font-size: 1.1rem; opacity: 0.5; flex-shrink: 0; margin-top: 6px;
  }
  .ps-finalization-heirs-step, .ps-finalization-confirm-step {
    animation: ps-recipients-in 0.38s ease;
  }
  .ps-finalization-theme-step { animation: ps-recipients-in 0.38s ease; }
  .ps-finalization-theme-title {
    font-family: var(--serif); font-size: 0.9rem; color: #F5F2EC;
    margin-bottom: 4px; text-align: center;
  }
  .ps-finalization-theme-sub {
    font-family: var(--serif-italic); font-size: 0.72rem; font-style: italic;
    color: rgba(245, 242, 236, 0.42); text-align: center;
    margin-bottom: 12px; line-height: 1.45;
  }
  .ps-finalization-theme-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .ps-finalization-theme-section-label {
    font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.55); margin: 2px 0 4px 2px;
  }
  .ps-finalization-theme-section-label + .ps-finalization-theme-card { margin-top: 0; }
  .ps-finalization-theme-section-label:not(:first-child) { margin-top: 6px; }
  .ps-finalization-theme-card.ps-finalization-heir-memory {
    border-color: rgba(201, 169, 97, 0.28);
  }
  .ps-finalization-theme-card {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px 11px 14px; border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    background: rgba(201, 169, 97, 0.03);
    cursor: pointer; text-align: left; width: 100%;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    position: relative; overflow: hidden;
  }
  .ps-finalization-theme-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--ps-profile-accent, #C9A961);
    opacity: 0.45; transition: opacity 0.22s ease;
  }
  .ps-finalization-theme-card:hover:not(.ps-finalization-theme-empty) {
    background: rgba(201, 169, 97, 0.08);
    border-color: rgba(201, 169, 97, 0.38);
    transform: translateY(-1px);
  }
  .ps-finalization-theme-card:active:not(.ps-finalization-theme-empty) { transform: scale(0.98); }
  .ps-finalization-theme-card.ps-finalization-theme-empty {
    opacity: 0.72; border-style: dashed;
  }
  .ps-finalization-theme-card.ps-finalization-theme-empty .ps-finalization-theme-card-meta {
    color: rgba(201, 169, 97, 0.55);
  }
  .ps-finalization-theme-card.selected {
    background: rgba(201, 169, 97, 0.14);
    border-color: rgba(201, 169, 97, 0.62);
    box-shadow: 0 0 0 1px rgba(201, 169, 97, 0.12), 0 4px 18px rgba(0, 0, 0, 0.18);
  }
  .ps-finalization-theme-card.selected::before { opacity: 1; }
  .ps-finalization-theme-card-check {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(201, 169, 97, 0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.625rem; color: transparent; transition: all 0.2s ease;
  }
  .ps-finalization-theme-card.selected .ps-finalization-theme-card-check {
    background: rgba(201, 169, 97, 0.22); border-color: #C9A961; color: #C9A961;
  }
  .ps-finalization-theme-continue {
    width: 100%; padding: 10px 12px; margin-bottom: 8px;
    background: linear-gradient(180deg, rgba(201,169,97,0.16) 0%, rgba(201,169,97,0.08) 100%);
    border: 1px solid rgba(201,169,97,0.45);
    border-radius: 11px; color: #C9A961;
    font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; font-family: var(--sans); transition: all 0.25s ease;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(201, 169, 97, 0.12);
  }
  .ps-finalization-theme-continue:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
  .ps-finalization-theme-continue:not(:disabled):hover {
    background: linear-gradient(180deg, rgba(201,169,97,0.24) 0%, rgba(201,169,97,0.12) 100%);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28), 0 0 20px rgba(201, 169, 97, 0.1);
  }
  .ps-finalization-destination-step { animation: ps-recipients-in 0.38s ease; }
  .ps-finalization-destination-title {
    font-family: var(--serif); font-size: 0.9rem; color: #F5F2EC;
    margin-bottom: 4px; text-align: center;
  }
  .ps-finalization-destination-sub {
    font-family: var(--serif-italic); font-size: 0.72rem; font-style: italic;
    color: rgba(245, 242, 236, 0.42); text-align: center;
    margin-bottom: 12px; line-height: 1.45;
  }
  .ps-finalization-selected-themes {
    text-align: center; margin-bottom: 12px; padding: 8px 10px;
    border-radius: 10px; border: 1px solid rgba(201, 169, 97, 0.15);
    background: rgba(201, 169, 97, 0.04);
  }
  .ps-finalization-selected-themes-label {
    font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(245, 242, 236, 0.38); margin-bottom: 4px;
  }
  .ps-finalization-selected-themes-list {
    font-family: var(--serif); font-size: 0.82rem; color: #C9A961; line-height: 1.45;
  }
  .ps-finalization-destination-note {
    font-family: var(--serif-italic); font-size: 0.68rem; font-style: italic;
    color: rgba(245, 242, 236, 0.42); text-align: center;
    margin-bottom: 10px; line-height: 1.45;
  }
  .ps-finalization-destination-confirm {
    width: 100%; padding: 10px 12px; margin-bottom: 8px;
    background: linear-gradient(180deg, rgba(201,169,97,0.16) 0%, rgba(201,169,97,0.08) 100%);
    border: 1px solid rgba(201,169,97,0.45);
    border-radius: 11px; color: #C9A961;
    font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; font-family: var(--sans); transition: all 0.25s ease;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(201, 169, 97, 0.12);
  }
  .ps-finalization-destination-confirm:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
  .ps-finalization-destination-confirm:not(:disabled):hover {
    background: linear-gradient(180deg, rgba(201,169,97,0.24) 0%, rgba(201,169,97,0.12) 100%);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28), 0 0 20px rgba(201, 169, 97, 0.1);
  }
  .ps-finalization-theme-card-icon {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    border: 1px solid rgba(201, 169, 97, 0.25);
    background: rgba(201, 169, 97, 0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
  }
  .ps-finalization-theme-card-body { flex: 1; min-width: 0; }
  .ps-finalization-theme-card-name {
    font-family: var(--serif); font-size: 0.88rem; color: #F5F2EC;
    font-weight: 500; margin-bottom: 2px; line-height: 1.3;
  }
  .ps-finalization-theme-card-meta {
    font-size: 0.68rem; color: rgba(245, 242, 236, 0.42);
  }
  .ps-finalization-theme-card-meta.has-frags { color: rgba(201, 169, 97, 0.75); }
  .ps-finalization-theme-card-arrow {
    color: #C9A961; font-size: 1.1rem; opacity: 0.5; flex-shrink: 0;
  }
  .ps-finalization-choice-theme {
    text-align: center; margin-bottom: 12px; padding: 8px 10px;
    border-radius: 10px; border: 1px solid rgba(201, 169, 97, 0.15);
    background: rgba(201, 169, 97, 0.04);
  }
  .ps-finalization-choice-theme-label {
    font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(245, 242, 236, 0.38); margin-bottom: 4px;
  }
  .ps-finalization-choice-theme-name {
    font-family: var(--serif); font-size: 0.88rem; color: #C9A961;
  }
  .ps-finalization-confirm-theme {
    font-family: var(--serif); font-size: 0.82rem; color: #C9A961;
    text-align: center; margin-bottom: 10px; line-height: 1.4;
  }
  .ps-finalization-heirs-title {
    font-family: var(--serif); font-size: 0.9rem; color: #F5F2EC;
    margin-bottom: 4px; text-align: center;
  }
  .ps-finalization-heirs-sub {
    font-family: var(--serif-italic); font-size: 0.72rem; font-style: italic;
    color: rgba(245, 242, 236, 0.42); text-align: center;
    margin-bottom: 12px; line-height: 1.45;
  }
  .ps-finalization-heirs-list {
    display: flex; flex-wrap: wrap; gap: 6px;
    max-height: 120px; overflow-y: auto; margin-bottom: 10px;
    scrollbar-width: none;
  }
  .ps-finalization-heirs-list::-webkit-scrollbar { display: none; }
  .ps-finalization-confirm-seal {
    text-align: center; margin-bottom: 12px;
    font-size: 2.4rem; color: #C9A961;
    line-height: 1; letter-spacing: 0.08em;
    text-shadow: 0 0 24px rgba(201, 169, 97, 0.55), 0 0 48px rgba(201, 169, 97, 0.18);
    animation: ps-finalization-confirm-seal-in 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) both;
  }
  .ps-finalization-confirm-title {
    font-family: var(--serif); font-size: 1.08rem; color: #F5F2EC;
    text-align: center; margin-bottom: 8px; line-height: 1.35; letter-spacing: 0.02em;
  }
  .ps-finalization-confirm-body {
    font-family: var(--serif-italic); font-size: 0.76rem; font-style: italic;
    color: rgba(245, 242, 236, 0.52); text-align: center;
    line-height: 1.58; margin-bottom: 12px; max-width: 272px; margin-left: auto; margin-right: auto;
  }
  .ps-finalization-process {
    margin: 0 auto 14px; max-width: 280px; padding: 10px 12px;
    border-radius: 12px; border: 1px solid rgba(201, 169, 97, 0.14);
    background: rgba(201, 169, 97, 0.04);
  }
  .ps-finalization-process-label {
    font-size: 0.54rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.62); text-align: center; margin-bottom: 10px;
  }
  .ps-finalization-process-track {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 4px;
  }
  .ps-finalization-process-step {
    flex: 1; min-width: 0; text-align: center; position: relative;
  }
  .ps-finalization-process-step:not(:last-child)::after {
    content: ''; position: absolute; top: 5px; left: calc(50% + 14px); right: calc(-50% + 14px);
    height: 1px; background: linear-gradient(90deg, rgba(201, 169, 97, 0.35), rgba(201, 169, 97, 0.12));
  }
  .ps-finalization-process-step-dot {
    width: 10px; height: 10px; border-radius: 50%; margin: 0 auto 6px;
    border: 1px solid rgba(201, 169, 97, 0.45);
    background: rgba(201, 169, 97, 0.14);
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.2);
  }
  .ps-finalization-process-step-name {
    font-family: var(--serif); font-size: 0.62rem; color: rgba(245, 242, 236, 0.58);
    line-height: 1.25; letter-spacing: 0.02em;
  }
  .ps-finalization-maison {
    text-align: center; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
    font-size: 0.54rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.42); font-weight: 500;
  }
  .ps-finalization-confirm-names {
    font-family: var(--serif); font-size: 0.82rem; color: #C9A961;
    text-align: center; margin-bottom: 14px; line-height: 1.5;
  }
  .ps-finalization-confirm-btn {
    width: 100%; padding: 11px 12px; margin-bottom: 8px;
    background: linear-gradient(180deg, rgba(201,169,97,0.18) 0%, rgba(201,169,97,0.1) 100%);
    border: 1px solid rgba(201,169,97,0.5);
    border-radius: 11px; color: #C9A961;
    font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; font-family: var(--sans); transition: all 0.25s ease;
    text-decoration: none; display: block; text-align: center;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(201, 169, 97, 0.14);
  }
  .ps-finalization-confirm-btn:not(.is-disabled):hover {
    background: linear-gradient(180deg, rgba(201,169,97,0.28) 0%, rgba(201,169,97,0.14) 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 22px rgba(201, 169, 97, 0.12);
  }
  .ps-finalization-confirm-btn.is-disabled {
    opacity: 0.35; cursor: default; pointer-events: none;
  }
  .ps-finalization-confirm-contact {
    font-family: var(--serif-italic); font-size: 0.68rem; font-style: italic;
    color: rgba(245, 242, 236, 0.42); text-align: center;
    margin-bottom: 10px; line-height: 1.45;
  }
  .ps-finalization-heirs-confirm {
    width: 100%; padding: 9px; margin-bottom: 8px;
    background: rgba(201,169,97,0.12); border: 1px solid rgba(201,169,97,0.4);
    border-radius: 11px; color: #C9A961;
    font-size: 0.8375rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; font-family: var(--sans); transition: all 0.25s ease;
  }
  .ps-finalization-heirs-confirm:disabled { opacity: 0.35; cursor: default; }
  .ps-finalization-heirs-confirm:not(:disabled):hover { background: rgba(201,169,97,0.22); }
  .ps-finalization-back {
    width: 100%; padding: 8px; margin-top: 4px;
    background: transparent; border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 10px; color: rgba(245, 242, 236, 0.45);
    font-size: 0.78rem; letter-spacing: 0.08em; cursor: pointer;
    font-family: var(--sans); transition: all 0.22s ease;
  }
  .ps-finalization-back:hover {
    color: rgba(245, 242, 236, 0.72);
    border-color: rgba(201, 169, 97, 0.32);
  }

  /* ── SÉLECTEUR UTILISATEUR (sanctuaire) ── */
  .ps-user-picker {
    position: absolute; inset: 0; z-index: 12;
    display: flex; flex-direction: column;
    background:
      radial-gradient(ellipse 120% 70% at 50% -10%, rgba(201, 169, 97, 0.08) 0%, transparent 52%),
      radial-gradient(ellipse 80% 50% at 50% 100%, rgba(201, 169, 97, 0.03) 0%, transparent 55%);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.48s ease;
    overflow: hidden;
  }
  .ps-user-picker::before {
    content: '';
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 148px; height: 54px;
    border: 1px solid rgba(201, 169, 97, 0.1);
    border-bottom: none;
    border-radius: 74px 74px 0 0;
    pointer-events: none; z-index: 1;
    box-shadow: inset 0 8px 24px rgba(201, 169, 97, 0.03);
  }
  .ps-user-picker::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.14) 100%);
  }
  .ps-user-picker.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .ps-user-picker-particles-canvas,
  .ps-user-auth-particles-canvas,
  .ps-lock-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  .ps-lock-particles-canvas { border-radius: 35px; }
  .ps-user-picker-scroll {
    position: relative;
    z-index: 2;
    flex: 1; min-height: 0; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px 16px max(88px, calc(24px + env(safe-area-inset-bottom, 0px)));
    scroll-padding-top: 12px;
    scroll-padding-bottom: max(88px, calc(24px + env(safe-area-inset-bottom, 0px)));
    scrollbar-width: none;
    display: flex; flex-direction: column;
    justify-content: flex-start;
  }
  .ps-user-picker-scroll > * { flex-shrink: 0; }
  .ps-user-picker-scroll.is-form-active,
  .phone-mockup.is-keyboard-fit .ps-user-picker-scroll,
  .phone-mockup.is-keyboard-fit .ps-user-auth-scroll {
    justify-content: flex-start;
  }
  .ps-user-picker-scroll.is-form-active .ps-user-picker-header,
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-user-picker-header {
    margin-bottom: 12px;
  }
  .ps-user-picker-scroll.is-form-active .ps-user-picker-logo-wrap,
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-user-picker-logo-wrap {
    margin: 0 auto 6px;
  }
  .ps-user-picker-scroll.is-form-active .ps-user-picker-logo,
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-user-picker-logo {
    width: 72px;
    height: 72px;
    animation: none;
  }
  .ps-user-picker-scroll.is-form-active .ps-user-picker-orbit,
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-user-picker-orbit {
    width: 72px;
    height: 72px;
  }
  .ps-user-picker-scroll.is-form-active .ps-user-picker-logo-img,
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-user-picker-logo-img {
    width: 40px;
    height: 40px;
  }
  .ps-user-picker-scroll.is-form-active .ps-user-transfer-block,
  .ps-user-picker-scroll.is-form-active .ps-user-picker-back,
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-user-transfer-block,
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-user-picker-back {
    display: none;
  }
  .ps-user-picker:has(.ps-user-picker-scroll.is-form-active) .ps-user-picker-whatsapp,
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-user-picker-whatsapp {
    opacity: 0;
    pointer-events: none;
  }
  .phone-mockup.is-keyboard-fit .ps-user-picker-scroll,
  .phone-mockup.is-keyboard-fit .ps-user-auth-scroll {
    padding-bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    scroll-padding-bottom: 24px;
  }
  .ps-user-auth-scroll.is-form-active {
    justify-content: flex-start;
  }
  .ps-user-picker-scroll::-webkit-scrollbar { display: none; }
  @keyframes ps-user-picker-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes ps-user-picker-card-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .ps-user-picker-header { text-align: center; margin-bottom: 22px; }
  .ps-user-picker.visible .ps-user-picker-tag {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .ps-user-picker.visible .ps-user-picker-logo-wrap {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.06s both;
  }
  .ps-user-picker.visible .ps-user-picker-title {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both;
  }
  .ps-user-picker.visible .ps-user-picker-sub {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.18s both;
  }
  .ps-user-picker-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 4px auto 12px;
  }
  .ps-user-picker-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    animation: heroLogoFloat 5s ease-in-out 1.8s infinite;
  }
  .ps-user-picker-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.28) 0%, rgba(201, 169, 97, 0.08) 42%, transparent 72%);
    animation: heroLogoAura 4.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }
  .ps-user-picker-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 112px;
    height: 112px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.78;
  }
  .ps-user-picker-logo-img {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    opacity: 0.82;
    filter: brightness(1) drop-shadow(0 0 16px rgba(201, 169, 97, 0.42)) drop-shadow(0 0 32px rgba(212, 184, 118, 0.22));
    animation: heroLogoShine 4.2s ease-in-out 1.2s infinite;
  }
  .ps-user-picker-tag {
    font-family: var(--sans);
    font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.72); margin-bottom: 10px; font-weight: 500;
  }
  .ps-user-picker-title {
    font-family: var(--serif); font-size: 1.28rem; color: #F5F2EC;
    font-weight: 400; letter-spacing: 0.03em; margin-bottom: 10px; line-height: 1.25;
  }
  .ps-user-picker-sub {
    font-family: var(--serif-italic); font-size: 0.8rem; font-style: italic;
    color: rgba(201, 169, 97, 0.55); line-height: 1.55; max-width: 252px; margin: 0 auto;
  }
  .ps-user-picker-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
  .ps-user-picker.visible .ps-user-picker-card {
    animation: ps-user-picker-card-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .ps-user-picker.visible .ps-user-picker-card:nth-child(1) { animation-delay: 0.22s; }
  .ps-user-picker.visible .ps-user-picker-card:nth-child(2) { animation-delay: 0.3s; }
  .ps-user-picker.visible .ps-user-picker-card:nth-child(3) { animation-delay: 0.38s; }
  .ps-user-picker.visible .ps-user-picker-card:nth-child(4) { animation-delay: 0.46s; }
  .ps-user-picker.visible .ps-pwa-install {
    animation: ps-user-picker-card-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
  }
  .ps-user-picker.visible .ps-user-create-block {
    animation: ps-user-picker-card-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.56s both;
  }
  .ps-user-picker.visible .ps-user-picker-back {
    animation: ps-user-picker-fade-up 0.45s ease 0.62s both;
  }
  .ps-user-picker.visible .ps-user-picker-whatsapp {
    animation: ps-user-picker-whatsapp-in 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.68s both;
  }
  @keyframes ps-user-picker-whatsapp-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  .ps-user-picker-whatsapp {
    position: absolute;
    bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 97, 0.35);
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--or);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition:
      border-color 0.3s ease,
      box-shadow 0.3s ease,
      transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-user-picker-whatsapp:hover {
    border-color: rgba(201, 169, 97, 0.75);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(201, 169, 97, 0.15);
    transform: translateX(-50%) translateY(-2px);
  }
  .ps-user-picker-whatsapp:active {
    transform: translateX(-50%) translateY(0);
    transition-duration: 0.1s;
  }
  .ps-user-picker-whatsapp svg {
    width: 18px;
    height: 18px;
  }
  .ps-user-picker-card {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 12px;
    padding: 13px 12px 13px 16px; border-radius: 16px;
    border: 1px solid rgba(201, 169, 97, 0.18);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.07) 0%, rgba(201, 169, 97, 0.02) 45%, transparent 100%),
      rgba(8, 8, 12, 0.55);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer; text-align: left; width: 100%;
    transition: border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.28s ease, transform 0.22s ease, box-shadow 0.28s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-user-picker-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.15), #C9A961, rgba(201, 169, 97, 0.15));
    opacity: 0.5; transition: opacity 0.25s ease, width 0.25s ease;
  }
  .ps-user-picker-card::after {
    content: ''; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 48%);
  }
  .ps-user-picker-card:hover {
    border-color: rgba(201, 169, 97, 0.42);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(201, 169, 97, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .ps-user-picker-card:hover::before { opacity: 0.85; width: 3px; }
  .ps-user-picker-card:active { transform: scale(0.985); }
  .ps-user-picker-card.ps-user-picker-card-active {
    border-color: rgba(201, 169, 97, 0.55);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.12) 0%, rgba(201, 169, 97, 0.04) 50%, transparent 100%),
      rgba(12, 11, 8, 0.65);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(201, 169, 97, 0.08);
  }
  .ps-user-picker-card.ps-user-picker-card-active::before { opacity: 1; width: 3px; }
  .ps-user-picker-card-icon {
    position: relative; z-index: 1;
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background:
      radial-gradient(circle at 35% 30%, rgba(201, 169, 97, 0.18) 0%, rgba(201, 169, 97, 0.06) 100%);
    border: 1px solid rgba(201, 169, 97, 0.28);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-family: var(--serif); font-size: 0.88rem; color: rgba(212, 184, 118, 0.95);
    letter-spacing: 0.04em; overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
  }
  .ps-user-picker-card:hover .ps-user-picker-card-icon {
    border-color: rgba(201, 169, 97, 0.45);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1), 0 0 16px rgba(201, 169, 97, 0.12);
  }
  .ps-user-picker-card-icon-photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
  .ps-user-picker-card-icon-initials { position: relative; z-index: 1; }
  .ps-user-picker-card-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; border-radius: 50%;
    opacity: 1;
  }
  .ps-user-picker-card-icon-photo .ps-user-picker-card-particles-canvas {
    z-index: 2;
    mix-blend-mode: screen;
  }
  .ps-user-picker-card-body { position: relative; z-index: 1; flex: 1; min-width: 0; }
  .ps-user-picker-card-name {
    font-family: var(--serif); font-size: 1rem; color: #F5F2EC; font-weight: 500;
    margin-bottom: 3px; letter-spacing: 0.02em;
  }
  .ps-user-picker-card-meta {
    font-family: var(--sans); font-size: 0.68rem; font-weight: 400;
    letter-spacing: 0.03em; color: rgba(201, 169, 97, 0.62); line-height: 1.4;
  }
  .ps-user-picker-card-arrow {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.16);
    color: rgba(201, 169, 97, 0.75); font-size: 0.95rem; line-height: 1;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  }
  .ps-user-picker-card:hover .ps-user-picker-card-arrow {
    background: rgba(201, 169, 97, 0.16);
    border-color: rgba(201, 169, 97, 0.32);
    transform: translateX(2px);
  }
  .ps-user-create-block {
    position: relative; overflow: hidden;
    padding: 14px 14px 14px 16px; border-radius: 16px;
    border: 1px solid rgba(201, 169, 97, 0.16);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.05) 0%, transparent 55%),
      rgba(8, 8, 12, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
    transition: border-color 0.25s ease, background 0.25s ease;
  }
  .ps-user-create-block.is-open {
    border-color: rgba(201, 169, 97, 0.32);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, transparent 55%),
      rgba(10, 10, 14, 0.6);
    overflow: visible;
  }
  .ps-user-create-trigger {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    width: 100%; padding: 0; background: none; border: none; cursor: pointer; text-align: left;
  }
  .ps-user-create-title {
    font-family: var(--serif); font-size: 0.95rem; color: #F5F2EC; margin: 0;
    letter-spacing: 0.02em;
  }
  .ps-user-create-icon {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 300; line-height: 1; color: #C9A961;
    background: rgba(201, 169, 97, 0.1); border: 1px solid rgba(201, 169, 97, 0.22);
    transition: background 0.22s ease, transform 0.22s ease;
  }
  .ps-user-create-block.is-open .ps-user-create-icon {
    background: rgba(201, 169, 97, 0.18);
  }
  .ps-user-create-icon::before { content: '+'; display: block; }
  .ps-user-create-block.is-open .ps-user-create-icon::before { content: '−'; }
  .ps-user-create-panel { display: none; margin-top: 14px; }
  .ps-user-create-block.is-open .ps-user-create-panel { display: block; }
  .ps-user-create-block.is-solo.is-open .ps-user-create-trigger { display: none; }
  .ps-user-create-block.is-solo.is-open .ps-user-create-panel { display: block; margin-top: 0; }
  .ps-user-create-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
  .ps-user-create-input, .ps-user-create-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 12px; padding: 10px 12px; font-size: 0.875rem; color: #F5F2EC;
    font-family: var(--sans); outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
  }
  .ps-user-create-select { cursor: pointer; }
  .ps-user-create-input::placeholder { color: rgba(245,242,236,0.32); }
  .ps-user-create-input:focus, .ps-user-create-select:focus {
    border-color: rgba(201, 169, 97, 0.48);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.08);
  }
  .ps-user-create-btn {
    width: 100%; padding: 11px;
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.16) 0%, rgba(201, 169, 97, 0.08) 100%);
    border: 1px solid rgba(201, 169, 97, 0.42);
    border-radius: 12px; color: #E8D4A0;
    font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; font-family: var(--sans);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  .ps-user-create-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.24) 0%, rgba(201, 169, 97, 0.12) 100%);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.12);
  }
  .ps-user-create-btn:active:not(:disabled) { transform: scale(0.98); }
  .ps-user-create-btn:disabled { opacity: 0.35; cursor: default; }
  .ps-user-create-sub {
    display: none;
    margin: 8px 0 0;
    font-family: var(--serif-italic);
    font-size: 0.78rem;
    font-style: italic;
    color: rgba(201, 169, 97, 0.48);
    line-height: 1.45;
    text-align: center;
  }
  .ps-user-create-block.is-solo .ps-user-create-sub {
    display: block;
    margin: 0 0 14px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .ps-user-create-soon {
    display: none; margin-top: 8px; padding: 4px 10px; border-radius: 999px;
    font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.85); border: 1px solid rgba(201, 169, 97, 0.28);
    background: rgba(201, 169, 97, 0.08); font-family: var(--sans); font-style: normal;
  }
  .ps-user-create-block.is-coming-soon {
    border-color: rgba(201, 169, 97, 0.22);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.04) 0%, transparent 55%),
      rgba(8, 8, 12, 0.45);
  }
  .ps-user-create-block.is-coming-soon .ps-user-create-trigger {
    cursor: default; pointer-events: none;
  }
  .ps-user-create-block.is-coming-soon .ps-user-create-icon { display: none; }
  .ps-user-create-block.is-coming-soon .ps-user-create-soon { display: inline-block; }
  .ps-user-create-block.is-coming-soon .ps-user-create-panel { display: none !important; }
  .ps-user-transfer-block {
    display: none;
    position: relative; overflow: hidden;
    padding: 14px 14px 14px 16px; border-radius: 16px;
    border: 1px solid rgba(201, 169, 97, 0.14);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.04) 0%, transparent 55%),
      rgba(6, 6, 10, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 12px;
  }
  .ps-user-transfer-block.is-open {
    display: block;
  }
  .ps-user-transfer-actions { display: flex; flex-direction: column; gap: 8px; }
  .ps-user-transfer-btn {
    width: 100%; padding: 10px 12px;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.28);
    border-radius: 12px; color: #E8D4A0;
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; font-family: var(--sans);
    transition: background 0.22s ease, transform 0.15s ease;
  }
  .ps-user-transfer-btn:hover:not(:disabled) {
    background: rgba(201, 169, 97, 0.16);
  }
  .ps-user-transfer-btn:active:not(:disabled) { transform: scale(0.98); }
  .ps-user-transfer-btn:disabled { opacity: 0.35; cursor: default; }
  .ps-user-transfer-btn.secondary {
    background: transparent;
    border-color: rgba(201, 169, 97, 0.18);
    color: rgba(232, 212, 160, 0.78);
  }
  .ps-user-transfer-status {
    margin-top: 10px; font-size: 0.72rem; line-height: 1.4; min-height: 0;
    color: rgba(245,242,236,0.55);
  }
  .ps-user-transfer-status.is-success { color: rgba(129, 199, 132, 0.88); }
  .ps-user-transfer-status.is-error { color: rgba(229, 115, 115, 0.88); }
  .ps-cloud-sync-block.is-unavailable .ps-cloud-sync-input,
  .ps-cloud-sync-block.is-unavailable .ps-cloud-sync-btn {
    opacity: 0.55;
    pointer-events: none;
  }
  .ps-cloud-sync-block {
    position: relative;
    padding: 14px 14px 14px 16px; border-radius: 16px;
    border: 1px solid rgba(201, 169, 97, 0.18);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.06) 0%, transparent 55%),
      rgba(6, 6, 10, 0.46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 12px;
  }
  .ps-cloud-sync-title {
    font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.62); margin-bottom: 10px; font-weight: 500;
  }
  .ps-cloud-sync-sub {
    font-size: 0.62rem;
    line-height: 1.45;
    color: rgba(232, 212, 160, 0.52);
    margin-bottom: 8px;
  }
  .ps-cloud-sync-sub[hidden] { display: none !important; }
  .ps-cloud-sync-status {
    font-size: 0.72rem; line-height: 1.45; color: rgba(232, 212, 160, 0.72);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
  }
  .ps-cloud-sync-status.error {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.22);
    background: rgba(201, 169, 97, 0.06);
    color: rgba(232, 212, 160, 0.88);
  }
  .ps-cloud-sync-status.success { color: rgba(129, 199, 132, 0.88); }
  .ps-cloud-sync-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
  .ps-cloud-sync-input {
    width: 100%; padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.16);
    background: rgba(0, 0, 0, 0.28); color: #F5F2EC;
    font-size: 0.82rem; font-family: var(--sans);
  }
  .ps-cloud-sync-password-wrap {
    position: relative;
  }
  .ps-cloud-sync-password-wrap .ps-cloud-sync-input {
    padding-right: 42px;
  }
  .ps-cloud-sync-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: rgba(232, 212, 160, 0.55);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--sans);
  }
  .ps-cloud-sync-password-toggle:hover {
    color: rgba(232, 212, 160, 0.88);
  }
  .ps-cloud-sync-actions { display: flex; flex-direction: column; gap: 8px; }
  .ps-cloud-sync-btn {
    width: 100%; padding: 10px 12px; border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.28);
    background: rgba(201, 169, 97, 0.08); color: #E8D4A0;
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; font-family: var(--sans);
  }
  .ps-cloud-sync-btn.secondary {
    background: transparent; border-color: rgba(201, 169, 97, 0.18);
    color: rgba(232, 212, 160, 0.78);
  }
  .ps-cloud-sync-logout {
    width: 100%; margin-top: 8px; padding: 8px 12px; border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.14); background: transparent;
    color: rgba(232, 212, 160, 0.62); font-size: 0.68rem; letter-spacing: 0.08em;
    text-transform: uppercase; cursor: pointer; font-family: var(--sans);
  }
  .ps-cloud-sync-forgot {
    align-self: flex-end;
    margin-top: -2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(201, 169, 97, 0.62);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: var(--sans);
  }
  .ps-cloud-sync-forgot:hover { color: rgba(201, 169, 97, 0.92); }
  .ps-cloud-sync-panel { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
  .ps-cloud-sync-panel[hidden] { display: none !important; }
  .ps-cloud-sync-panel-sub {
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(245, 242, 236, 0.52);
    margin: 0;
  }
  .ps-cloud-sync-back {
    width: 100%;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: rgba(232, 212, 160, 0.58);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--sans);
  }
  .ps-cloud-sync-back:hover { color: rgba(232, 212, 160, 0.82); }
  .ps-cloud-sync-hint {
    font-size: 0.62rem;
    line-height: 1.4;
    color: rgba(245, 242, 236, 0.38);
    margin: 0 0 8px;
  }
  .ps-cloud-sync-hint[hidden] { display: none !important; }
  .ps-cloud-sync-demo-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(201, 169, 97, 0.14);
    font-size: 0.6rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: rgba(245, 242, 236, 0.34);
  }
  .ps-cloud-sync-demo-note::before {
    content: '◆';
    flex: none;
    font-size: 0.56rem;
    color: rgba(201, 169, 97, 0.4);
    transform: translateY(1px);
  }
  .ps-cloud-sync-demo-note[hidden] { display: none !important; }
  .ps-cloud-sync-block.is-connected .ps-cloud-sync-fields,
  .ps-cloud-sync-block.is-connected .ps-cloud-sync-actions,
  .ps-cloud-sync-fields[hidden],
  .ps-cloud-sync-actions[hidden] { display: none !important; }
  .ps-cloud-sync-connected {
    margin-bottom: 2px;
  }
  .ps-cloud-sync-connected[hidden] { display: none !important; }
  .ps-cloud-sync-identity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    border: 1px solid rgba(201, 169, 97, 0.16);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.07) 0%, rgba(201, 169, 97, 0.02) 42%, transparent 100%),
      rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  .ps-cloud-sync-identity-seal {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at 35% 28%, rgba(201, 169, 97, 0.2) 0%, rgba(201, 169, 97, 0.05) 100%);
    border: 1px solid rgba(201, 169, 97, 0.32);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .ps-cloud-sync-identity-initials {
    position: relative;
    z-index: 1;
    font-family: var(--serif);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: rgba(212, 184, 118, 0.96);
    text-transform: uppercase;
  }
  .ps-cloud-sync-identity-halo {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 97, 0.28);
    opacity: 0.55;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }
  .ps-cloud-sync-identity-seal.is-synced .ps-cloud-sync-identity-halo {
    border-color: rgba(201, 169, 97, 0.48);
    box-shadow: 0 0 14px rgba(201, 169, 97, 0.22);
    animation: ps-resonance-breathe 3.2s ease-in-out infinite;
  }
  .ps-cloud-sync-identity-seal.is-syncing .ps-cloud-sync-identity-halo {
    border-color: rgba(232, 212, 160, 0.62);
    box-shadow: 0 0 12px rgba(232, 212, 160, 0.35);
    animation: ps-pulse-gold 1.4s ease-in-out infinite;
  }
  .ps-cloud-sync-identity-seal.is-pending .ps-cloud-sync-identity-halo {
    border-color: rgba(232, 212, 160, 0.38);
    opacity: 0.75;
    animation: none;
  }
  .ps-cloud-sync-identity-seal.is-offline .ps-cloud-sync-identity-halo,
  .ps-cloud-sync-identity-seal.is-error .ps-cloud-sync-identity-halo {
    border-color: rgba(138, 138, 138, 0.35);
    box-shadow: none;
    opacity: 0.45;
    animation: none;
  }
  .ps-cloud-sync-identity-seal.is-error .ps-cloud-sync-identity-halo {
    border-color: rgba(248, 113, 113, 0.42);
  }
  @keyframes ps-resonance-breathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.06); }
  }
  @keyframes ps-pulse-gold {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.12); }
  }
  .ps-cloud-sync-identity-body {
    flex: 1;
    min-width: 0;
  }
  .ps-cloud-sync-connected-title {
    font-family: var(--serif);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(245, 242, 236, 0.94);
    letter-spacing: 0.03em;
    line-height: 1.25;
    margin-bottom: 5px;
  }
  .ps-cloud-sync-resonance-time {
    display: none !important;
  }
  .ps-cloud-sync-connected-email {
    font-family: var(--serif);
    font-size: 0.76rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: rgba(201, 169, 97, 0.72);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ps-cloud-sync-email-display {
    display: inline;
  }
  .ps-cloud-sync-email-local {
    color: rgba(232, 212, 160, 0.88);
  }
  .ps-cloud-sync-email-at {
    margin: 0 0.06em;
    color: rgba(201, 169, 97, 0.42);
    font-size: 0.92em;
  }
  .ps-cloud-sync-email-domain {
    color: rgba(201, 169, 97, 0.58);
    font-size: 0.94em;
    letter-spacing: 0.06em;
  }
  .ps-cloud-sync-connected-actions {
    display: flex;
    gap: 8px;
  }
  .ps-cloud-sync-connected-actions .ps-cloud-sync-btn,
  .ps-cloud-sync-connected-actions .ps-cloud-sync-logout {
    flex: 1;
    margin-top: 0;
    min-width: 0;
  }
  .ps-cloud-sync-block.is-connected .ps-cloud-sync-logout {
    width: auto;
  }
  .ps-cloud-sync-danger {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(229, 115, 115, 0.14);
  }
  .ps-cloud-sync-danger[hidden] { display: none !important; }
  .ps-cloud-sync-danger-hint {
    margin-bottom: 8px;
    font-size: 0.62rem;
    line-height: 1.45;
    color: rgba(232, 212, 160, 0.48);
  }
  .ps-cloud-sync-btn.danger {
    border-color: rgba(229, 115, 115, 0.28);
    background: rgba(229, 115, 115, 0.08);
    color: rgba(252, 165, 165, 0.88);
  }
  .ps-cloud-sync-btn.danger:hover {
    background: rgba(229, 115, 115, 0.14);
    color: rgba(254, 202, 202, 0.96);
  }
  .ps-profile-resonance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.14);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.06) 0%, transparent 55%),
      rgba(0, 0, 0, 0.2);
  }
  .ps-profile-resonance[hidden] { display: none !important; }
  .ps-profile-resonance-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(201, 169, 97, 0.55);
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.35);
    transition: background 0.35s ease, box-shadow 0.35s ease;
  }
  .ps-profile-resonance.is-synced .ps-profile-resonance-dot {
    background: rgba(201, 169, 97, 0.82);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.45);
    animation: ps-resonance-breathe 3.2s ease-in-out infinite;
  }
  .ps-profile-resonance.is-syncing .ps-profile-resonance-dot {
    background: #E8D4A0;
    animation: ps-pulse-gold 1.4s ease-in-out infinite;
  }
  .ps-profile-resonance.is-pending .ps-profile-resonance-dot {
    background: rgba(232, 212, 160, 0.82);
    box-shadow: none;
    animation: none;
  }
  .ps-profile-resonance.is-offline .ps-profile-resonance-dot,
  .ps-profile-resonance.is-error .ps-profile-resonance-dot {
    background: rgba(138, 138, 138, 0.5);
    box-shadow: none;
    animation: none;
  }
  .ps-profile-resonance.is-error .ps-profile-resonance-dot { background: #f87171; }
  .ps-profile-resonance-label {
    font-family: var(--serif);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: rgba(245, 242, 236, 0.9);
  }
  .ps-profile-resonance-time {
    display: none !important;
  }
  .ps-cloud-sync-status.error {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.22);
    background: rgba(201, 169, 97, 0.06);
    color: rgba(232, 212, 160, 0.88);
  }
  .ps-cloud-sync-status.success {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(129, 199, 132, 0.3);
    background: rgba(129, 199, 132, 0.06);
  }
  .ps-cloud-sync-locked-hint {
    display: none;
  }
  .ps-user-picker.visible .ps-cloud-sync-block {
    animation: ps-user-picker-card-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.56s both;
  }
  .ps-user-transfer-toggle {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.14);
    background: transparent;
    color: rgba(232, 212, 160, 0.62);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--sans);
  }
  @media (max-width: 767px) {
    html.aigyros-app-standalone .ps-user-picker-header { margin-bottom: 10px; }
    html.aigyros-app-standalone .ps-user-picker-logo-wrap { margin: 0 auto 8px; }
    html.aigyros-app-standalone .ps-user-picker-logo,
    html.aigyros-app-standalone .ps-user-picker-orbit { width: 84px; height: 84px; }
    html.aigyros-app-standalone .ps-user-picker-logo-img { width: 44px; height: 44px; }
    html.aigyros-app-standalone .ps-cloud-sync-sub { display: block; }
    html.aigyros-app-standalone .ps-cloud-sync-sub[hidden] { display: none !important; }
    html.aigyros-app-standalone .ps-user-transfer-toggle { display: block; }
    html.aigyros-app-standalone .ps-user-transfer-block { display: none; }
    html.aigyros-app-standalone .ps-user-transfer-block.is-open { display: block; }
    html.aigyros-app-standalone .ps-user-picker-scroll.is-cloud-active:not(.is-cloud-connected) .ps-user-create-block,
    html.aigyros-app-standalone .ps-user-picker-scroll.is-cloud-active:not(.is-cloud-connected) .ps-user-picker-list,
    html.aigyros-app-standalone .ps-user-picker-scroll.is-cloud-active:not(.is-cloud-connected) .ps-user-transfer-toggle,
    html.aigyros-app-standalone .ps-user-picker-scroll.is-cloud-active:not(.is-cloud-connected) .ps-user-transfer-block,
    html.aigyros-app-standalone .ps-user-picker-scroll.is-cloud-active:not(.is-cloud-connected) .ps-user-picker-back { display: none; }
    html.aigyros-app-standalone .ps-user-picker-scroll.is-cloud-active:not(.is-cloud-connected) .ps-user-picker-header { margin-bottom: 6px; }
    html.aigyros-app-standalone .ps-user-picker-scroll.is-cloud-active:not(.is-cloud-connected) .ps-user-picker-logo,
    html.aigyros-app-standalone .ps-user-picker-scroll.is-cloud-active:not(.is-cloud-connected) .ps-user-picker-orbit { width: 64px; height: 64px; }
    html.aigyros-app-standalone .ps-user-picker-scroll.is-cloud-active:not(.is-cloud-connected) .ps-user-picker-logo-img { width: 34px; height: 34px; }
  }
  .ps-user-picker.visible .ps-user-transfer-block {
    animation: ps-user-picker-card-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.62s both;
  }
  .ps-pwa-install {
    position: relative; width: 100%; margin-bottom: 10px;
    padding: 12px 14px 12px 16px; border-radius: 16px;
    border: 1px solid rgba(201, 169, 97, 0.12);
    background: rgba(6, 6, 10, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer; text-align: left;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  }
  .ps-pwa-install:hover {
    border-color: rgba(201, 169, 97, 0.24);
    background: rgba(8, 8, 12, 0.48);
  }
  .ps-pwa-install:active { transform: scale(0.992); }
  .ps-pwa-install.is-expanded {
    border-color: rgba(201, 169, 97, 0.22);
    background: rgba(8, 8, 12, 0.52);
  }
  .ps-pwa-install-row {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
  }
  .ps-pwa-install-body { flex: 1; min-width: 0; }
  .ps-pwa-install-title {
    display: block; font-family: var(--serif); font-size: 0.88rem;
    color: rgba(245, 242, 236, 0.92); letter-spacing: 0.02em; margin-bottom: 3px;
  }
  .ps-pwa-install-sub {
    display: block; font-family: var(--serif-italic); font-size: 0.68rem; font-style: italic;
    color: rgba(201, 169, 97, 0.48); line-height: 1.45;
  }
  .ps-pwa-install-icon {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(201, 169, 97, 0.75);
    background: rgba(201, 169, 97, 0.08); border: 1px solid rgba(201, 169, 97, 0.18);
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  }
  .ps-pwa-install:hover .ps-pwa-install-icon {
    background: rgba(201, 169, 97, 0.14);
    border-color: rgba(201, 169, 97, 0.28);
  }
  .ps-pwa-install.is-expanded .ps-pwa-install-icon {
    background: rgba(201, 169, 97, 0.16);
    transform: rotate(180deg);
  }
  .ps-pwa-install.is-invite-priority {
    border-color: rgba(201,169,97,0.45);
    background: linear-gradient(135deg, rgba(201,169,97,0.12) 0%, rgba(201,169,97,0.04) 100%);
    box-shadow: 0 0 20px rgba(201,169,97,0.1);
  }
  html.aigyros-app-standalone .ps-user-picker-scroll.is-invite-onboarding .ps-pwa-install:not([hidden]) {
    order: -1;
    margin-bottom: 12px;
  }

    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
    font-family: var(--serif-italic); font-size: 0.72rem; font-style: italic;
    color: rgba(201, 169, 97, 0.62); line-height: 1.55;
  }
  .ps-pwa-install-guide-card { max-width: 300px; }
  .ps-pwa-install-guide-steps {
    list-style: none; margin: 0 0 16px; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  .ps-pwa-install-guide-step {
    display: flex; align-items: flex-start; gap: 10px;
    font-family: var(--serif); font-size: 0.72rem; line-height: 1.5;
    color: rgba(245, 242, 236, 0.82);
  }
  .ps-pwa-install-guide-step-num {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.58rem; letter-spacing: 0.04em;
    color: rgba(201, 169, 97, 0.9);
    background: rgba(201, 169, 97, 0.1); border: 1px solid rgba(201, 169, 97, 0.22);
  }
  .ps-pwa-install-guide-step-text { flex: 1; min-width: 0; }
  @media (display-mode: standalone), (display-mode: fullscreen) {
    .ps-pwa-install { display: none !important; }
  }
  .ps-user-picker-back {
    width: 100%; padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 169, 97, 0.14);
    border-radius: 12px; color: rgba(245, 242, 236, 0.48);
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; font-family: var(--sans);
    transition: all 0.22s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .ps-user-picker-back:hover {
    border-color: rgba(201, 169, 97, 0.32);
    color: rgba(245, 242, 236, 0.82);
    background: rgba(201, 169, 97, 0.06);
  }

  .ps-demo-intro-banner {
    margin-bottom: 14px; padding: 14px 14px 12px; border-radius: 16px;
    border: 1px solid rgba(201, 169, 97, 0.28);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.12) 0%, rgba(201, 169, 97, 0.04) 55%, transparent 100%),
      rgba(8, 8, 12, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  .ps-demo-intro-title {
    font-family: var(--serif); font-size: 0.95rem; color: #F5F2EC; margin-bottom: 5px;
  }
  .ps-demo-intro-sub {
    font-family: var(--serif-italic); font-size: 0.74rem; font-style: italic;
    color: rgba(201, 169, 97, 0.62); line-height: 1.5;
  }
  .ps-demo-intro-btn {
    margin-top: 10px; width: 100%; padding: 10px 12px; border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.42);
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.18) 0%, rgba(201, 169, 97, 0.08) 100%);
    color: #E8D4A0; font-family: var(--sans); font-size: 0.72rem;
    letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; transition: background 0.22s ease, transform 0.15s ease;
  }
  .ps-demo-intro-btn:hover {
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.26) 0%, rgba(201, 169, 97, 0.12) 100%);
  }
  .ps-demo-intro-btn:active { transform: scale(0.98); }
  .ps-user-picker-card-demo {
    border-color: rgba(201, 169, 97, 0.32);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.03) 50%, transparent 100%),
      rgba(10, 10, 14, 0.58);
  }
  .ps-user-picker-demo-badge {
    display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px;
    font-family: var(--sans); font-size: 0.52rem; letter-spacing: 0.14em;
    text-transform: uppercase; vertical-align: middle;
    color: rgba(232, 212, 160, 0.95);
    background: rgba(201, 169, 97, 0.16);
    border: 1px solid rgba(201, 169, 97, 0.28);
  }

  /* ── AUTHENTIFICATION SANCTUAIRE (mot de passe utilisateur) ── */
  .ps-user-auth {
    position: absolute; inset: 0; z-index: 13;
    display: flex; flex-direction: column;
    background:
      radial-gradient(ellipse 120% 70% at 50% -10%, rgba(201, 169, 97, 0.08) 0%, transparent 52%),
      radial-gradient(ellipse 80% 50% at 50% 100%, rgba(201, 169, 97, 0.03) 0%, transparent 55%);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.48s ease;
    overflow: hidden;
  }
  .ps-user-auth::before {
    content: '';
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 148px; height: 54px;
    border: 1px solid rgba(201, 169, 97, 0.1);
    border-bottom: none;
    border-radius: 74px 74px 0 0;
    pointer-events: none; z-index: 1;
    box-shadow: inset 0 8px 24px rgba(201, 169, 97, 0.03);
  }
  .ps-user-auth::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.14) 100%);
  }
  .ps-user-auth.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .ps-user-auth-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
  }
  .ps-user-auth-scroll {
    position: relative; z-index: 2;
    flex: 1; min-height: 0; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 28px 18px 18px;
    scroll-padding-top: 12px;
    scroll-padding-bottom: 24px;
    scrollbar-width: none;
    display: flex; flex-direction: column; justify-content: center;
  }
  .ps-user-auth-scroll::-webkit-scrollbar { display: none; }
  .ps-user-auth.visible .ps-user-auth-orn {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .ps-user-auth.visible .ps-user-auth-seal {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.04s both;
  }
  .ps-user-auth.visible .ps-user-auth-tag {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.08s both;
  }
  .ps-user-auth.visible .ps-user-auth-title {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both;
  }
  .ps-user-auth.visible .ps-user-auth-sub {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.16s both;
  }
  .ps-user-auth.visible .ps-user-auth-name {
    animation: ps-user-picker-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
  }
  .ps-user-auth.visible .ps-user-auth-form {
    animation: ps-user-picker-card-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.26s both;
  }
  .ps-user-auth.visible .ps-user-auth-back {
    animation: ps-user-picker-fade-up 0.45s ease 0.34s both;
  }
  .ps-user-auth-header { text-align: center; margin-bottom: 18px; }
  .ps-user-auth-orn {
    width: 44px; height: 1px; margin: 0 auto 12px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.55), transparent);
    position: relative;
  }
  .ps-user-auth-orn::before,
  .ps-user-auth-orn::after {
    content: ''; position: absolute; top: 50%; width: 3px; height: 3px;
    background: rgba(201, 169, 97, 0.5); border-radius: 50%;
    transform: translateY(-50%);
  }
  .ps-user-auth-orn::before { left: -8px; }
  .ps-user-auth-orn::after { right: -8px; }
  .ps-user-auth-seal {
    width: 46px; height: 46px; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 97, 0.28);
    background:
      radial-gradient(circle at 35% 30%, rgba(201, 169, 97, 0.16) 0%, rgba(201, 169, 97, 0.05) 100%);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: rgba(212, 184, 118, 0.92);
  }
  .ps-user-auth-tag {
    font-family: var(--sans);
    font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.72); margin-bottom: 8px; font-weight: 500;
  }
  .ps-user-auth-title {
    font-family: var(--serif); font-size: 1.24rem; color: #F5F2EC;
    font-weight: 400; letter-spacing: 0.03em; margin-bottom: 8px; line-height: 1.25;
  }
  .ps-user-auth-sub {
    font-family: var(--serif-italic); font-size: 0.8rem; font-style: italic;
    color: rgba(201, 169, 97, 0.55); line-height: 1.55; max-width: 252px; margin: 0 auto 14px;
  }
  .ps-user-auth-name {
    display: inline-block; padding: 7px 16px; border-radius: 999px;
    font-family: var(--serif); font-size: 0.92rem; color: #E8D4A0; letter-spacing: 0.03em;
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.12) 0%, rgba(201, 169, 97, 0.04) 100%);
    border: 1px solid rgba(201, 169, 97, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  .ps-user-auth-form {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px;
    padding: 16px 15px 15px; border-radius: 16px;
    border: 1px solid rgba(201, 169, 97, 0.16);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.06) 0%, rgba(201, 169, 97, 0.02) 45%, transparent 100%),
      rgba(8, 8, 12, 0.55);
    backdrop-filter: blur(12px) saturate(1.12);
    -webkit-backdrop-filter: blur(12px) saturate(1.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative; overflow: hidden;
  }
  .ps-user-auth-form::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.15), #C9A961, rgba(201, 169, 97, 0.15));
    opacity: 0.55;
  }
  .ps-user-auth-form::after {
    content: ''; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 48%);
  }
  .ps-user-auth-input-wrap { width: 100%; position: relative; z-index: 1; }
  .ps-user-auth-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 12px; padding: 11px 13px; font-size: 0.875rem; color: #F5F2EC;
    font-family: var(--sans); outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  }
  .ps-user-auth-input::placeholder {
    color: rgba(245, 242, 236, 0.32);
    font-family: var(--serif-italic);
    font-style: italic;
  }
  .ps-user-auth-input:focus {
    border-color: rgba(201, 169, 97, 0.48);
    background: rgba(0, 0, 0, 0.34);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.08);
  }
  .ps-user-auth-input-wrap.ps-lock-shake { animation: ps-lock-shake 0.45s ease; }
  .ps-user-auth-error {
    position: relative; z-index: 1;
    min-height: 1.1em; font-size: 0.72rem; color: #E8A598; text-align: center; line-height: 1.4;
  }
  .ps-user-auth-submit {
    position: relative; z-index: 1;
    width: 100%; padding: 11px 14px; border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.42);
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.16) 0%, rgba(201, 169, 97, 0.08) 100%);
    color: #E8D4A0; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-family: var(--sans); font-weight: 500; cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease, border-color 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  .ps-user-auth-submit:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.24) 0%, rgba(201, 169, 97, 0.12) 100%);
    border-color: rgba(201, 169, 97, 0.52);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.12);
  }
  .ps-user-auth-submit:active:not(:disabled) { transform: scale(0.98); }
  .ps-user-auth-back {
    width: 100%; padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 169, 97, 0.14);
    border-radius: 12px;
    font-size: 0.72rem; color: rgba(245, 242, 236, 0.48); cursor: pointer;
    font-family: var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
    transition: all 0.22s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .ps-user-auth-back:hover {
    border-color: rgba(201, 169, 97, 0.32);
    color: rgba(245, 242, 236, 0.82);
    background: rgba(201, 169, 97, 0.06);
  }
  .ps-user-auth-confirm-row { display: none; }
  .ps-user-auth.ps-user-auth-setup .ps-user-auth-confirm-row { display: block; }

  .ps-profile-cards { display: flex; flex-direction: column; gap: 10px; }
  .ps-profile-card {
    position: relative; padding: 13px 12px 13px 14px;
    border: 1px solid rgba(201, 169, 97, 0.18); border-radius: 12px;
    background: rgba(201, 169, 97, 0.025);
    cursor: pointer; text-align: left;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    overflow: hidden;
  }
  .ps-profile-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--ps-profile-accent, #C9A961);
    opacity: 0.55; transition: opacity 0.25s ease;
  }
  .ps-profile-card:hover {
    background: rgba(201, 169, 97, 0.07);
    border-color: rgba(201, 169, 97, 0.38);
    transform: translateX(2px);
  }
  .ps-profile-card:active, .ps-profile-card.selected {
    background: rgba(201, 169, 97, 0.12);
    border-color: var(--ps-profile-accent, #C9A961);
    transform: scale(0.98);
  }
  .ps-profile-card.selected::before { opacity: 1; }
  .ps-profile-card-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; border-radius: 12px;
    opacity: 1;
  }
  .ps-profile-card.has-fragments {
    border-color: rgba(201, 169, 97, 0.42);
    background:
      radial-gradient(ellipse 85% 70% at 88% 18%, rgba(201, 169, 97, 0.14) 0%, transparent 62%),
      rgba(201, 169, 97, 0.05);
  }
  .ps-profile-card.has-fragments.ps-profile-card-active {
    box-shadow: 0 0 24px rgba(201, 169, 97, 0.22);
  }
  .ps-profile-card-top { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 10px; }
  .ps-profile-card-num {
    font-family: var(--serif); font-size: 0.775rem; color: var(--ps-profile-accent, #C9A961);
    opacity: 0.75; letter-spacing: 0.08em; flex-shrink: 0; margin-top: 2px;
  }
  .ps-profile-card-icon {
    font-size: 0.975rem; flex-shrink: 0; width: 18px; text-align: center;
    color: var(--ps-profile-accent, #C9A961); margin-top: 1px;
  }
  .ps-profile-card-body { flex: 1; min-width: 0; }
  .ps-profile-card-title {
    font-family: var(--serif); font-size: 0.95rem; color: #F5F2EC;
    font-weight: 500; letter-spacing: 0.02em; margin-bottom: 4px; line-height: 1.3;
  }
  .ps-profile-card-desc {
    font-family: var(--serif-italic); font-size: 0.75rem; font-style: italic;
    color: rgba(245, 242, 236, 0.48); line-height: 1.5;
  }
  .ps-profile-card-arrow {
    color: var(--ps-profile-accent, #C9A961); font-size: 1.125rem;
    opacity: 0.4; flex-shrink: 0; margin-top: 2px;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .ps-profile-card:hover .ps-profile-card-arrow { opacity: 0.8; transform: translateX(2px); }

  /* Accents par profil */
  .ps-home-content[data-profile="familial"] { --ps-profile-accent: #C9A961; --ps-profile-accent-soft: rgba(201,169,97,0.35); --ps-profile-accent-bg: rgba(201,169,97,0.06); }
  .ps-home-content[data-profile="institution"] { --ps-profile-accent: #7A9BB8; --ps-profile-accent-soft: rgba(122,155,184,0.4); --ps-profile-accent-bg: rgba(122,155,184,0.07); }
  .ps-home-content[data-profile="patrimoine"] { --ps-profile-accent: #C4A06A; --ps-profile-accent-soft: rgba(196,160,106,0.4); --ps-profile-accent-bg: rgba(196,160,106,0.07); }
  .ps-home-content[data-profile="artistique"] { --ps-profile-accent: #C49AA8; --ps-profile-accent-soft: rgba(196,154,168,0.42); --ps-profile-accent-bg: rgba(196,154,168,0.08); }
  .ps-home-content[data-profile="public"] { --ps-profile-accent: #9BA8B8; --ps-profile-accent-soft: rgba(155,168,184,0.4); --ps-profile-accent-bg: rgba(155,168,184,0.07); }
  .ps-home-content[data-profile="cercle"] { --ps-profile-accent: #9BB5A8; --ps-profile-accent-soft: rgba(155,181,168,0.42); --ps-profile-accent-bg: rgba(155,181,168,0.08); }

  .ps-home-content[data-profile] .ps-greeting { border-left-color: var(--ps-profile-accent-soft); background: var(--ps-profile-accent-bg); }
  .ps-home-content[data-profile] .ps-theme-icon { color: var(--ps-profile-accent); }
  .ps-home-content[data-profile] .ps-theme-arrow { color: var(--ps-profile-accent); }
  .ps-home-content[data-profile] .ps-heirs-manage-btn { color: var(--ps-profile-accent); }
  .ps-home-content[data-profile] .ps-memory-card-fill { background: linear-gradient(90deg, var(--ps-profile-accent-soft), var(--ps-profile-accent)); }

  /* ── AVANCEMENT HÉRITAGE ── */
  .ps-heritage-progress {
    margin-bottom: 16px; padding: 12px 13px 11px;
    border: 1px solid var(--ps-profile-accent-soft, rgba(201,169,97,0.28));
    border-radius: 14px;
    background:
      radial-gradient(ellipse 90% 70% at 100% 0%, var(--ps-profile-accent-bg, rgba(201,169,97,0.07)) 0%, transparent 60%),
      rgba(0, 0, 0, 0.22);
    position: relative; overflow: hidden;
    flex-shrink: 0;
  }
  .ps-heritage-progress::before {
    content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--ps-profile-accent-soft, rgba(201,169,97,0.4)), transparent);
    pointer-events: none;
  }
  .ps-heritage-progress-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; border-radius: 14px;
    opacity: 1;
  }
  .ps-heritage-progress-top {
    position: relative; z-index: 1;
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 10px; gap: 8px;
  }
  .ps-heritage-progress-label {
    font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(245, 242, 236, 0.45); font-weight: 500; flex: 1;
  }
  .ps-heritage-progress-pct {
    font-family: var(--serif); font-size: 1.4375rem; font-weight: 400;
    color: var(--ps-profile-accent, #C9A961); letter-spacing: 0.02em;
    line-height: 1; flex-shrink: 0;
    text-shadow: 0 0 18px var(--ps-profile-accent-soft, rgba(201,169,97,0.35));
  }
  .ps-heritage-progress-pct-suffix {
    font-size: 0.775rem; opacity: 0.7; margin-left: 1px;
  }
  .ps-heritage-progress-track {
    position: relative; height: 5px; border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    overflow: visible; margin-bottom: 8px;
  }
  .ps-heritage-progress-fill {
    height: 100%; border-radius: 5px; width: 0;
    background: linear-gradient(90deg,
      var(--ps-profile-accent-soft, rgba(201,169,97,0.45)),
      var(--ps-profile-accent, #C9A961));
    box-shadow: 0 0 10px var(--ps-profile-accent-soft, rgba(201,169,97,0.4));
    transition: width 1.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .ps-heritage-progress-glow {
    position: absolute; top: 50%; width: 8px; height: 8px;
    border-radius: 50%; transform: translate(-50%, -50%);
    background: var(--ps-profile-accent, #C9A961);
    box-shadow: 0 0 12px 3px var(--ps-profile-accent, #C9A961);
    opacity: 0; transition: left 1.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.8s;
    pointer-events: none;
  }
  .ps-heritage-progress.ps-heritage-animated .ps-heritage-progress-glow { opacity: 0.85; }
  .ps-heritage-progress-sub {
    position: relative; z-index: 1;
    font-family: var(--serif-italic); font-size: 0.775rem; font-style: italic;
    color: rgba(245, 242, 236, 0.42); line-height: 1.45;
  }
  .ps-heritage-progress-fragments {
    display: flex; align-items: center; gap: 5px; margin-top: 7px;
  }
  .ps-heritage-progress-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .ps-heritage-progress-dot.filled {
    background: var(--ps-profile-accent, #C9A961);
    border-color: var(--ps-profile-accent-soft, rgba(201,169,97,0.5));
    box-shadow: 0 0 6px var(--ps-profile-accent-soft, rgba(201,169,97,0.45));
  }

  .ps-profile-card-progress {
    display: flex; align-items: center; gap: 8px; margin-top: 8px;
  }
  .ps-profile-card-progress-bar {
    flex: 1; height: 3px; border-radius: 3px;
    background: rgba(255, 255, 255, 0.06); overflow: hidden;
  }
  .ps-profile-card-progress-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--ps-profile-accent-soft, rgba(201,169,97,0.4)), var(--ps-profile-accent, #C9A961));
    transition: width 0.8s ease;
  }
  .ps-profile-card-progress-pct {
    font-family: var(--serif); font-size: 0.725rem;
    color: var(--ps-profile-accent, #C9A961); opacity: 0.85;
    flex-shrink: 0; letter-spacing: 0.04em;
  }
  .ps-profile-card-progress-count {
    font-family: var(--serif); font-size: 0.725rem;
    color: var(--ps-profile-accent, #C9A961); opacity: 0.85;
    flex-shrink: 0; letter-spacing: 0.04em; margin-top: 8px;
  }
  .ps-profile-card-gallery-count {
    font-family: var(--serif); font-size: 0.725rem;
    color: rgba(255,255,255,0.72);
    flex-shrink: 0; letter-spacing: 0.03em; margin-top: 6px;
  }

  .ps-api-settings-btn {
    position: absolute; top: 0; right: 0;
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid rgba(201, 169, 97, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(201, 169, 97, 0.7);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.875rem; padding: 0;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  }
  .ps-api-settings-btn:hover { border-color: rgba(201, 169, 97, 0.55); color: #C9A961; background: rgba(201, 169, 97, 0.08); }
  .ps-api-settings-btn.connected { border-color: rgba(72, 187, 120, 0.45); color: rgba(72, 187, 120, 0.9); }
  .ps-home-header > div:first-child { position: relative; }

  .ps-home-user-line {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    margin-top: 8px;
  }
  .ps-home-user-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px 4px 5px; border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.22);
    background: rgba(201, 169, 97, 0.06);
    font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(245, 242, 236, 0.72);
    font-family: var(--sans); cursor: pointer;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-home-user-badge:hover {
    border-color: rgba(201, 169, 97, 0.42);
    background: rgba(201, 169, 97, 0.1);
    transform: translateY(-1px);
  }
  .ps-profile-danger-section {
    margin-top: 4px; padding-top: 14px;
    border-top: 1px solid rgba(229, 115, 115, 0.16);
  }
  .ps-profile-danger-section .ps-profile-section-title { color: rgba(229, 115, 115, 0.82); }

  .ps-profile-modal-card {
    width: 100%; max-width: 300px; max-height: 88%;
    overflow-y: auto; scrollbar-width: none;
    background: linear-gradient(168deg, rgba(24, 22, 20, 0.99), rgba(10, 10, 12, 0.99));
    border: 1px solid rgba(201, 169, 97, 0.24);
    border-radius: 16px; padding: 18px 16px 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(201, 169, 97, 0.08);
  }
  .ps-profile-modal-card::-webkit-scrollbar { display: none; }
  .ps-profile-modal-tag {
    font-size: 0.5625rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.72); text-align: center; margin-bottom: 6px;
  }
  .ps-profile-modal-title {
    font-family: var(--serif); font-size: 1.125rem; color: #F5F2EC;
    text-align: center; letter-spacing: 0.03em; margin-bottom: 5px;
  }
  .ps-profile-modal-sub {
    font-family: var(--serif-italic); font-size: 0.6875rem; font-style: italic;
    line-height: 1.55; color: rgba(245, 242, 236, 0.42);
    text-align: center; margin-bottom: 16px; padding: 0 4px;
  }
  .ps-profile-avatar-section {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    margin-bottom: 16px; padding-bottom: 14px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.12);
  }
  .ps-profile-avatar-ring {
    padding: 3px; border-radius: 50%;
    background: linear-gradient(145deg, rgba(201, 169, 97, 0.55), rgba(201, 169, 97, 0.12));
    box-shadow: 0 0 18px rgba(201, 169, 97, 0.12);
  }
  .ps-profile-avatar {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.18);
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .ps-profile-avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .ps-profile-avatar-initials {
    font-family: var(--serif); font-size: 1.5rem; color: rgba(201, 169, 97, 0.85);
    letter-spacing: 0.04em;
  }
  .ps-profile-avatar-btn,
  .ps-profile-avatar-remove {
    border: none; background: none; cursor: pointer; font-family: var(--sans);
    font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase;
    transition: color 0.2s ease;
  }
  .ps-profile-avatar-btn { color: rgba(201, 169, 97, 0.78); }
  .ps-profile-avatar-btn:hover { color: #C9A961; }
  .ps-profile-avatar-remove { color: rgba(245, 242, 236, 0.35); margin-top: -4px; }
  .ps-profile-avatar-remove:hover { color: rgba(229, 115, 115, 0.85); }
  .ps-profile-section { margin-bottom: 14px; }
  .ps-profile-section-title {
    font-size: 0.5625rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.62); margin-bottom: 8px;
    padding-bottom: 5px; border-bottom: 1px solid rgba(201, 169, 97, 0.1);
  }
  .ps-profile-field { margin-bottom: 8px; }
  .ps-profile-field:last-child { margin-bottom: 0; }
  .ps-profile-input,
  .ps-profile-textarea {
    width: 100%; box-sizing: border-box;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px; padding: 9px 11px;
    color: #F5F2EC; font-size: 0.75rem; font-family: var(--sans);
    outline: none; transition: border-color 0.2s ease;
  }
  .ps-profile-textarea {
    min-height: 54px; resize: vertical; line-height: 1.45;
    font-family: var(--serif-italic); font-style: italic;
  }
  .ps-profile-input:focus,
  .ps-profile-textarea:focus { border-color: rgba(201, 169, 97, 0.42); }
  .ps-profile-input::placeholder,
  .ps-profile-textarea::placeholder { color: rgba(245, 242, 236, 0.28); }
  .ps-profile-input[type="password"] { font-family: monospace; letter-spacing: 0.06em; }
  .ps-profile-field-hint {
    font-size: 0.5625rem; color: rgba(245, 242, 236, 0.32);
    margin-top: 4px; line-height: 1.4;
  }
  .ps-home-user-avatar {
    width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: rgba(201, 169, 97, 0.12); border: 1px solid rgba(201, 169, 97, 0.28);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 0.55rem; color: rgba(201, 169, 97, 0.85);
  }
  .ps-home-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .ps-api-modal {
    position: absolute; inset: 0; z-index: 120;
    background: rgba(8, 8, 10, 0.92); backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px 16px; opacity: 0; visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .ps-api-modal.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  #ps-gallery-modal { z-index: 130; }
  #ps-heir-manage-modal,
  #ps-heir-profile-modal { z-index: 140; }
  .ps-api-modal-card {
    width: 100%; max-width: 280px;
    background: linear-gradient(165deg, rgba(22, 22, 26, 0.98), rgba(12, 12, 14, 0.99));
    border: 1px solid rgba(201, 169, 97, 0.22);
    border-radius: 14px; padding: 20px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  }
  .ps-api-modal-title {
    font-family: var(--serif); font-size: 1.0625rem; color: #F5F2EC;
    margin-bottom: 6px; letter-spacing: 0.02em;
  }
  .ps-api-modal-sub {
    font-size: 0.6875rem; line-height: 1.5; color: rgba(245, 242, 236, 0.45);
    margin-bottom: 14px;
  }
  .ps-api-modal-label {
    display: block; font-size: 0.5625rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: rgba(201, 169, 97, 0.65);
    margin-bottom: 6px;
  }
  .ps-api-modal-input {
    width: 100%; box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; padding: 10px 12px;
    color: #F5F2EC; font-size: 0.75rem; font-family: monospace;
    margin-bottom: 12px; outline: none;
  }
  .ps-api-modal-input:focus { border-color: rgba(201, 169, 97, 0.45); }
  .ps-api-modal-status {
    font-size: 0.625rem; min-height: 16px; margin-bottom: 10px;
    color: rgba(245, 242, 236, 0.5);
  }
  .ps-api-modal-status.error { color: #E57373; }
  .ps-api-modal-status.success { color: rgba(72, 187, 120, 0.9); }
  .ps-api-modal-actions { display: flex; gap: 8px; }
  .ps-api-modal-btn {
    flex: 1; padding: 9px 12px; border-radius: 8px;
    font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; border: 1px solid rgba(201, 169, 97, 0.3);
    background: rgba(201, 169, 97, 0.12); color: #C9A961;
    transition: background 0.2s ease;
  }
  .ps-api-modal-btn:hover { background: rgba(201, 169, 97, 0.22); }
  .ps-api-modal-btn.secondary {
    background: transparent; border-color: rgba(255, 255, 255, 0.12);
    color: rgba(245, 242, 236, 0.55);
  }
  .ps-api-modal-btn.danger {
    width: 100%; margin-top: 10px; flex: none;
    border-color: rgba(229, 115, 115, 0.35);
    background: rgba(229, 115, 115, 0.08);
    color: rgba(229, 115, 115, 0.9);
  }
  .ps-api-modal-btn.danger:hover { background: rgba(229, 115, 115, 0.16); }
  .ps-api-modal-divider {
    height: 1px; background: rgba(255, 255, 255, 0.06);
    margin: 14px 0 10px;
  }
  .ps-api-modal-reset-label {
    font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(245, 242, 236, 0.35); margin-bottom: 8px;
  }
  .ps-msg-bubble a { color: inherit; text-decoration: underline; }

  .ps-home-profile-line {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 5px;
  }
  .ps-home-profile-badge {
    font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ps-profile-accent, #C9A961); font-weight: 500;
    padding: 3px 10px; border-radius: 10px;
    border: 1px solid var(--ps-profile-accent-soft, rgba(201,169,97,0.35));
    background: var(--ps-profile-accent-bg, rgba(201,169,97,0.06));
    cursor: pointer; transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    font-family: var(--sans);
  }
  .ps-home-profile-badge:hover { opacity: 0.85; transform: scale(1.02); }
  .ps-home-profile-badge:active { transform: scale(0.97); }

  .ps-home-profile-badge:disabled {
    opacity: 0.35; cursor: default; pointer-events: none;
  }

  .ps-profile-card.ps-profile-card-active {
    border-color: var(--ps-profile-accent, #C9A961);
    background: rgba(201, 169, 97, 0.09);
  }
  .ps-profile-card.ps-profile-card-active::before { opacity: 1; }
  .ps-profile-card-active-badge {
    font-size: 0.575rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ps-profile-accent, #C9A961); opacity: 0.8;
    margin-top: 6px; font-weight: 500;
  }

  /* ── HOME ── */
  .ps-home-header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; text-align: center; }
  .ps-home-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 4px;
  }
  button.ps-home-logo-wrap {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.22s ease, opacity 0.22s ease;
    -webkit-tap-highlight-color: transparent;
  }
  button.ps-home-logo-wrap:hover { transform: scale(1.04); }
  button.ps-home-logo-wrap:active { transform: scale(0.97); }
  button.ps-home-logo-wrap:focus-visible {
    outline: 1px solid rgba(201, 169, 97, 0.55);
    outline-offset: 4px;
  }
  button.ps-home-logo-wrap.has-confident-style .ps-home-logo::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C9A961;
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.65);
    z-index: 3;
    pointer-events: none;
  }
  .ps-confident-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .ps-confident-style-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.16);
    background: rgba(201, 169, 97, 0.04);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-confident-style-chip:hover {
    border-color: rgba(201, 169, 97, 0.32);
    background: rgba(201, 169, 97, 0.08);
  }
  .ps-confident-style-chip.selected {
    border-color: rgba(201, 169, 97, 0.72);
    background: rgba(201, 169, 97, 0.14);
    box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0.12);
  }
  .ps-confident-style-chip:active { transform: scale(0.97); }
  .ps-confident-style-chip-name {
    font-family: var(--serif);
    font-size: 0.8125rem;
    color: #F5F2EC;
    line-height: 1.25;
  }
  .ps-confident-style-chip-desc {
    font-family: var(--serif-italic);
    font-style: italic;
    font-size: 0.625rem;
    line-height: 1.45;
    color: rgba(245, 242, 236, 0.42);
  }
  .ps-confident-style-chip-add {
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-style: dashed;
    border-color: rgba(201, 169, 97, 0.24);
    background: rgba(201, 169, 97, 0.02);
  }
  .ps-confident-style-chip-add:hover {
    border-color: rgba(201, 169, 97, 0.42);
    background: rgba(201, 169, 97, 0.06);
  }
  .ps-confident-style-chip-add-label {
    font-size: 0.5625rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(201, 169, 97, 0.62);
  }
  .ps-confident-style-editor {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
  }
  .ps-confident-style-editor-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 2px;
  }
  .ps-confident-style-editor-actions button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.5625rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 242, 236, 0.34);
    padding: 4px 0;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-confident-style-reset-btn:hover { color: rgba(201, 169, 97, 0.82); }
  .ps-confident-style-delete-btn:hover { color: rgba(229, 115, 115, 0.82); }
  .ps-home-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    animation: heroLogoFloat 5.5s ease-in-out infinite;
  }
  .ps-home-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.24) 0%, rgba(201, 169, 97, 0.08) 42%, transparent 72%);
    animation: heroLogoAura 4.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }
  .ps-home-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.78;
  }
  .ps-home-logo-img {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    opacity: 0.82;
    filter: brightness(1) drop-shadow(0 0 14px rgba(201, 169, 97, 0.42)) drop-shadow(0 0 28px rgba(212, 184, 118, 0.22));
    animation: heroLogoShine 4.2s ease-in-out 1.2s infinite;
  }
  .ps-online {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    margin-top: 3px; padding: 2px 6px 5px; border: none; background: none;
    border-radius: 8px; cursor: pointer;
    transition: background 0.22s ease, opacity 0.22s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-online:disabled { cursor: default; opacity: 0.72; }
  .ps-online:not(:disabled):hover { background: rgba(74, 222, 128, 0.08); }
  .ps-online-dot {
    width: 7px; height: 7px; background: #4ade80; border-radius: 50%;
    box-shadow: 0 0 7px rgba(74,222,128,0.7);
    animation: ps-pulse-green 2.2s ease-in-out infinite;
    flex-shrink: 0;
  }
  @keyframes ps-pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
  }
  @keyframes ps-pulse-red {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 7px rgba(248,113,113,0.75); }
    50% { opacity: 0.55; transform: scale(1.28); box-shadow: 0 0 11px rgba(248,113,113,0.95); }
  }
  .ps-online-text {
    font-size: 0.75rem; color: #4ade80; letter-spacing: 0.12em;
    text-transform: uppercase; font-weight: 500;
    transition: color 0.25s ease;
  }
  .ps-online.is-logging-out:not(:disabled):hover { background: rgba(248, 113, 113, 0.08); }
  .ps-online.is-logging-out .ps-online-dot {
    background: #f87171;
    box-shadow: 0 0 7px rgba(248,113,113,0.75);
    animation: ps-pulse-red 1.1s ease-in-out infinite;
  }
  .ps-online.is-logging-out .ps-online-text { color: #f87171; }
  .ps-online.is-offline:not(:disabled):hover { background: rgba(248, 113, 113, 0.08); }
  .ps-online.is-offline .ps-online-dot {
    background: #f87171;
    box-shadow: 0 0 7px rgba(248, 113, 113, 0.75);
    animation: none;
  }
  .ps-online.is-offline .ps-online-text { color: #f87171; }
  .ps-online.is-pending:not(:disabled):hover { background: rgba(201, 169, 97, 0.1); }
  .ps-online.is-pending .ps-online-dot {
    background: #C9A961;
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.75);
    animation: ps-pulse-amber 1.4s ease-in-out infinite;
  }
  .ps-online.is-pending .ps-online-text { color: #C9A961; }
  .ps-online.is-syncing:not(:disabled):hover { background: rgba(212, 165, 181, 0.1); }
  .ps-online.is-syncing .ps-online-dot {
    background: #D4A5B5;
    box-shadow: 0 0 8px rgba(212, 165, 181, 0.75);
    animation: ps-pulse-amber 0.9s ease-in-out infinite;
  }
  .ps-online.is-syncing .ps-online-text { color: #D4A5B5; }
  @keyframes ps-pulse-amber {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.25); }
  }
  .ps-sync-pending-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: calc(100% - 24px); margin: 0 auto 6px; padding: 8px 12px;
    border-radius: 10px; border: 1px solid rgba(201, 169, 97, 0.35);
    background: rgba(201, 169, 97, 0.12); color: rgba(245, 242, 236, 0.92);
    font-family: var(--serif); font-size: 0.72rem; line-height: 1.35;
    cursor: pointer; text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .ps-sync-pending-banner[hidden] { display: none !important; }
  .ps-sync-pending-banner:hover { background: rgba(201, 169, 97, 0.18); border-color: rgba(201, 169, 97, 0.5); }
  .ps-sync-pending-banner.is-syncing {
    border-color: rgba(212, 165, 181, 0.4);
    background: rgba(212, 165, 181, 0.12);
  }
  .ps-sync-pending-banner-action {
    flex-shrink: 0; font-size: 0.9rem; color: rgba(201, 169, 97, 0.85);
  }
  .ps-online-progress {
    position: absolute; left: 6px; right: 6px; bottom: 1px;
    height: 2px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden; opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }
  .ps-online.is-logging-out .ps-online-progress { opacity: 1; }
  .ps-online-progress-fill {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, rgba(248,113,113,0.55), rgba(239,68,68,0.95));
    border-radius: inherit;
  }
  .ps-greeting {
    font-family: var(--serif-italic); font-size: 1.025rem; font-style: italic;
    color: rgba(245,242,236,0.72); line-height: 1.55; margin-bottom: 18px;
    padding: 10px 13px; background: rgba(201,169,97,0.06);
    border-left: 2px solid rgba(201,169,97,0.35); border-radius: 0 8px 8px 0;
  }
  .ps-themes-label { font-size: 0.7125rem; color: #8A8A8A; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px; font-weight: 500; }
  .ps-themes-label-head {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  }
  .ps-themes-label-head::after {
    content: ''; flex: 1; height: 1px; min-width: 28px;
    background: linear-gradient(90deg, rgba(201,169,97,0.32), transparent 88%);
  }
  .ps-themes + .ps-themes-label { margin-top: 14px; }
  .ps-themes { display: flex; flex-direction: column; gap: 7px; }
  /* Rythme vertical — accueil Sanctuaire */
  .ps-home-content > .ps-envies-section,
  .ps-home-content > .ps-memories-section,
  .ps-home-content > .ps-gallery-section,
  .ps-home-content > .ps-heirs-section,
  .ps-home-content > .ps-inheritances-home-section,
  .ps-home-content > .ps-heir-experience-section,
  .ps-home-content > .ps-sanctuary-finalization-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 169, 97, 0.11);
  }
  .ps-envies-section + .ps-themes-personal-label {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(180, 130, 150, 0.2);
  }
  .ps-themes-main { gap: 9px; }
  .ps-theme-bubble {
    position: relative; overflow: hidden;
    padding: 11px 13px; border: 1px solid rgba(201,169,97,0.24); border-radius: 13px;
    background:
      radial-gradient(ellipse 92% 82% at 0% 0%, rgba(201,169,97,0.09) 0%, transparent 56%),
      rgba(0, 0, 0, 0.16);
    display: flex; align-items: center; gap: 11px;
    cursor: pointer;
    transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
  }
  .ps-home-content[data-profile] .ps-theme-bubble:not(.ps-personal):not(.ps-ideas) {
    border-color: var(--ps-profile-accent-soft, rgba(201,169,97,0.24));
    background:
      radial-gradient(ellipse 92% 82% at 0% 0%, var(--ps-profile-accent-bg, rgba(201,169,97,0.09)) 0%, transparent 56%),
      rgba(0, 0, 0, 0.16);
  }
  .ps-theme-bubble::before {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,97,0.38), transparent);
    opacity: 0.55; pointer-events: none;
  }
  .ps-home-content[data-profile] .ps-theme-bubble::before {
    background: linear-gradient(90deg, transparent, var(--ps-profile-accent-soft, rgba(201,169,97,0.38)), transparent);
  }
  .ps-theme-bubble::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(105deg, transparent 38%, rgba(201,169,97,0.07) 50%, transparent 62%);
    transform: translateX(-130%);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .ps-theme-bubble:hover:not(.ps-theme-disabled)::after { transform: translateX(130%); }
  .ps-theme-bubble:hover:not(.ps-theme-disabled) {
    background:
      radial-gradient(ellipse 100% 92% at 0% 0%, rgba(201,169,97,0.15) 0%, transparent 58%),
      rgba(201,169,97,0.05);
    border-color: rgba(201,169,97,0.46);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(201,169,97,0.08);
    transform: translateY(-1px);
  }
  .ps-home-content[data-profile] .ps-theme-bubble:not(.ps-personal):not(.ps-ideas):hover:not(.ps-theme-disabled) {
    background:
      radial-gradient(ellipse 100% 92% at 0% 0%, var(--ps-profile-accent-bg, rgba(201,169,97,0.12)) 0%, transparent 58%),
      rgba(0, 0, 0, 0.12);
    border-color: var(--ps-profile-accent, rgba(201,169,97,0.55));
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.24), 0 0 18px var(--ps-profile-accent-soft, rgba(201,169,97,0.12));
  }
  .ps-theme-bubble.tapped {
    background: rgba(201,169,97,0.15); border-color: #C9A961;
    transform: scale(0.98) translateY(0);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }
  .ps-theme-bubble.ps-theme-disabled { cursor: default; opacity: 0.55; pointer-events: none; }
  .ps-theme-icon {
    font-size: 0.9375rem; flex-shrink: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    border: 1px solid rgba(201,169,97,0.24);
    background: rgba(201,169,97,0.07);
    text-align: center; color: #C9A961;
    position: relative; z-index: 1;
    transition: border-color 0.32s ease, box-shadow 0.32s ease, transform 0.32s ease, background 0.32s ease;
  }
  .ps-home-content[data-profile] .ps-theme-icon {
    border-color: var(--ps-profile-accent-soft, rgba(201,169,97,0.24));
    background: var(--ps-profile-accent-bg, rgba(201,169,97,0.07));
  }
  .ps-theme-bubble:hover:not(.ps-theme-disabled) .ps-theme-icon {
    border-color: rgba(201,169,97,0.45);
    box-shadow: 0 0 16px rgba(201,169,97,0.16);
    transform: scale(1.05);
  }
  .ps-home-content[data-profile] .ps-theme-bubble:hover:not(.ps-theme-disabled) .ps-theme-icon {
    box-shadow: 0 0 16px var(--ps-profile-accent-soft, rgba(201,169,97,0.2));
  }
  .ps-theme-text {
    font-family: var(--serif); font-size: 0.975rem; color: #F5F2EC; font-weight: 400; flex: 1;
    position: relative; z-index: 1;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
  }
  .ps-theme-bubble:hover:not(.ps-theme-disabled) .ps-theme-text {
    color: #FAF7F1; letter-spacing: 0.012em;
  }
  .ps-theme-arrow {
    color: #C9A961; font-size: 1.0625rem; opacity: 0.42; margin-left: auto;
    position: relative; z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .ps-theme-bubble:hover:not(.ps-theme-disabled) .ps-theme-arrow {
    opacity: 0.88; transform: translateX(3px);
  }
  .ps-theme-bubble.ps-free .ps-theme-text { font-family: var(--serif-italic); font-style: italic; color: #8A8A8A; }
  @keyframes ps-theme-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .ps-home-content-in .ps-themes-label-head {
    animation: ps-theme-in 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .ps-home-content-in .ps-themes-main .ps-theme-bubble {
    animation: ps-theme-in 0.62s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .ps-home-content-in .ps-themes-main .ps-theme-bubble:nth-child(1) { animation-delay: 0.08s; }
  .ps-home-content-in .ps-themes-main .ps-theme-bubble:nth-child(2) { animation-delay: 0.15s; }
  .ps-home-content-in .ps-themes-main .ps-theme-bubble:nth-child(3) { animation-delay: 0.22s; }
  .ps-home-content-in .ps-themes-main .ps-theme-bubble:nth-child(4) { animation-delay: 0.29s; }
  @media (prefers-reduced-motion: reduce) {
    .ps-theme-bubble::after { display: none; }
    .ps-home-content-in .ps-themes-main .ps-theme-bubble,
    .ps-home-content-in .ps-themes-label-head { animation: none; }
    .ps-theme-bubble:hover:not(.ps-theme-disabled) .ps-theme-icon,
    .ps-theme-bubble:hover:not(.ps-theme-disabled) .ps-theme-arrow { transform: none; }
  }

  /* ── IDÉES EN VRAC ── */
  .ps-scratch-section {
    margin: 12px 0 18px; padding: 12px 13px 10px; border-radius: 14px;
    border: 1px solid rgba(180, 130, 150, 0.22);
    background: linear-gradient(135deg, rgba(180, 130, 150, 0.06) 0%, rgba(0, 0, 0, 0.14) 100%);
  }
  .ps-scratch-header { margin-bottom: 10px; }
  .ps-scratch-label {
    font-family: var(--serif); font-size: 0.875rem; color: rgba(245, 242, 236, 0.92);
    margin-bottom: 2px;
  }
  .ps-scratch-sub {
    font-family: var(--serif-italic); font-size: 0.75rem; font-style: italic;
    color: rgba(212, 165, 181, 0.72); line-height: 1.4;
  }
  .ps-scratch-input-row {
    display: flex; gap: 8px; align-items: stretch; margin-bottom: 6px;
  }
  .ps-scratch-tools {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px;
  }
  .ps-scratch-tool-btn {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; cursor: pointer;
    border: 1px solid rgba(201, 169, 97, 0.22); background: rgba(0, 0, 0, 0.24);
    color: rgba(201, 169, 97, 0.72); font-size: 0.9375rem; line-height: 1; padding: 0;
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-scratch-tool-btn:hover:not(:disabled) {
    border-color: rgba(201, 169, 97, 0.48); background: rgba(201, 169, 97, 0.08); color: #C9A961;
    box-shadow: 0 2px 12px rgba(201, 169, 97, 0.12);
  }
  .ps-scratch-tool-btn:disabled { opacity: 0.35; cursor: default; }
  .ps-scratch-tool-btn.recording,
  .ps-scratch-tool-btn.transcribing { animation: ps-rec-pulse 0.9s ease-in-out infinite; color: #C9A961; border-color: rgba(201, 169, 97, 0.42); }
  .ps-scratch-preview {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 8px 10px;
    border-radius: 12px; border: 1px solid rgba(180, 130, 150, 0.24);
    background: rgba(0, 0, 0, 0.16);
  }
  .ps-scratch-preview[hidden] { display: none !important; }
  .ps-scratch-preview-img {
    width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
    border: 1px solid rgba(180, 130, 150, 0.22);
  }
  .ps-scratch-preview-meta { flex: 1; min-width: 0; }
  .ps-scratch-preview-label {
    font-family: var(--serif); font-size: 0.75rem; color: rgba(245, 242, 236, 0.82); margin-bottom: 2px;
  }
  .ps-scratch-preview-sub {
    font-family: var(--serif-italic); font-size: 0.6875rem; font-style: italic;
    color: rgba(212, 165, 181, 0.62);
  }
  .ps-scratch-preview-remove {
    flex-shrink: 0; width: 28px; height: 28px; border: none; border-radius: 8px; cursor: pointer;
    background: rgba(180, 130, 150, 0.12); color: rgba(212, 165, 181, 0.72); font-size: 1rem; line-height: 1;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .ps-scratch-preview-remove:hover { background: rgba(180, 130, 150, 0.22); color: #D4A5B5; }
  .ps-scratch-item-thumb {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(180, 130, 150, 0.22); background: rgba(0, 0, 0, 0.18);
  }
  .ps-scratch-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ps-scratch-input {
    flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px;
    border: 1px solid rgba(180, 130, 150, 0.28);
    background: rgba(0, 0, 0, 0.22); color: #F5F2EC;
    font-family: var(--serif-italic); font-size: 0.8125rem; font-style: italic;
    outline: none; transition: border-color 0.2s ease;
  }
  .ps-scratch-input::placeholder { color: rgba(245, 242, 236, 0.32); }
  .ps-scratch-input:focus { border-color: rgba(212, 165, 181, 0.55); }
  .ps-scratch-add-btn {
    flex-shrink: 0; width: 38px; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(212, 165, 181, 0.38);
    background: rgba(180, 130, 150, 0.14); color: #D4A5B5;
    font-size: 1.25rem; line-height: 1; transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-scratch-add-btn:hover:not(:disabled) {
    background: rgba(180, 130, 150, 0.24); border-color: rgba(212, 165, 181, 0.58);
  }
  .ps-scratch-add-btn:disabled { opacity: 0.35; cursor: default; }
  .ps-scratch-list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px;
  }
  .ps-scratch-item {
    display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border-radius: 9px;
    background: rgba(0, 0, 0, 0.12); transition: opacity 0.2s ease;
  }
  .ps-scratch-item.is-done { opacity: 0.52; }
  .ps-scratch-check {
    flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px;
    border: 1px solid rgba(212, 165, 181, 0.45); background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
    -webkit-tap-highlight-color: transparent; transition: all 0.18s ease;
  }
  .ps-scratch-check:hover { border-color: rgba(212, 165, 181, 0.72); }
  .ps-scratch-check[aria-checked="true"] {
    background: rgba(180, 130, 150, 0.35); border-color: rgba(212, 165, 181, 0.75);
  }
  .ps-scratch-check[aria-checked="true"]::after {
    content: ''; width: 4px; height: 8px;
    border: solid rgba(245, 242, 236, 0.9); border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
  }
  .ps-scratch-text {
    flex: 1; min-width: 0; font-family: var(--serif); font-size: 0.8125rem;
    color: rgba(245, 242, 236, 0.88); line-height: 1.45; word-break: break-word;
    cursor: pointer; border-radius: 4px; padding: 2px 4px; margin: -2px -4px;
    transition: color 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-scratch-text:hover,
  .ps-scratch-text:focus-visible {
    color: rgba(212, 165, 181, 0.95);
    background: rgba(180, 130, 150, 0.1);
    outline: none;
  }
  .ps-scratch-item.is-done .ps-scratch-text {
    text-decoration: line-through; color: rgba(245, 242, 236, 0.48);
  }
  .ps-scratch-item.is-done .ps-scratch-text:hover,
  .ps-scratch-item.is-done .ps-scratch-text:focus-visible {
    color: rgba(212, 165, 181, 0.72);
  }
  .ps-scratch-explore-cue {
    flex-shrink: 0; font-size: 0.875rem; line-height: 1; pointer-events: none;
    color: rgba(212, 165, 181, 0.34); transition: color 0.18s ease, transform 0.18s ease;
  }
  .ps-scratch-item:hover .ps-scratch-explore-cue,
  .ps-scratch-item:focus-within .ps-scratch-explore-cue {
    color: rgba(212, 165, 181, 0.82); transform: translateX(1px);
  }
  .ps-scratch-delete {
    flex-shrink: 0; width: 24px; height: 24px; border: none; border-radius: 6px;
    background: transparent; color: rgba(212, 165, 181, 0.45); cursor: pointer;
    font-size: 1rem; line-height: 1; padding: 0; transition: color 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-scratch-delete:hover { color: rgba(212, 165, 181, 0.9); background: rgba(180, 130, 150, 0.12); }
  .ps-theme-bubble.ps-ideas {
    border-color: rgba(201, 169, 97, 0.32);
    background:
      radial-gradient(ellipse 88% 75% at 100% 0%, rgba(201, 169, 97, 0.12) 0%, transparent 52%),
      rgba(201, 169, 97, 0.05);
  }
  .ps-theme-bubble.ps-ideas:hover:not(.ps-theme-disabled) {
    border-color: rgba(201, 169, 97, 0.52);
    background:
      radial-gradient(ellipse 95% 80% at 100% 0%, rgba(201, 169, 97, 0.18) 0%, transparent 55%),
      rgba(201, 169, 97, 0.08);
  }
  .ps-theme-bubble.ps-ideas .ps-theme-icon { color: #C9A961; }

  /* ── MANIFESTE SES ENVIES ── */
  .ps-envies-section {
    border-top-color: rgba(201, 169, 97, 0.14);
  }
  .ps-envies-header { margin-bottom: 8px; }
  .ps-envies-sub {
    font-family: var(--serif-italic); font-size: 0.775rem; font-style: italic;
    color: rgba(245,242,236,0.42); line-height: 1.45; margin-top: -4px; margin-bottom: 10px;
  }
  .ps-envies-card {
    position: relative; padding: 13px 14px; border-radius: 15px; cursor: pointer;
    border: 1px solid rgba(232, 180, 90, 0.35);
    background:
      radial-gradient(ellipse 120% 90% at 10% 0%, rgba(232, 180, 90, 0.16) 0%, transparent 58%),
      radial-gradient(ellipse 80% 60% at 100% 100%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
      rgba(0, 0, 0, 0.2);
    display: flex; align-items: center; gap: 12px;
    transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    overflow: hidden;
  }
  .ps-envies-card-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(255, 210, 120, 0.12) 0%, transparent 45%);
    opacity: 0.85;
  }
  .ps-envies-card:hover:not(.ps-theme-disabled):not(.used-only) {
    border-color: rgba(232, 180, 90, 0.55);
    box-shadow: 0 4px 24px rgba(232, 180, 90, 0.12);
    transform: translateY(-1px);
  }
  .ps-envies-card.tapped {
    border-color: rgba(255, 210, 120, 0.65);
    background: rgba(232, 180, 90, 0.12);
  }
  .ps-envies-card.used-only { cursor: pointer; border-color: rgba(201, 169, 97, 0.28); }
  .ps-envies-card.ps-theme-disabled { opacity: 0.45; pointer-events: none; cursor: default; }
  .ps-envies-card-icon {
    font-size: 1.45rem; flex-shrink: 0; width: 36px; text-align: center;
    filter: drop-shadow(0 0 8px rgba(232, 180, 90, 0.35));
  }
  .ps-envies-card-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
  .ps-envies-card-title {
    font-family: var(--serif); font-size: 0.975rem; color: #F5F2EC; font-weight: 400;
    margin-bottom: 3px;
  }
  .ps-envies-card-desc {
    font-family: var(--serif-italic); font-size: 0.775rem; font-style: italic;
    color: rgba(245,242,236,0.48); line-height: 1.4;
  }
  .ps-envies-card-status {
    font-size: 0.65rem; color: rgba(232, 180, 90, 0.75); letter-spacing: 0.12em;
    text-transform: uppercase; margin-top: 6px;
  }
  .ps-envies-card-preview {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(201, 169, 97, 0.35); position: relative; z-index: 1;
  }
  .ps-envies-card-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ps-envies-card-arrow {
    color: rgba(232, 180, 90, 0.65); font-size: 1.125rem; flex-shrink: 0;
    position: relative; z-index: 1;
  }

  /* ── GALERIE (accueil) ── */
  .ps-gallery-header {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 12px; margin-bottom: 10px;
  }
  .ps-gallery-header-text { width: 100%; }
  .ps-gallery-header-text .ps-themes-label {
    margin-bottom: 4px; letter-spacing: 0.16em; line-height: 1.35;
  }
  .ps-gallery-sub {
    font-family: var(--serif-italic); font-size: 0.8125rem; font-style: italic;
    color: rgba(245,242,236,0.48); line-height: 1.5; margin-top: 0;
    max-width: 100%; text-wrap: pretty;
  }
  .ps-gallery-add-btn {
    flex-shrink: 0; padding: 6px 11px; border-radius: 999px;
    border: 1px solid rgba(201,169,97,0.32);
    background: rgba(201,169,97,0.08);
    color: rgba(232, 180, 90, 0.88);
    font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; transition: all 0.22s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-gallery-add-btn:hover:not(:disabled) {
    border-color: rgba(201,169,97,0.48);
    background: rgba(201,169,97,0.14);
  }
  .ps-gallery-add-btn:disabled { opacity: 0.4; cursor: default; }
  .ps-gallery-add-btn.is-active {
    border-color: rgba(201,169,97,0.62);
    background: rgba(201,169,97,0.16);
    box-shadow: 0 0 0 1px rgba(201,169,97,0.2);
  }
  .ps-gallery-actions {
    display: flex; gap: 6px; flex-wrap: wrap;
    justify-content: flex-start; width: 100%;
  }
  .ps-gallery-record-btn {
    flex-shrink: 0; padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(180,130,150,0.35);
    background: rgba(180,130,150,0.08);
    color: rgba(212,165,181,0.92);
    font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; transition: all 0.22s ease;
    min-width: 72px; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-gallery-record-btn:hover:not(:disabled) {
    border-color: rgba(212,165,181,0.5);
    background: rgba(180,130,150,0.14);
  }
  .ps-gallery-record-btn:disabled { opacity: 0.4; cursor: default; }
  .ps-gallery-record-btn.is-active:not(.recording) {
    border-color: rgba(212,165,181,0.62);
    background: rgba(180,130,150,0.16);
    box-shadow: 0 0 0 1px rgba(212,165,181,0.2);
  }
  .ps-gallery-record-btn.recording {
    border-color: rgba(229,115,115,0.55);
    background: rgba(229,115,115,0.14);
    color: #ffb4b4;
    animation: ps-gallery-rec-pulse 1.1s ease-in-out infinite;
  }
  .ps-gallery-music-btn {
    flex-shrink: 0; padding: 6px 10px; border-radius: 999px;
    border: 1px solid rgba(201,169,97,0.35);
    background: rgba(201,169,97,0.08);
    color: rgba(232, 180, 90, 0.9);
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: all 0.22s ease;
    min-width: 68px; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-gallery-music-btn:hover:not(:disabled) {
    border-color: rgba(201,169,97,0.5);
    background: rgba(201,169,97,0.14);
  }
  .ps-gallery-music-btn:disabled { opacity: 0.4; cursor: default; }
  .ps-gallery-music-btn.is-active {
    border-color: rgba(201,169,97,0.62);
    background: rgba(201,169,97,0.16);
    box-shadow: 0 0 0 1px rgba(201,169,97,0.2);
  }
  .ps-gallery-doc-btn {
    flex-shrink: 0; padding: 6px 9px; border-radius: 999px;
    border: 1px solid rgba(130,170,200,0.35);
    background: rgba(130,170,200,0.08);
    color: rgba(165,200,230,0.92);
    font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; transition: all 0.22s ease;
    min-width: 58px; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-gallery-doc-btn:hover:not(:disabled) {
    border-color: rgba(165,200,230,0.5);
    background: rgba(130,170,200,0.14);
  }
  .ps-gallery-doc-btn:disabled { opacity: 0.4; cursor: default; }
  .ps-gallery-doc-btn.is-active {
    border-color: rgba(165,200,230,0.62);
    background: rgba(130,170,200,0.16);
    box-shadow: 0 0 0 1px rgba(165,200,230,0.2);
  }
  @keyframes ps-gallery-rec-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,115,115,0.25); }
    50% { box-shadow: 0 0 0 6px rgba(229,115,115,0); }
  }
  .ps-gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    margin-top: 10px;
  }
  .ps-gallery-item {
    aspect-ratio: 1; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(201,169,97,0.2);
    background: rgba(0,0,0,0.22); cursor: pointer;
    position: relative; padding: 0;
    transition: border-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-gallery-item:hover { border-color: rgba(201,169,97,0.42); box-shadow: 0 3px 14px rgba(0,0,0,0.28); }
  .ps-gallery-item:active { transform: scale(0.97); }
  .ps-gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    background: rgba(255,255,255,0.04);
    color: transparent;
  }
  .ps-gallery-item img:not([src]) {
    opacity: 0;
  }
  .ps-gallery-item img[src] {
    opacity: 1;
  }
  .ps-gallery-item.ps-gallery-item-missing::before {
    content: '◌';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: rgba(201,169,97,0.45);
    pointer-events: none;
  }
  .ps-gallery-item-badge {
    position: absolute; left: 5px; bottom: 5px; right: 5px;
    padding: 3px 6px; border-radius: 6px;
    background: rgba(8,8,8,0.72); backdrop-filter: blur(6px);
    font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(232, 180, 90, 0.92); text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ps-gallery-item.sealed { border-color: rgba(201,169,97,0.38); }
  .ps-gallery-item-audio {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 8px 6px;
    background:
      radial-gradient(ellipse 100% 90% at 50% 0%, rgba(180,130,150,0.14) 0%, transparent 60%),
      rgba(0,0,0,0.28);
  }
  .ps-gallery-item-music {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 8px 6px;
    background:
      radial-gradient(ellipse 100% 90% at 50% 0%, rgba(201,169,97,0.16) 0%, transparent 60%),
      rgba(0,0,0,0.28);
  }
  .ps-gallery-item-document {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 8px 6px;
    background:
      radial-gradient(ellipse 100% 90% at 50% 0%, rgba(130,170,200,0.16) 0%, transparent 60%),
      rgba(0,0,0,0.28);
  }
  .ps-gallery-doc-ext {
    font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(165,200,230,0.88); font-weight: 600;
  }
  .ps-gallery-audio-icon { font-size: 1.35rem; line-height: 1; opacity: 0.9; }
  .ps-gallery-audio-name {
    font-size: 0.58rem; color: rgba(245,242,236,0.72); text-align: center;
    line-height: 1.25; max-width: 100%;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .ps-gallery-audio-duration {
    font-size: 0.62rem; letter-spacing: 0.08em; color: rgba(212,165,181,0.85);
  }
  .ps-gallery-empty {
    grid-column: 1 / -1; padding: 18px 14px; border-radius: 12px;
    border: 1px dashed rgba(201,169,97,0.22);
    background: rgba(201,169,97,0.03);
    text-align: center;
    font-family: var(--serif-italic); font-style: italic;
    font-size: 0.78rem; color: rgba(245,242,236,0.42); line-height: 1.5;
  }
  .ps-gallery-view-all-btn {
    display: block; width: 100%; margin-top: 8px; padding: 9px 12px;
    border-radius: 999px; border: 1px solid rgba(201,169,97,0.28);
    background: rgba(201,169,97,0.06);
    color: rgba(232, 180, 90, 0.88);
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: all 0.22s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-gallery-view-all-btn:hover:not(:disabled) {
    border-color: rgba(201,169,97,0.44);
    background: rgba(201,169,97,0.12);
  }
  .ps-gallery-view-all-btn:disabled { opacity: 0.4; cursor: default; }
  .ps-gallery-full-modal-card {
    width: min(94vw, 420px); max-height: min(90vh, 720px);
    display: flex; flex-direction: column;
    overflow: hidden; border-radius: 16px;
    border: 1px solid rgba(201,169,97,0.28);
    background: linear-gradient(180deg, rgba(18,16,14,0.98) 0%, rgba(10,10,10,0.98) 100%);
    padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  }
  .ps-gallery-full-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 10px; flex-shrink: 0;
  }
  .ps-gallery-full-header .ps-api-modal-title { margin: 0; flex: 1; min-width: 0; }
  .ps-gallery-full-close {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px;
    border: 1px solid rgba(201,169,97,0.24);
    background: rgba(201,169,97,0.08);
    color: rgba(245,242,236,0.72); font-size: 1.2rem; line-height: 1;
    cursor: pointer; transition: all 0.22s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-gallery-full-close:hover {
    border-color: rgba(201,169,97,0.42);
    background: rgba(201,169,97,0.14);
    color: rgba(245,242,236,0.92);
  }
  .ps-gallery-full-grid {
    margin-top: 0; overflow-y: auto; max-height: min(calc(90vh - 88px), 620px);
    padding-right: 2px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-content: start;
  }
  .ps-gallery-full-grid .ps-gallery-item {
    aspect-ratio: 1;
    width: 100%;
    min-height: 0;
  }
  .ps-gallery-full-grid::-webkit-scrollbar { width: 4px; }
  .ps-gallery-full-grid::-webkit-scrollbar-thumb {
    background: rgba(201,169,97,0.28); border-radius: 999px;
  }
  .ps-gallery-modal-card {
    width: min(92vw, 360px); max-height: min(88vh, 640px);
    overflow-y: auto; border-radius: 16px;
    border: 1px solid rgba(201,169,97,0.28);
    background: linear-gradient(180deg, rgba(18,16,14,0.98) 0%, rgba(10,10,10,0.98) 100%);
    padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  }
  .ps-gallery-modal-card::-webkit-scrollbar { display: none; }
  .ps-gallery-modal-img-wrap {
    border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(201,169,97,0.22);
    background: rgba(0,0,0,0.35); margin-bottom: 10px;
  }
  .ps-gallery-modal-img-wrap img {
    width: 100%; max-height: 280px; object-fit: contain; display: block;
    background: rgba(0,0,0,0.4);
  }
  .ps-gallery-modal-img-wrap img[hidden] {
    display: none;
  }
  .ps-gallery-media-missing {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(201,169,97,0.72);
  }
  .ps-gallery-media-missing[hidden] {
    display: none !important;
  }
  .ps-gallery-modal-audio-wrap {
    border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(180,130,150,0.28);
    background: rgba(0,0,0,0.35); margin-bottom: 10px; padding: 10px 12px;
  }
  .ps-gallery-modal-audio-wrap audio { width: 100%; height: 36px; }
  .ps-gallery-modal-doc-wrap {
    border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(130,170,200,0.22);
    background: rgba(0,0,0,0.22); margin-bottom: 10px;
  }
  .ps-gallery-doc-preview {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 20px 14px; min-height: 100px;
  }
  .ps-gallery-doc-preview-icon { font-size: 2rem; line-height: 1; }
  .ps-gallery-doc-preview-name {
    font-size: 0.78rem; color: rgba(245,242,236,0.82); text-align: center;
    word-break: break-word; line-height: 1.35;
  }
  .ps-gallery-doc-preview iframe {
    width: 100%; height: 220px; border: 0; display: block; background: #fff;
  }
  .ps-gallery-doc-download {
    display: block; text-align: center; padding: 10px 14px;
    border-top: 1px solid rgba(130,170,200,0.18);
    color: rgba(165,200,230,0.95); font-size: 0.72rem; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none; cursor: pointer;
    transition: background 0.2s ease;
  }
  .ps-gallery-doc-download:hover { background: rgba(130,170,200,0.1); }
  .ps-gallery-modal-desc {
    width: 100%; box-sizing: border-box;
    min-height: 72px; max-height: 160px; resize: vertical;
    font-size: 0.78rem; color: rgba(245,242,236,0.85); line-height: 1.45;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px; padding: 9px 11px;
    font-family: var(--sans); outline: none;
    transition: border-color 0.2s ease;
  }
  .ps-gallery-modal-title-label {
    display: block;
    font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(201,169,97,0.55); margin-bottom: 5px; font-weight: 500;
  }
  .ps-gallery-modal-title-input {
    width: 100%; box-sizing: border-box;
    font-family: var(--serif); font-size: 1rem; font-weight: 400;
    color: #F5F2EC; line-height: 1.35;
    margin-bottom: 10px;
    background: transparent;
    border: none; border-bottom: 1px solid rgba(201,169,97,0.22);
    border-radius: 0; padding: 2px 0 6px;
    outline: none;
    transition: border-color 0.2s ease;
  }
  .ps-gallery-modal-title-input:focus { border-bottom-color: rgba(201,169,97,0.48); }
  .ps-gallery-modal-title-input::placeholder { color: rgba(245,242,236,0.28); font-style: italic; }
  .ps-gallery-modal-desc:focus { border-color: rgba(201,169,97,0.42); }
  .ps-gallery-modal-desc::placeholder { color: rgba(245,242,236,0.28); }
  .ps-gallery-modal-desc:disabled,
  .ps-gallery-modal-desc[readonly] {
    opacity: 0.72; cursor: default; resize: none;
  }
  .ps-gallery-modal-status {
    font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(232, 180, 90, 0.82); margin-bottom: 12px;
  }
  .ps-gallery-modal-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .ps-gallery-modal-actions .ps-api-modal-btn { flex: 1 1 calc(50% - 4px); min-width: 120px; }
  .ps-gallery-modal-actions .ps-gallery-discuss-btn { flex: 1 1 100%; min-width: 100%; }

  .ps-themes-personal-label {
    font-size: 0.7125rem; color: rgba(212,165,181,0.75); letter-spacing: 0.22em; text-transform: uppercase;
    margin: 0 0 10px; font-weight: 500;
  }
  .ps-theme-bubble.ps-personal {
    border-color: rgba(180,130,150,0.32);
    background: linear-gradient(135deg, rgba(180,130,150,0.07) 0%, rgba(201,169,97,0.03) 100%);
  }
  .ps-theme-bubble.ps-personal:hover:not(.ps-theme-disabled) {
    background: rgba(180,130,150,0.12);
    border-color: rgba(200,150,170,0.48);
  }
  .ps-theme-bubble.ps-personal.tapped {
    background: rgba(180,130,150,0.18);
    border-color: rgba(212,165,181,0.65);
  }
  .ps-theme-bubble.ps-personal .ps-theme-icon {
    color: #D4A5B5;
    border-color: rgba(180, 130, 150, 0.3);
    background: rgba(180, 130, 150, 0.09);
  }
  .ps-theme-bubble.ps-personal:hover:not(.ps-theme-disabled) .ps-theme-icon {
    border-color: rgba(212, 165, 181, 0.5);
    box-shadow: 0 0 14px rgba(180, 130, 150, 0.2);
  }
  .ps-theme-bubble.ps-personal .ps-theme-text {
    font-family: var(--serif-italic); font-style: italic; color: rgba(245,242,236,0.9);
  }
  .ps-theme-bubble.ps-personal .ps-theme-badge {
    font-size: 0.6rem; color: rgba(212,165,181,0.8); letter-spacing: 0.14em; text-transform: uppercase;
    margin-left: auto; margin-right: 4px; opacity: 0.85;
  }

  /* ── EXPÉRIENCE HÉRITIER (accueil) ── */
  .ps-heir-experience-card {
    padding: 12px 13px; border-radius: 14px; cursor: pointer;
    border: 1px solid var(--ps-profile-accent-soft, rgba(201,169,97,0.32));
    background:
      radial-gradient(ellipse 100% 80% at 0% 0%, var(--ps-profile-accent-bg, rgba(201,169,97,0.09)) 0%, transparent 55%),
      rgba(0, 0, 0, 0.18);
    display: flex; align-items: center; gap: 11px;
    transition: all 0.28s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    position: relative; overflow: hidden;
  }
  .ps-heir-experience-card::after {
    content: ''; position: absolute; inset: 0; border-radius: 14px;
    background: linear-gradient(135deg, var(--ps-profile-accent-bg, rgba(201,169,97,0.06)) 0%, transparent 50%);
    pointer-events: none;
  }
  .ps-heir-experience-card:hover:not(.ps-theme-disabled) {
    border-color: var(--ps-profile-accent, #C9A961);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
  }
  .ps-heir-experience-card:active:not(.ps-theme-disabled), .ps-heir-experience-card.tapped {
    transform: scale(0.98);
    background: rgba(201, 169, 97, 0.1);
  }
  .ps-heir-experience-card.ps-theme-disabled { opacity: 0.5; pointer-events: none; cursor: default; }
  .ps-heir-experience-card.ps-heir-exp-locked {
    cursor: default;
    border-color: rgba(201, 169, 97, 0.18);
    background:
      radial-gradient(ellipse 100% 80% at 0% 0%, rgba(201,169,97,0.05) 0%, transparent 55%),
      rgba(0, 0, 0, 0.24);
  }
  .ps-heir-experience-card.ps-heir-exp-locked:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(201, 169, 97, 0.22);
  }
  .ps-heir-experience-card.ps-heir-exp-locked .ps-heir-experience-arrow { display: none; }
  .ps-heir-experience-card.ps-heir-exp-locked .ps-heir-experience-icon {
    opacity: 0.55;
    filter: grayscale(0.35);
  }
  .ps-heir-experience-card.ps-heir-exp-locked.ps-heir-exp-pulse .ps-heir-exp-unlock-fill {
    box-shadow: 0 0 14px var(--ps-profile-accent, #C9A961);
  }
  .ps-heir-experience-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; border-radius: 14px;
    opacity: 1;
  }
  .ps-heir-experience-card.has-fragments {
    border-color: var(--ps-profile-accent-soft, rgba(201,169,97,0.42));
    background:
      radial-gradient(ellipse 90% 70% at 100% 0%, var(--ps-profile-accent-bg, rgba(201,169,97,0.12)) 0%, transparent 60%),
      rgba(0, 0, 0, 0.18);
  }
  .ps-heir-experience-card.has-fragments.ps-heir-exp-locked {
    border-color: rgba(201, 169, 97, 0.22);
  }
  .ps-heir-exp-unlock {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
  }
  .ps-heir-exp-unlock-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
  }
  .ps-heir-exp-unlock-label {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 242, 236, 0.38);
    font-weight: 500;
  }
  .ps-heir-exp-unlock-count {
    font-family: var(--serif);
    font-size: 0.72rem;
    color: var(--ps-profile-accent, #C9A961);
    opacity: 0.88;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }
  .ps-heir-exp-unlock-track {
    position: relative;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 7px;
  }
  .ps-heir-exp-unlock-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg,
      var(--ps-profile-accent-soft, rgba(201,169,97,0.45)),
      var(--ps-profile-accent, #C9A961));
    box-shadow: 0 0 8px var(--ps-profile-accent-soft, rgba(201,169,97,0.35));
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  }
  .ps-heir-exp-unlock-hint {
    font-family: var(--serif-italic);
    font-size: 0.68rem;
    font-style: italic;
    color: rgba(245, 242, 236, 0.42);
    line-height: 1.45;
  }
  .ps-heir-experience-icon {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    border: 1px solid var(--ps-profile-accent-soft, rgba(201,169,97,0.35));
    background: var(--ps-profile-accent-bg, rgba(201,169,97,0.08));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; color: var(--ps-profile-accent, #C9A961);
    position: relative; z-index: 1;
  }
  .ps-heir-experience-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
  .ps-heir-experience-title {
    font-family: var(--serif); font-size: 0.975rem; color: #F5F2EC;
    font-weight: 500; margin-bottom: 4px; line-height: 1.3;
  }
  .ps-heir-experience-desc {
    font-family: var(--serif-italic); font-size: 0.75rem; font-style: italic;
    color: rgba(245, 242, 236, 0.48); line-height: 1.45;
  }
  .ps-heir-experience-arrow {
    color: var(--ps-profile-accent, #C9A961); font-size: 1.1875rem;
    opacity: 0.55; flex-shrink: 0; position: relative; z-index: 1;
  }

  /* ── FINALISATION DU SANCTUAIRE (accueil) ── */
  .ps-sanctuary-finalization-section .ps-themes-label {
    color: rgba(201, 169, 97, 0.58); letter-spacing: 0.26em;
  }
  .ps-sanctuary-finalization-section {
    position: relative;
  }
  .ps-sanctuary-finalization-section::before {
    content: '';
    position: absolute; top: 20px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.28) 20%, rgba(201, 169, 97, 0.28) 80%, transparent);
    pointer-events: none;
  }
  .ps-sanctuary-finalization-card {
    padding: 13px 14px; border-radius: 14px; cursor: pointer;
    border: 1px solid var(--ps-profile-accent-soft, rgba(201,169,97,0.38));
    background:
      radial-gradient(ellipse 110% 90% at 100% 100%, var(--ps-profile-accent-bg, rgba(201,169,97,0.14)) 0%, transparent 58%),
      radial-gradient(ellipse 80% 60% at 0% 0%, rgba(201, 169, 97, 0.06) 0%, transparent 55%),
      rgba(0, 0, 0, 0.24);
    box-shadow: inset 0 1px 0 rgba(201, 169, 97, 0.08);
    display: flex; align-items: center; gap: 11px;
    transition: all 0.28s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    position: relative; overflow: hidden;
  }
  .ps-sanctuary-finalization-card::after {
    content: ''; position: absolute; inset: 0; border-radius: 14px;
    background: linear-gradient(225deg, var(--ps-profile-accent-bg, rgba(201,169,97,0.07)) 0%, transparent 50%);
    pointer-events: none;
  }
  .ps-sanctuary-finalization-card:hover:not(.ps-theme-disabled) {
    border-color: var(--ps-profile-accent, #C9A961);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
    transform: translateY(-1px);
  }
  .ps-sanctuary-finalization-card:active:not(.ps-theme-disabled), .ps-sanctuary-finalization-card.tapped {
    transform: scale(0.98);
    background: rgba(201, 169, 97, 0.1);
  }
  .ps-sanctuary-finalization-card.ps-theme-disabled { opacity: 0.5; pointer-events: none; cursor: default; }
  .ps-sanctuary-finalization-card.ps-finalization-locked {
    cursor: default;
    border-color: rgba(201, 169, 97, 0.18);
    background:
      radial-gradient(ellipse 100% 80% at 100% 100%, rgba(201,169,97,0.05) 0%, transparent 55%),
      rgba(0, 0, 0, 0.26);
  }
  .ps-sanctuary-finalization-card.ps-finalization-locked:hover {
    transform: none; box-shadow: none;
    border-color: rgba(201, 169, 97, 0.22);
  }
  .ps-sanctuary-finalization-card.ps-finalization-locked .ps-sanctuary-finalization-arrow { display: none; }
  .ps-sanctuary-finalization-card.ps-finalization-locked .ps-sanctuary-finalization-icon {
    opacity: 0.55; filter: grayscale(0.35);
  }
  .ps-sanctuary-finalization-card.ps-finalization-locked.ps-finalization-pulse .ps-finalization-unlock-fill {
    box-shadow: 0 0 14px var(--ps-profile-accent, #C9A961);
  }
  .ps-sanctuary-finalization-card.ps-finalization-coming-soon {
    cursor: default; pointer-events: none;
    border-color: rgba(201, 169, 97, 0.22);
  }
  .ps-sanctuary-finalization-card.ps-finalization-coming-soon:hover,
  .ps-sanctuary-finalization-card.ps-finalization-coming-soon:active {
    transform: none; box-shadow: none;
    border-color: rgba(201, 169, 97, 0.22);
    background:
      radial-gradient(ellipse 100% 80% at 100% 100%, var(--ps-profile-accent-bg, rgba(201,169,97,0.11)) 0%, transparent 55%),
      rgba(0, 0, 0, 0.2);
  }
  .ps-sanctuary-finalization-card.ps-finalization-coming-soon .ps-sanctuary-finalization-arrow { display: none; }
  .ps-sanctuary-finalization-soon {
    display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px;
    font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(201,169,97,0.85); border: 1px solid rgba(201,169,97,0.28);
    background: rgba(201,169,97,0.08); font-family: var(--sans); font-style: normal;
  }
  .ps-sanctuary-finalization-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; border-radius: 14px; opacity: 1;
  }
  .ps-sanctuary-finalization-card.has-fragments {
    border-color: var(--ps-profile-accent-soft, rgba(201,169,97,0.42));
    background:
      radial-gradient(ellipse 90% 70% at 100% 0%, var(--ps-profile-accent-bg, rgba(201,169,97,0.12)) 0%, transparent 60%),
      rgba(0, 0, 0, 0.18);
  }
  .ps-finalization-unlock {
    margin-top: 9px; padding-top: 9px;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
  }
  .ps-finalization-unlock-top {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 8px; margin-bottom: 7px;
  }
  .ps-finalization-unlock-label {
    font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(245, 242, 236, 0.38); font-weight: 500;
  }
  .ps-finalization-unlock-count {
    font-family: var(--serif); font-size: 0.72rem;
    color: var(--ps-profile-accent, #C9A961); opacity: 0.88;
    letter-spacing: 0.03em; flex-shrink: 0;
  }
  .ps-finalization-unlock-track {
    position: relative; height: 4px; border-radius: 4px;
    background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-bottom: 7px;
  }
  .ps-finalization-unlock-fill {
    height: 100%; width: 0%; border-radius: 4px;
    background: linear-gradient(90deg,
      var(--ps-profile-accent-soft, rgba(201,169,97,0.45)),
      var(--ps-profile-accent, #C9A961));
    box-shadow: 0 0 8px var(--ps-profile-accent-soft, rgba(201,169,97,0.35));
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  }
  .ps-finalization-unlock-hint {
    font-family: var(--serif-italic); font-size: 0.68rem; font-style: italic;
    color: rgba(245, 242, 236, 0.42); line-height: 1.45;
  }
  .ps-sanctuary-finalization-icon {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    border: 1px solid var(--ps-profile-accent-soft, rgba(201,169,97,0.35));
    background: var(--ps-profile-accent-bg, rgba(201,169,97,0.08));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; color: var(--ps-profile-accent, #C9A961);
    position: relative; z-index: 1;
  }
  .ps-sanctuary-finalization-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
  .ps-sanctuary-finalization-title {
    font-family: var(--serif); font-size: 1rem; color: #F5F2EC;
    font-weight: 500; margin-bottom: 5px; line-height: 1.32; letter-spacing: 0.02em;
  }
  .ps-sanctuary-finalization-desc {
    font-family: var(--serif-italic); font-size: 0.74rem; font-style: italic;
    color: rgba(201, 169, 97, 0.58); line-height: 1.5;
  }
  .ps-sanctuary-finalization-arrow {
    color: var(--ps-profile-accent, #C9A961); font-size: 1.1875rem;
    opacity: 0.55; flex-shrink: 0; position: relative; z-index: 1;
  }

  /* ── DIALOGUE JOURNAL (Pour vous seul) ── */
  .ps-journal-chat-section { margin: 10px 0 12px; }
  .ps-journal-chat-card {
    padding: 12px 13px; border-radius: 14px; cursor: pointer;
    border: 1px solid rgba(180, 130, 150, 0.32);
    background:
      radial-gradient(ellipse 100% 80% at 0% 0%, rgba(180, 130, 150, 0.1) 0%, transparent 55%),
      rgba(0, 0, 0, 0.18);
    display: flex; align-items: center; gap: 11px;
    transition: all 0.28s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    position: relative; overflow: hidden;
  }
  .ps-journal-chat-card::after {
    content: ''; position: absolute; inset: 0; border-radius: 14px;
    background: linear-gradient(135deg, rgba(180, 130, 150, 0.07) 0%, transparent 50%);
    pointer-events: none;
  }
  .ps-journal-chat-card:hover:not(.ps-theme-disabled) {
    border-color: rgba(212, 165, 181, 0.55);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
  }
  .ps-journal-chat-card:active:not(.ps-theme-disabled), .ps-journal-chat-card.tapped {
    transform: scale(0.98);
    background: rgba(180, 130, 150, 0.14);
  }
  .ps-journal-chat-card.ps-theme-disabled { opacity: 0.5; pointer-events: none; cursor: default; }
  .ps-journal-chat-icon {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    border: 1px solid rgba(180, 130, 150, 0.35);
    background: rgba(180, 130, 150, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.0625rem; position: relative; z-index: 1;
  }
  .ps-journal-chat-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
  .ps-journal-chat-title {
    font-family: var(--serif-italic); font-size: 0.95rem; font-style: italic;
    color: rgba(245, 242, 236, 0.92); font-weight: 500; margin-bottom: 4px; line-height: 1.3;
  }
  .ps-journal-chat-desc {
    font-family: var(--serif-italic); font-size: 0.725rem; font-style: italic;
    color: rgba(212, 165, 181, 0.62); line-height: 1.45;
  }
  .ps-journal-chat-arrow {
    color: rgba(212, 165, 181, 0.75); font-size: 1.1875rem;
    opacity: 0.65; flex-shrink: 0; position: relative; z-index: 1;
  }
  .ps-journal-chat-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; border-radius: 14px;
    opacity: 1;
  }
  .ps-journal-chat-card > *:not(canvas) { position: relative; z-index: 1; }
  .ps-journal-chat-card.has-fragments {
    border-color: rgba(180, 130, 150, 0.44);
    background:
      radial-gradient(ellipse 100% 80% at 0% 0%, rgba(180, 130, 150, 0.16) 0%, transparent 55%),
      rgba(180, 130, 150, 0.06);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  }
  /* ── PANEL HÉRITIER (chat) ── */
  .ps-heir-panel {
    display: none; flex-direction: column; gap: 6px;
    padding: 8px 0 4px; border-bottom: 1px solid rgba(201, 169, 97, 0.1);
    margin-bottom: 4px;
  }
  .ps-heir-panel.visible { display: flex; }
  .ps-heir-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 22px;
  }
  .ps-heir-panel-toggle {
    background: none; border: none; cursor: pointer;
    font-family: var(--sans); font-size: 0.6rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.55); padding: 2px 0; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
  }
  .ps-heir-panel-toggle:hover { color: rgba(201, 169, 97, 0.85); }
  .ps-heir-panel.collapsed .ps-heir-panel-body { display: none; }
  .ps-heir-panel.collapsed { padding-bottom: 2px; margin-bottom: 2px; border-bottom-color: rgba(201, 169, 97, 0.06); }
  .ps-heir-panel-body { display: flex; flex-direction: column; gap: 6px; }
  .ps-heir-panel-role {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    padding: 4px 9px; border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.22);
    background: rgba(201, 169, 97, 0.06);
    font-size: 0.65rem; letter-spacing: 0.08em; color: rgba(245, 242, 236, 0.7);
  }
  .ps-heir-panel-role-icon { color: #C9A961; font-size: 0.6875rem; }
  .ps-heir-panel-role-icon-photo {
    width: 20px; height: 20px; border-radius: 50%; overflow: hidden;
    border: 1px solid rgba(201, 169, 97, 0.28); flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.5625rem;
  }
  .ps-heir-panel-role-icon-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ps-heir-panel-role-name { font-family: var(--serif); color: #F5F2EC; }
  .ps-heir-panel-role-rel { color: #8A8A8A; }
  .ps-heir-panel.journal-mode .ps-heir-panel-role {
    border-color: rgba(180, 130, 150, 0.28);
    background: rgba(180, 130, 150, 0.08);
  }
  .ps-heir-panel.journal-mode .ps-heir-panel-role-icon { color: #D4A5B5; }
  .ps-heir-panel.journal-mode .ps-heir-panel-role-name {
    font-family: var(--serif-italic); font-style: italic;
  }
  .ps-heir-panel.journal-mode .ps-heir-panel-label { color: rgba(212, 165, 181, 0.55); }
  .ps-heir-panel.journal-mode .ps-heir-question-chip {
    border-color: rgba(180, 130, 150, 0.22);
    background: rgba(180, 130, 150, 0.06);
  }
  .ps-heir-panel.journal-mode .ps-heir-question-chip:hover {
    border-color: rgba(212, 165, 181, 0.45);
    background: rgba(180, 130, 150, 0.12);
  }
  .ps-heir-panel-label {
    font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.55); font-weight: 500;
  }
  .ps-heir-questions { display: flex; flex-direction: column; gap: 7px; max-height: 168px; overflow-y: auto; }
  .ps-heir-questions::-webkit-scrollbar { display: none; }
  .ps-heir-register-group { display: flex; flex-direction: column; gap: 4px; }
  .ps-heir-register-label {
    font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(201, 169, 97, 0.42); font-weight: 500; padding-left: 2px;
  }
  .ps-heir-question-chip {
    text-align: left; padding: 6px 9px; border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    background: rgba(201, 169, 97, 0.04);
    color: rgba(245, 242, 236, 0.88);
    font-family: var(--serif-italic); font-size: 0.78rem; font-style: italic;
    line-height: 1.35; cursor: pointer;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-heir-question-chip:hover {
    background: rgba(201, 169, 97, 0.1);
    border-color: rgba(201, 169, 97, 0.38);
  }
  .ps-heir-question-chip:active { transform: scale(0.98); }
  .ps-heir-question-chip.used { opacity: 0.35; pointer-events: none; }
  .ps-msg-heir .ps-msg-bubble {
    background: linear-gradient(135deg, rgba(122, 155, 184, 0.14), rgba(122, 155, 184, 0.06));
    border: 1px solid rgba(122, 155, 184, 0.28);
    border-radius: 14px 4px 14px 14px;
  }
  .ps-heir-panel-hint {
    font-family: var(--serif-italic); font-size: 0.725rem; font-style: italic;
    color: rgba(138, 138, 138, 0.85); text-align: center; margin-top: 2px;
  }

  /* ── HÉRITIERS (accueil) ── */
  .ps-heirs-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .ps-heirs-manage-btn {
    font-size: 0.725rem; color: #C9A961; letter-spacing: 0.1em; text-transform: uppercase;
    background: none; border: none; cursor: pointer; font-family: var(--sans); font-weight: 500;
    padding: 4px 0; opacity: 0.75; transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-heirs-manage-btn:hover:not(:disabled) { opacity: 1; }
  .ps-heirs-manage-btn:disabled { opacity: 0.3; cursor: default; }
  .ps-heirs-preview {
    display: flex; flex-wrap: wrap; gap: 12px 10px; min-height: 88px;
    align-items: flex-start; padding: 2px 0 4px;
  }
  .ps-heir-preview-chip {
    position: relative; overflow: hidden;
    width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(201,169,97,0.22);
    background:
      radial-gradient(circle at 38% 28%, rgba(201, 169, 97, 0.14) 0%, rgba(201, 169, 97, 0.03) 72%);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 8px 7px 11px; text-align: center;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
  }
  .ps-heir-preview-chip.has-fragments {
    border-color: rgba(201,169,97,0.42);
    background:
      radial-gradient(circle at 38% 28%, rgba(201, 169, 97, 0.22) 0%, rgba(201, 169, 97, 0.05) 72%);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.08), 0 4px 18px rgba(0,0,0,0.22);
  }
  .ps-heir-preview-chip.has-photo {
    background: rgba(0, 0, 0, 0.35);
  }
  .ps-heir-preview-chip.has-photo.has-fragments {
    background: rgba(0, 0, 0, 0.35);
  }
  .ps-heir-preview-photo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%; z-index: 0;
    pointer-events: none;
  }
  .ps-heir-preview-chip::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.55) 100%);
    pointer-events: none; z-index: 1;
  }
  .ps-heir-preview-chip.has-photo::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.72) 100%);
  }
  .ps-heir-preview-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; border-radius: 50%;
    opacity: 1;
  }
  .ps-heir-preview-chip.has-photo .ps-heir-preview-particles-canvas {
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 0.88;
  }
  .ps-heir-preview-name {
    position: relative; z-index: 2;
    font-family: var(--serif); color: #F5F2EC; font-size: 0.7rem;
    line-height: 1.22; letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.65);
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .ps-heir-preview-chip.ps-heir-preview-more {
    width: auto; min-width: 68px; height: auto; padding: 10px 14px;
    border-radius: 22px; align-items: center; justify-content: center;
    background: rgba(201,169,97,0.04);
  }
  .ps-heir-preview-chip.ps-heir-preview-more::after { display: none; }
  .ps-heir-preview-chip.ps-heir-preview-more .ps-heir-preview-name {
    font-size: 0.78rem; -webkit-line-clamp: 1; text-shadow: none; color: rgba(245,242,236,0.72);
  }
  .ps-heirs-empty {
    font-family: var(--serif-italic); font-size: 0.85rem; font-style: italic;
    color: rgba(138,138,138,0.85); line-height: 1.45;
  }
  .ps-heirs-share-block {
    margin-top: 14px; padding: 12px; border-radius: 12px;
    border: 1px solid rgba(201,169,97,0.15); background: rgba(201,169,97,0.03);
  }
  .ps-heirs-share-title { font-family: var(--serif); font-size: 0.9rem; color: #F5F2EC; margin-bottom: 6px; }
  .ps-heirs-share-sub {
    font-family: var(--serif-italic); font-size: 0.75rem; font-style: italic;
    color: rgba(245,242,236,0.42); line-height: 1.45; margin-bottom: 10px;
  }
  .ps-heirs-share-btn, .ps-heirs-share-copy {
    width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 0.78rem;
    letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; font-family: var(--sans);
  }
  .ps-heirs-share-btn {
    border: 1px solid rgba(201,169,97,0.35); background: rgba(201,169,97,0.1); color: #F5F2EC;
  }
  .ps-heirs-share-btn:hover:not(:disabled) { background: rgba(201,169,97,0.18); }
  .ps-heirs-share-btn:disabled { opacity: 0.45; cursor: default; }
  .ps-heirs-share-soon {
    display: inline-block; margin-top: 2px; padding: 4px 10px; border-radius: 999px;
    font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(201,169,97,0.85); border: 1px solid rgba(201,169,97,0.28);
    background: rgba(201,169,97,0.08); font-family: var(--sans); font-style: normal;
  }
  .ps-heirs-share-link {
    margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 0.68rem;
    word-break: break-all; color: rgba(201,169,97,0.85); background: rgba(0,0,0,0.25);
    border: 1px solid rgba(201,169,97,0.12); display: none;
  }
  .ps-heirs-share-link.visible { display: block; }
  .ps-heirs-share-copy {
    margin-top: 8px; border: 1px solid rgba(201,169,97,0.25); background: transparent; color: rgba(245,242,236,0.7);
  }
  .ps-heirs-propagate-btn { margin-top: 10px; }
  .ps-invite-banner {
    margin-bottom: 14px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgba(201,169,97,0.28);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.03) 100%),
      rgba(8, 8, 12, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  .ps-invite-banner-title { font-family: var(--serif); font-size: 0.88rem; color: #F5F2EC; margin-bottom: 4px; }
  .ps-invite-banner-sub { font-size: 0.72rem; color: rgba(245,242,236,0.5); line-height: 1.4; }
  .ps-invite-banner.is-active {
    border-color: rgba(201,169,97,0.45);
    box-shadow: 0 0 24px rgba(201,169,97,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .ps-invite-banner-steps {
    display: flex; flex-direction: column; gap: 6px; margin-top: 10px; text-align: left;
  }
  .ps-invite-banner-step {
    display: flex; align-items: flex-start; gap: 8px; font-size: 0.68rem;
    color: rgba(245,242,236,0.55); line-height: 1.4;
  }
  .ps-invite-banner-step-num {
    flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
    border: 1px solid rgba(201,169,97,0.35); color: #C9A961;
    font-size: 0.58rem; display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
  }
  .ps-invite-home-banner {
    margin: 0 16px 14px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgba(201,169,97,0.35);
    background:
      linear-gradient(135deg, rgba(201, 169, 97, 0.12) 0%, rgba(201, 169, 97, 0.04) 100%),
      rgba(8, 8, 12, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    box-shadow: 0 0 24px rgba(201,169,97,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
  }
  .ps-invite-home-banner-btn {
    margin-top: 10px; width: 100%; padding: 10px 14px; border-radius: 999px;
    border: 1px solid rgba(201,169,97,0.45); background: rgba(201,169,97,0.14);
    color: #F5F2EC; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em;
    text-transform: uppercase; cursor: pointer;
  }
  .ps-invite-home-banner-btn:hover:not(:disabled) { background: rgba(201,169,97,0.22); }
  .ps-invite-home-banner-btn:disabled { opacity: 0.45; cursor: default; }

  /* ── RÉCEPTION — Mes héritages (accueil) ── */
  .ps-inheritances-home-section { margin-top: 4px; }
  .ps-inheritances-home-header { margin-bottom: 8px; }
  .ps-inheritances-home-sub {
    font-family: var(--serif-italic); font-size: 0.775rem; font-style: italic;
    color: rgba(245,242,236,0.38); line-height: 1.45; margin-top: 2px;
  }
  .ps-inheritances-home-card {
    padding: 13px 14px; border-radius: 14px; cursor: pointer;
    border: 1px solid rgba(201,169,97,0.38);
    background:
      radial-gradient(ellipse 100% 80% at 0% 0%, rgba(201,169,97,0.14) 0%, transparent 55%),
      rgba(0, 0, 0, 0.2);
    display: flex; align-items: center; gap: 12px;
    transition: all 0.28s ease; margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    position: relative; overflow: hidden;
  }
  .ps-inheritances-home-card:hover {
    border-color: #C9A961;
    box-shadow: 0 4px 24px rgba(201, 169, 97, 0.14);
    transform: translateY(-1px);
  }
  .ps-inheritances-home-card:active { transform: scale(0.985); }
  .ps-inheritances-home-icon {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(201,169,97,0.35); background: rgba(201,169,97,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #C9A961;
  }
  .ps-inheritances-home-body { flex: 1; min-width: 0; }
  .ps-inheritances-home-title {
    font-family: var(--serif); font-size: 0.95rem; color: #F5F2EC; margin-bottom: 3px;
  }
  .ps-inheritances-home-desc {
    font-size: 0.72rem; color: rgba(245,242,236,0.48); line-height: 1.4;
  }
  .ps-inheritances-home-arrow { color: #C9A961; opacity: 0.5; flex-shrink: 0; font-size: 1.1rem; }
  .ps-inheritances-preview { display: flex; flex-direction: column; gap: 7px; }
  .ps-inheritance-card-wrap,
  .ps-inheritance-full-wrap {
    width: 100%;
  }
  .ps-inheritance-card-remove,
  .ps-inheritance-full-remove {
    flex-shrink: 0; width: 24px; height: 24px; border: none; border-radius: 6px;
    background: transparent; color: rgba(138,138,138,0.38); font-size: 0.95rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease; padding: 0;
    -webkit-tap-highlight-color: transparent; opacity: 0;
  }
  .ps-inheritance-card-wrap:hover .ps-inheritance-card-remove,
  .ps-inheritance-card-wrap:focus-within .ps-inheritance-card-remove,
  .ps-inheritance-full-wrap:hover .ps-inheritance-full-remove,
  .ps-inheritance-full-wrap:focus-within .ps-inheritance-full-remove {
    opacity: 1;
  }
  @media (hover: none) {
    .ps-inheritance-card-remove,
    .ps-inheritance-full-remove { opacity: 0.5; }
  }
  .ps-inheritance-card-remove:hover,
  .ps-inheritance-full-remove:hover {
    color: rgba(201,169,97,0.82); background: rgba(201,169,97,0.08);
  }
  .ps-inheritance-card-trailing {
    display: flex; align-items: center; gap: 1px; flex-shrink: 0; margin-left: 6px;
  }
  .ps-inheritance-card {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 12px; border: 1px solid rgba(201,169,97,0.2);
    background: rgba(201,169,97,0.04); cursor: pointer; text-align: left;
    transition: border-color 0.22s ease, background 0.22s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-inheritance-card.has-fragments {
    border-color: rgba(201,169,97,0.32);
    background: rgba(201,169,97,0.07);
  }
  .ps-inheritance-card:hover { border-color: rgba(201,169,97,0.4); background: rgba(201,169,97,0.08); }
  .ps-inheritance-card-icon {
    width: 30px; height: 30px; min-width: 30px; max-width: 30px;
    min-height: 30px; max-height: 30px; flex: 0 0 30px;
    border-radius: 8px; flex-shrink: 0;
    border: 1px solid rgba(201,169,97,0.25); background: rgba(201,169,97,0.08);
    display: flex; align-items: center; justify-content: center; color: #C9A961; font-size: 0.8rem;
    overflow: hidden; position: relative;
  }
  .ps-inheritance-card-icon img,
  .ps-inheritance-full-icon img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .ps-inheritance-card-body { flex: 1; min-width: 0; }
  .ps-inheritance-card-name { font-family: var(--serif); font-size: 0.9rem; color: #F5F2EC; margin-bottom: 2px; }
  .ps-inheritance-card-meta { font-size: 0.7rem; color: #8A8A8A; line-height: 1.35; }
  .ps-inheritance-card-arrow {
    color: #C9A961; opacity: 0.42; flex-shrink: 0; font-size: 1.05rem; line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .ps-inheritance-card:hover .ps-inheritance-card-arrow,
  .ps-inheritance-card:focus-visible .ps-inheritance-card-arrow {
    opacity: 0.68; transform: translateX(1px);
  }
  .ps-transmission-section-label {
    font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(201,169,97,0.55); margin-bottom: 6px;
  }

  /* ── VUE HÉRITAGES REÇUS ── */
  .ps-inheritances-body {
    flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 20px; scrollbar-width: none;
  }
  .ps-inheritances-body::-webkit-scrollbar { display: none; }
  .ps-inheritances-intro {
    padding: 14px; border-radius: 14px; margin-bottom: 14px;
    border: 1px solid rgba(201,169,97,0.18);
    background: linear-gradient(135deg, rgba(201,169,97,0.08) 0%, rgba(201,169,97,0.02) 100%);
  }
  .ps-inheritances-intro-title {
    font-family: var(--serif); font-size: 1rem; color: #F5F2EC; margin-bottom: 6px; line-height: 1.35;
  }
  .ps-inheritances-intro-sub {
    font-family: var(--serif-italic); font-size: 0.78rem; font-style: italic;
    color: rgba(245,242,236,0.48); line-height: 1.5;
  }
  .ps-inheritances-list { display: flex; flex-direction: column; gap: 9px; }
  .ps-inheritance-full-card {
    padding: 14px; border-radius: 14px;
    border: 1px solid rgba(201,169,97,0.24);
    background: rgba(201,169,97,0.04);
    cursor: pointer; text-align: left; width: 100%;
    transition: border-color 0.22s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-inheritance-full-card:hover {
    border-color: rgba(201,169,97,0.45);
    transform: translateY(-1px);
  }
  .ps-inheritance-full-top {
    display: flex; align-items: flex-start; gap: 11px; margin-bottom: 10px;
  }
  .ps-inheritance-full-head { flex: 1; min-width: 0; }
  .ps-inheritance-full-remove { margin-top: -2px; margin-left: 4px; }
  .ps-inheritance-full-icon {
    width: 42px; height: 42px; min-width: 42px; max-width: 42px;
    min-height: 42px; max-height: 42px; flex: 0 0 42px;
    border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(201,169,97,0.35); background: rgba(201,169,97,0.1);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 1rem; color: #C9A961;
    overflow: hidden; position: relative;
  }
  .ps-inheritance-full-name {
    font-family: var(--serif); font-size: 1.05rem; color: #F5F2EC; margin-bottom: 2px;
  }
  .ps-inheritance-full-rel { font-size: 0.72rem; color: #8A8A8A; }
  .ps-inheritance-full-meta {
    font-size: 0.7rem; color: rgba(245,242,236,0.45); line-height: 1.45; margin-bottom: 10px;
  }
  .ps-inheritance-full-action {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: #C9A961;
  }
  .ps-inheritances-empty {
    padding: 28px 16px; text-align: center;
    font-family: var(--serif-italic); font-size: 0.82rem; font-style: italic;
    color: rgba(245,242,236,0.38); line-height: 1.5;
  }

  /* ── HÉRITIERS — statut & invitation ── */
  .ps-heir-row-status {
    flex-shrink: 0; padding: 2px 7px; border-radius: 999px; font-size: 0.56rem;
    letter-spacing: 0.08em; text-transform: uppercase;
  }
  .ps-heir-row-status.is-linked {
    color: rgba(140, 210, 160, 0.95); border: 1px solid rgba(140, 210, 160, 0.35);
    background: rgba(140, 210, 160, 0.08);
  }
  .ps-heir-row-status.is-pending {
    color: rgba(201,169,97,0.75); border: 1px solid rgba(201,169,97,0.25);
    background: rgba(201,169,97,0.06);
  }
  .ps-heir-row-invite {
    flex-shrink: 0; padding: 5px 9px; border-radius: 8px; font-size: 0.62rem;
    letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
    border: 1px solid rgba(201,169,97,0.3); background: rgba(201,169,97,0.08);
    color: rgba(245,242,236,0.82); font-family: var(--sans);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .ps-heir-row-invite:hover:not(:disabled) {
    background: rgba(201,169,97,0.16); border-color: rgba(201,169,97,0.45);
  }
  .ps-heir-row-invite:disabled { opacity: 0.4; cursor: default; }
  .ps-heirs-transmission-note {
    font-family: var(--serif-italic); font-size: 0.72rem; font-style: italic;
    color: rgba(245,242,236,0.38); line-height: 1.45; margin-bottom: 12px;
  }

  /* ── MODAL BIENVENUE HÉRITIER ── */
  .ps-invite-welcome-card { max-width: 340px; text-align: center; }
  .ps-invite-welcome-seal {
    font-size: 2rem; color: #C9A961; margin-bottom: 8px; opacity: 0.9;
  }
  .ps-invite-welcome-actions {
    display: flex; flex-direction: column; gap: 8px; margin-top: 16px;
  }

  /* ── MÉMOIRES (accueil) ── */
  .ps-memories-header { margin-bottom: 8px; }
  .ps-memories-sub {
    font-family: var(--serif-italic); font-size: 0.775rem; font-style: italic;
    color: rgba(245,242,236,0.38); line-height: 1.45; margin-bottom: 12px;
  }
  .ps-memories-scroll {
    display: flex; gap: 9px; overflow-x: auto; padding: 4px 2px 10px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ps-memories-scroll::-webkit-scrollbar { display: none; }
  .ps-memory-card {
    flex: 0 0 138px; scroll-snap-align: start;
    padding: 11px 11px 10px; border-radius: 13px;
    border: 1px solid rgba(201,169,97,0.22);
    background:
      radial-gradient(ellipse 120% 80% at 50% 0%, rgba(201,169,97,0.1) 0%, transparent 55%),
      rgba(201,169,97,0.03);
    cursor: pointer; position: relative; overflow: hidden;
    transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-memory-card-particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; border-radius: 13px;
    opacity: 1;
  }
  .ps-memory-card > *:not(canvas) { position: relative; z-index: 1; }
  .ps-memory-card.has-fragments {
    border-color: rgba(201,169,97,0.38);
    background:
      radial-gradient(ellipse 120% 80% at 50% 0%, rgba(201,169,97,0.16) 0%, transparent 55%),
      rgba(201,169,97,0.05);
    box-shadow: 0 2px 14px rgba(0,0,0,0.18);
  }
  .ps-memory-card::after {
    content: ''; position: absolute; inset: 0; border-radius: 13px;
    background: linear-gradient(135deg, rgba(201,169,97,0.06) 0%, transparent 50%);
    pointer-events: none;
  }
  .ps-memory-card:hover { border-color: rgba(201,169,97,0.42); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
  .ps-memory-card:active { transform: scale(0.97); }
  .ps-memory-card.ps-memory-personal {
    border-color: rgba(180,130,150,0.32);
    background:
      radial-gradient(ellipse 120% 80% at 50% 0%, rgba(180,130,150,0.12) 0%, transparent 55%),
      rgba(180,130,150,0.04);
  }
  .ps-memory-card.ps-memory-personal.has-fragments {
    border-color: rgba(180,130,150,0.44);
    background:
      radial-gradient(ellipse 120% 80% at 50% 0%, rgba(180,130,150,0.18) 0%, transparent 55%),
      rgba(180,130,150,0.06);
    box-shadow: 0 2px 14px rgba(0,0,0,0.18);
  }
  .ps-memory-card-icon { font-size: 1.125rem; margin-bottom: 7px; display: block; }
  .ps-memory-card-name {
    font-family: var(--serif); font-size: 0.85rem; color: #F5F2EC;
    line-height: 1.35; margin-bottom: 5px; font-weight: 400;
  }
  .ps-memory-card-count {
    font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(201,169,97,0.7); margin-bottom: 7px; font-weight: 500;
  }
  .ps-memory-card-preview {
    font-family: var(--serif-italic); font-size: 0.725rem; font-style: italic;
    color: rgba(245,242,236,0.62); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .ps-memory-card-bar {
    height: 2px; border-radius: 2px; margin-top: 9px;
    background: rgba(201,169,97,0.12); overflow: hidden;
  }
  .ps-memory-card-fill {
    height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, rgba(201,169,97,0.4), #C9A961);
    box-shadow: 0 0 6px rgba(201,169,97,0.35);
  }

  /* ── VUE MÉMOIRES (immersion) ── */
  .ps-memory-view { overflow: hidden; }
  .ps-memory-view::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,169,97,0.06) 0%, transparent 60%),
      radial-gradient(circle at 20% 80%, rgba(201,169,97,0.03) 0%, transparent 40%),
      radial-gradient(circle at 85% 60%, rgba(201,169,97,0.025) 0%, transparent 35%);
  }
  .ps-memory-header {
    position: relative; z-index: 1; flex-shrink: 0; padding: 10px 14px 12px;
    border-bottom: 1px solid rgba(201,169,97,0.1);
    background: rgba(0,0,0,0.25);
  }
  .ps-memory-header-top {
    display: flex; align-items: flex-start; gap: 10px;
  }
  .ps-memory-header-icon {
    width: 32px; height: 32px; border-radius: 10px;
    border: 1px solid rgba(201,169,97,0.25);
    background: rgba(201,169,97,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.0625rem; flex-shrink: 0;
  }
  .ps-memory-header-info { flex: 1; min-width: 0; }
  .ps-memory-header-title {
    font-family: var(--serif); font-size: 1.025rem; color: #F5F2EC;
    font-weight: 500; letter-spacing: 0.02em; margin-bottom: 3px;
  }
  .ps-memory-header-meta {
    font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(201,169,97,0.65); font-weight: 500;
  }
  .ps-memory-body {
    position: relative; z-index: 1; flex: 1; min-height: 0;
    overflow-y: auto; padding: 14px 14px 20px 22px;
    scrollbar-width: none;
  }
  .ps-memory-body::-webkit-scrollbar { display: none; }
  .ps-memory-timeline { position: relative; }
  .ps-memory-timeline::before {
    content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
    background: linear-gradient(180deg, rgba(201,169,97,0.45) 0%, rgba(201,169,97,0.08) 100%);
  }
  .ps-memory-entry {
    position: relative; padding-left: 22px; margin-bottom: 16px;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .ps-memory-entry.visible { opacity: 1; transform: translateY(0); }
  .ps-memory-entry::before {
    content: ''; position: absolute; left: 1px; top: 7px;
    width: 9px; height: 9px; border-radius: 50%;
    border: 1px solid rgba(201,169,97,0.5);
    background: rgba(201,169,97,0.15);
    box-shadow: 0 0 8px rgba(201,169,97,0.25);
  }
  .ps-memory-entry-date {
    font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(201,169,97,0.6); margin-bottom: 5px; font-weight: 500;
  }
  .ps-memory-entry-title {
    font-family: var(--serif); font-size: 0.9rem; color: #F5F2EC;
    margin-bottom: 4px; font-weight: 400;
  }
  .ps-memory-entry-title-editable {
    cursor: text;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
  }
  .ps-memory-entry-title-editable:hover {
    border-bottom-color: rgba(201,169,97,0.28);
    color: rgba(245,242,236,0.96);
  }
  .ps-memory-entry-title-input {
    width: 100%; box-sizing: border-box;
    font-family: var(--serif); font-size: 0.9rem; color: #F5F2EC;
    margin-bottom: 4px; font-weight: 400;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,169,97,0.32);
    border-radius: 6px; padding: 4px 8px;
    outline: none;
  }
  .ps-memory-entry-title-input:focus { border-color: rgba(201,169,97,0.5); }
  .ps-memory-entry-excerpt {
    font-family: var(--serif-italic); font-size: 0.825rem; font-style: italic;
    color: rgba(245,242,236,0.82); line-height: 1.55;
    padding: 8px 10px; border-radius: 0 9px 9px 9px;
    background: rgba(201,169,97,0.1);
    border: 1px solid rgba(201,169,97,0.2);
    border-left: 2px solid rgba(201,169,97,0.48);
  }
  .ps-memory-entry-excerpt-editable {
    cursor: text;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .ps-memory-entry-excerpt-editable:hover {
    border-color: rgba(201,169,97,0.34);
    background: rgba(201,169,97,0.13);
  }
  .ps-memory-entry-excerpt.is-empty {
    color: rgba(245,242,236,0.38);
    font-style: italic;
  }
  .ps-memory-entry-excerpt-input {
    width: 100%; box-sizing: border-box;
    font-family: var(--serif-italic); font-size: 0.825rem; font-style: italic;
    color: rgba(245,242,236,0.92); line-height: 1.55;
    margin-bottom: 0;
    min-height: 72px; resize: vertical;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,169,97,0.32);
    border-left: 2px solid rgba(201,169,97,0.48);
    border-radius: 0 9px 9px 9px; padding: 8px 10px;
    outline: none;
  }
  .ps-memory-entry-excerpt-input:focus { border-color: rgba(201,169,97,0.5); }
  .ps-memory-entry-frame {
    margin-top: 8px; display: flex; flex-direction: column; gap: 5px;
    padding: 8px 10px; border-radius: 8px;
    background: rgba(245,242,236,0.025);
    border: 1px solid rgba(245,242,236,0.07);
  }
  .ps-memory-entry-frame-label {
    font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(245,242,236,0.38); font-weight: 500;
  }
  .ps-memory-entry-frame-line {
    margin: 0; font-family: var(--serif-italic); font-style: italic;
    font-size: 0.775rem; color: rgba(245,242,236,0.46); line-height: 1.48;
  }
  .ps-memory-entry-frame-more {
    margin: 2px 0 0; font-size: 0.58rem; letter-spacing: 0.08em;
    color: rgba(245,242,236,0.28); font-style: normal;
  }
  .ps-memory-entry-audio-group { margin-top: 4px; }
  .ps-memory-entry-audio-label {
    font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(201,169,97,0.52); font-weight: 500; margin-bottom: 6px;
  }
  .ps-memory-entry-quotes {
    margin-top: 8px;
    display: flex; flex-direction: column; gap: 6px;
  }
  .ps-memory-entry-quotes-label {
    font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(201,169,97,0.62); font-weight: 500;
  }
  .ps-memory-entry-quote {
    margin: 0; padding: 7px 10px; border-radius: 0 8px 8px 8px;
    font-family: var(--serif); font-size: 0.8125rem; font-style: normal;
    color: rgba(245,242,236,0.92); line-height: 1.5;
    background: rgba(201,169,97,0.12);
    border: 1px solid rgba(201,169,97,0.24);
    border-left: 2px solid rgba(201,169,97,0.58);
  }
  .ps-memory-entry-files {
    margin-top: 8px;
  }
  .ps-memory-entry-files .ps-msg-attachments { margin-top: 0; }
  .ps-memory-entry-files .ps-photo-msg { max-width: 100%; margin-top: 0; }
  .ps-photo-expand-hint {
    display: block; padding: 5px 8px 7px;
    font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
    text-align: center; color: rgba(201,169,97,0.62);
    border-top: 1px solid rgba(201,169,97,0.14);
  }
  .ps-photo-msg.is-expandable:hover .ps-photo-expand-hint { color: rgba(201,169,97,0.82); }
  .ps-memory-entry-sealed {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
    font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(201,169,97,0.55);
  }
  .ps-memory-entry-sealed::before {
    content: '◆'; font-size: 0.5rem; opacity: 0.8;
  }
  .ps-memory-entry-actions {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
  }
  .ps-memory-entry-btn {
    padding: 6px 10px; border-radius: 999px;
    border: 1px solid rgba(201,169,97,0.28); background: rgba(201,169,97,0.06);
    color: rgba(245,242,236,0.82); font-size: 0.62rem; letter-spacing: 0.1em;
    text-transform: uppercase; cursor: pointer; font-family: var(--sans);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }
  .ps-memory-entry-btn:hover {
    border-color: rgba(201,169,97,0.48); background: rgba(201,169,97,0.12); color: #F5F2EC;
  }
  .ps-memory-entry-btn.danger {
    border-color: rgba(180,90,90,0.35); background: rgba(180,90,90,0.08); color: rgba(255,190,190,0.82);
  }
  .ps-memory-entry-btn.danger:hover {
    border-color: rgba(220,110,110,0.55); background: rgba(180,90,90,0.16); color: #FFD8D8;
  }
  .ps-memory-entry-heirs {
    font-size: 0.62rem; color: rgba(201,169,97,0.62); margin-top: 4px; letter-spacing: 0.06em;
  }
  .ps-heir-manage-list {
    display: flex; flex-wrap: wrap; gap: 6px; max-height: 140px; overflow-y: auto;
    margin: 12px 0 10px; scrollbar-width: none;
  }
  .ps-heir-manage-list::-webkit-scrollbar { display: none; }

  /* ── VUE HÉRITIERS ── */
  .ps-heirs-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; scrollbar-width: none; }
  .ps-heirs-body::-webkit-scrollbar { display: none; }
  .ps-heirs-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
  .ps-heir-row {
    display: flex; align-items: center; gap: 8px; padding: 9px 11px;
    border: 1px solid rgba(201,169,97,0.18); border-radius: 11px;
    background: rgba(201,169,97,0.03);
  }
  .ps-heir-row-icon {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(201, 169, 97, 0.28);
    background: rgba(201, 169, 97, 0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: #C9A961; overflow: hidden;
  }
  .ps-heir-row-info { flex: 1; min-width: 0; }
  .ps-heir-row-name { font-family: var(--serif); font-size: 0.95rem; color: #F5F2EC; }
  .ps-heir-row-rel { font-size: 0.725rem; color: #8A8A8A; margin-top: 1px; }
  .ps-heir-row-extra {
    font-size: 0.6625rem; color: rgba(138, 138, 138, 0.82); margin-top: 2px;
    line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ps-heir-row-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
  .ps-heir-row-edit,
  .ps-heir-row-remove {
    width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(201,169,97,0.2);
    background: transparent; color: rgba(138,138,138,0.8); font-size: 1.0625rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
  }
  .ps-heir-row-edit {
    width: 24px; height: 24px; font-size: 0.75rem; color: rgba(201, 169, 97, 0.72);
  }
  .ps-heir-row-edit:hover { border-color: rgba(201,169,97,0.45); color: #C9A961; }
  .ps-heir-row-remove:hover { border-color: rgba(201,169,97,0.45); color: #C9A961; }
  .ps-heir-row-info-btn {
    flex: 1; min-width: 0; border: none; background: none; padding: 0; margin: 0;
    text-align: left; cursor: pointer; color: inherit; font: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-heirs-add-block {
    padding: 12px; border: 1px solid rgba(201,169,97,0.15); border-radius: 12px;
    background: rgba(201,169,97,0.04);
  }
  .ps-heirs-add-title { font-family: var(--serif); font-size: 0.925rem; color: #F5F2EC; margin-bottom: 10px; }
  .ps-heirs-add-fields { display: flex; flex-direction: column; gap: 7px; margin-bottom: 9px; }
  .ps-heirs-add-input {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(201,169,97,0.18);
    border-radius: 10px; padding: 8px 11px; font-size: 0.875rem; color: #F5F2EC;
    font-family: var(--sans); outline: none;
  }
  .ps-heirs-add-input::placeholder { color: rgba(245,242,236,0.32); }
  .ps-heirs-add-input:focus { border-color: rgba(201,169,97,0.45); }
  .ps-heirs-add-btn {
    width: 100%; padding: 9px;
    background: rgba(201,169,97,0.1); border: 1px solid rgba(201,169,97,0.38);
    border-radius: 10px; color: #C9A961;
    font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; font-family: var(--sans); transition: background 0.25s ease;
  }
  .ps-heirs-add-btn:hover:not(:disabled) { background: rgba(201,169,97,0.2); }
  .ps-heirs-add-btn:disabled { opacity: 0.35; cursor: default; }

  /* ── CHAT ── */
  .ps-chat-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px 9px; border-bottom: 1px solid rgba(201,169,97,0.1); flex-shrink: 0;
  }
  .ps-back-btn {
    color: #C9A961; font-size: 1.6875rem; font-weight: 300; cursor: pointer;
    width: 28px; line-height: 1; padding: 4px 0;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .ps-back-btn:hover { opacity: 0.75; }
  .ps-back-btn:active { transform: scale(0.92); }
  .ps-chat-title-wrap { flex: 1; }
  .ps-chat-title { font-family: var(--serif); font-size: 1.05rem; color: #F5F2EC; font-weight: 500; }
  .ps-chat-subtitle { font-size: 0.7125rem; color: #C9A961; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
  .ps-chat-heir-progress {
    font-size: 0.625rem; letter-spacing: 0.08em; color: rgba(201, 169, 97, 0.52);
    margin-top: 4px; font-family: var(--sans); font-weight: 400;
    text-transform: none;
  }
  .ps-messages {
    flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 8px;
    display: flex; flex-direction: column; gap: 9px; scrollbar-width: none;
  }
  .ps-messages::-webkit-scrollbar { display: none; }
  .ps-msg { max-width: 83%; opacity: 0; transform: translateY(7px); transition: opacity 0.38s ease, transform 0.38s ease; }
  .ps-msg.visible { opacity: 1; transform: translateY(0); }
  .ps-msg-confident { align-self: flex-start; }
  .ps-msg-user { align-self: flex-end; }
  .ps-msg-bubble { padding: 8px 12px; border-radius: 14px; font-size: 0.9125rem; line-height: 1.5; font-weight: 300; }
  .ps-msg-confident .ps-msg-bubble {
    background: rgba(245,242,236,0.07); border: 1px solid rgba(201,169,97,0.18);
    color: rgba(245,242,236,0.96); border-radius: 4px 14px 14px 14px;
    font-family: var(--serif); font-style: normal;
    font-size: 0.975rem; font-weight: 400; line-height: 1.65;
    letter-spacing: 0.01em;
  }
  .ps-msg-user .ps-msg-bubble {
    background: linear-gradient(135deg, rgba(201,169,97,0.18), rgba(168,137,63,0.12));
    border: 1px solid rgba(201,169,97,0.28); color: #F5F2EC; border-radius: 14px 4px 14px 14px;
  }
  .ps-typing {
    display: flex; gap: 4px; align-items: center;
    padding: 9px 13px; background: rgba(245,242,236,0.07); border: 1px solid rgba(201,169,97,0.14);
    border-radius: 4px 14px 14px 14px; align-self: flex-start;
    opacity: 0; transition: opacity 0.3s ease;
  }
  .ps-typing.visible { opacity: 1; }
  .ps-typing-dot { width: 5px; height: 5px; background: #C9A961; border-radius: 50%; animation: ps-bounce 1.4s ease-in-out infinite; opacity: 0.7; }
  .ps-typing-dot:nth-child(2) { animation-delay: 0.2s; }
  .ps-typing-dot:nth-child(3) { animation-delay: 0.4s; }
  @keyframes ps-bounce { 0%,60%,100%{transform:translateY(0);} 30%{transform:translateY(-5px);} }

  .ps-voice-msg {
    display: flex; align-items: center; gap: 7px; padding: 8px 11px;
    background: linear-gradient(135deg, rgba(201,169,97,0.18), rgba(168,137,63,0.12));
    border: 1px solid rgba(201,169,97,0.28); border-radius: 14px 4px 14px 14px; min-width: 130px;
  }
  .ps-voice-play { width: 22px; height: 22px; background: #C9A961; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.5625rem; color: #0A0A0A; flex-shrink: 0; }
  .ps-voice-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 20px; }
  .ps-wave-bar { width: 2px; background: #C9A961; border-radius: 2px; opacity: 0.6; }
  .ps-voice-duration { font-size: 0.775rem; color: #C9A961; font-weight: 500; flex-shrink: 0; }

  .ps-photo-msg {
    width: 100%; max-width: 200px;
    background: linear-gradient(135deg, rgba(201,169,97,0.12), rgba(168,137,63,0.05));
    border: 1px solid rgba(201,169,97,0.22); border-radius: 10px;
    overflow: hidden;
  }
  .ps-photo-msg.is-expandable {
    cursor: zoom-in;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .ps-photo-msg.is-expandable:hover {
    border-color: rgba(201,169,97,0.42);
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  }
  .ps-photo-msg.is-expandable:focus-visible {
    outline: 2px solid rgba(201,169,97,0.55);
    outline-offset: 2px;
  }
  .ps-photo-msg img { display: block; width: 100%; height: auto; max-height: 140px; object-fit: cover; }
  .ps-photo-msg.ps-photo-msg-unavailable {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; max-width: 260px;
    cursor: default;
  }
  .ps-photo-unavailable-icon { font-size: 1rem; opacity: 0.72; flex-shrink: 0; }
  .ps-photo-unavailable-text {
    font-size: 0.775rem; line-height: 1.35;
    color: rgba(201,169,97,0.78);
  }
  .ps-image-lightbox { z-index: 140; padding: 0; }
  .ps-image-lightbox-inner {
    position: relative; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: max(48px, calc(env(safe-area-inset-top, 0px) + 36px)) 12px max(24px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  .ps-image-lightbox img {
    max-width: min(96vw, 760px); max-height: min(86vh, 920px);
    width: auto; height: auto; object-fit: contain; display: block;
    border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,0.65);
    background: rgba(0,0,0,0.35);
  }
  .ps-image-lightbox-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid rgba(201,169,97,0.35);
    background: rgba(12,12,14,0.82); color: rgba(245,242,236,0.92);
    font-size: 1.1rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .ps-image-lightbox-close:hover {
    background: rgba(201,169,97,0.16);
    border-color: rgba(201,169,97,0.55);
  }
  .ps-audio-msg {
    width: 100%; max-width: 240px; margin-top: 4px;
    border-radius: 10px; border: 1px solid rgba(180,130,150,0.28);
    background: rgba(0,0,0,0.22); padding: 6px 8px;
  }
  .ps-audio-msg audio { width: 100%; height: 32px; }
  .ps-audio-msg.ps-audio-msg-unavailable {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; cursor: default;
  }
  .ps-audio-unavailable-icon { font-size: 1rem; opacity: 0.72; flex-shrink: 0; }
  .ps-audio-unavailable-text {
    font-size: 0.775rem; line-height: 1.35;
    color: rgba(201,169,97,0.78);
  }
  .ps-file-msg {
    display: flex; align-items: center; gap: 6px; padding: 7px 10px; margin-top: 6px;
    background: rgba(201,169,97,0.08); border: 1px solid rgba(201,169,97,0.22);
    border-radius: 8px; font-size: 0.775rem; color: #C9A961;
  }
  .ps-file-msg.is-clickable {
    cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-file-msg.is-clickable:hover,
  .ps-file-msg.is-clickable:focus-visible {
    background: rgba(201,169,97,0.14); border-color: rgba(201,169,97,0.38);
    outline: none;
  }
  .ps-file-msg.ps-file-msg-unavailable { cursor: default; opacity: 0.78; }
  .ps-file-msg-icon { flex-shrink: 0; opacity: 0.85; }
  .ps-file-msg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
  .ps-file-open-hint {
    flex-shrink: 0; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(201,169,97,0.55);
  }
  .ps-document-lightbox { z-index: 140; padding: 0; }
  .ps-document-lightbox-inner {
    position: relative; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    padding: max(48px, calc(env(safe-area-inset-top, 0px) + 36px)) 12px max(24px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  .ps-document-lightbox-title {
    flex-shrink: 0; text-align: center; font-size: 0.82rem; color: rgba(245,242,236,0.88);
    margin-bottom: 10px; padding: 0 40px; word-break: break-word; line-height: 1.35;
  }
  .ps-document-lightbox-preview {
    flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(130,170,200,0.22); background: rgba(0,0,0,0.35);
  }
  .ps-document-lightbox-preview iframe {
    width: 100%; height: 100%; min-height: min(72vh, 640px); border: 0; display: block; background: #fff;
  }
  .ps-document-preview-icon { font-size: 2.4rem; line-height: 1; }
  .ps-document-preview-name {
    font-size: 0.82rem; color: rgba(245,242,236,0.82); text-align: center;
    word-break: break-word; line-height: 1.35; padding: 0 16px;
  }
  .ps-document-preview-ext {
    font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(165,200,230,0.72);
  }
  .ps-document-preview-unavailable {
    font-size: 0.78rem; line-height: 1.4; color: rgba(201,169,97,0.78); text-align: center; padding: 24px 16px;
  }
  .ps-document-lightbox-download {
    flex-shrink: 0; display: block; text-align: center; margin-top: 10px; padding: 11px 14px;
    border: 1px solid rgba(130,170,200,0.28); border-radius: 10px;
    color: rgba(165,200,230,0.95); font-size: 0.72rem; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none; cursor: pointer;
    transition: background 0.2s ease;
  }
  .ps-document-lightbox-download:hover { background: rgba(130,170,200,0.12); }
  .ps-document-lightbox-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid rgba(201,169,97,0.35);
    background: rgba(12,12,14,0.82); color: rgba(245,242,236,0.92);
    font-size: 1.1rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .ps-document-lightbox-close:hover {
    background: rgba(201,169,97,0.16);
    border-color: rgba(201,169,97,0.55);
  }
  .ps-input-icon.disabled { opacity: 0.22; cursor: default; pointer-events: none; }
  .ps-input-icon.transcribing { opacity: 1; animation: ps-rec-pulse 0.9s ease-in-out infinite; }
  .ps-msg-attachments { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }

  .ps-input-area { padding: 8px 13px max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px)); border-top: 1px solid rgba(201,169,97,0.08); flex-shrink: 0; }
  .ps-input-bar {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(201,169,97,0.14);
    border-radius: 22px; padding: 7px 12px; margin-bottom: 7px;
  }
  .ps-input-icon { font-size: 1.0625rem; cursor: pointer; opacity: 0.55; flex-shrink: 0; transition: opacity 0.2s; }
  .ps-input-icon.active { opacity: 1; }
  .ps-input-icon.recording { animation: ps-rec-pulse 0.9s ease-in-out infinite; }
  @keyframes ps-rec-pulse { 0%,100%{opacity:1;} 50%{opacity:0.25;} }
  .ps-input-icon-voice {
    font-size: 0.98rem; opacity: 0.52; color: rgba(201, 169, 97, 0.72);
  }
  .ps-input-icon-voice.active,
  .ps-input-icon-voice.recording { opacity: 1; color: #C9A961; }
  .ps-input-icon-voice.recording,
  .ps-input-icon-voice.transcribing { animation: ps-rec-pulse 0.9s ease-in-out infinite; }
  .ps-input-text { flex: 1; font-size: 0.9rem; color: rgba(245,242,236,0.38); font-family: var(--sans); }
  .ps-input-text.typing { color: #F5F2EC; }
  .ps-sanctuary-btn {
    width: 100%; padding: 9px;
    background: rgba(201,169,97,0.07); border: 1px solid rgba(201,169,97,0.35);
    border-radius: 11px; color: #C9A961;
    font-size: 0.8375rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
    display: none; align-items: center; justify-content: center; gap: 7px;
    cursor: pointer; font-family: var(--sans);
    opacity: 0; transform: translateY(5px);
    transition: opacity 0.42s ease, transform 0.42s ease, background 0.25s ease;
  }
  .ps-sanctuary-btn.visible { display: flex; opacity: 1; transform: translateY(0); }
  .ps-sanctuary-btn.tapped { background: rgba(201,169,97,0.22); }

  .ps-heir-end-btn {
    width: 100%; padding: 8px; margin-top: 5px;
    background: transparent; border: 1px solid rgba(201,169,97,0.16);
    border-radius: 11px; color: rgba(201,169,97,0.58);
    font-size: 0.7125rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    font-family: var(--sans); cursor: pointer;
    display: none; opacity: 0; transform: translateY(4px);
    transition: opacity 0.32s ease, transform 0.32s ease, color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-heir-end-btn.visible { display: block; opacity: 1; transform: translateY(0); }
  .ps-heir-end-btn:hover { color: rgba(201,169,97,0.82); border-color: rgba(201,169,97,0.28); }
  .ps-heir-end-btn:active { transform: scale(0.98); }

  .ps-recipients-panel {
    display: none; flex-direction: column; gap: 8px;
    padding: 10px 0 4px;
    animation: ps-recipients-in 0.38s ease;
  }
  .ps-recipients-panel.visible { display: flex; }
  @keyframes ps-recipients-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .ps-recipients-title {
    font-family: var(--serif); font-size: 0.95rem; color: #F5F2EC; font-weight: 500; line-height: 1.4;
  }
  .ps-recipients-sub {
    font-size: 0.725rem; color: #8A8A8A; letter-spacing: 0.08em; margin-bottom: 2px;
  }
  .ps-recipients-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 108px; overflow-y: auto; scrollbar-width: none; }
  .ps-recipients-list::-webkit-scrollbar { display: none; }
  .ps-recipient-chip {
    padding: 6px 10px; border: 1px solid rgba(201,169,97,0.22); border-radius: 20px;
    background: rgba(201,169,97,0.03); display: flex; align-items: center; gap: 5px;
    cursor: pointer; transition: all 0.22s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
  }
  .ps-recipient-chip:hover { background: rgba(201,169,97,0.08); border-color: rgba(201,169,97,0.38); }
  .ps-recipient-chip.selected {
    background: rgba(201,169,97,0.16); border-color: #C9A961;
    box-shadow: 0 0 0 1px rgba(201,169,97,0.12);
  }
  .ps-recipient-chip-icon {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(201, 169, 97, 0.28);
    background: rgba(201, 169, 97, 0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.675rem; color: #C9A961; overflow: hidden;
  }
  .ps-recipient-chip-name { font-family: var(--serif); font-size: 0.85rem; color: #F5F2EC; }
  .ps-recipient-chip-rel { font-size: 0.6875rem; color: #8A8A8A; }
  .ps-recipient-chip-check {
    width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(201,169,97,0.35);
    display: flex; align-items: center; justify-content: center; font-size: 0.625rem; color: transparent;
    margin-left: 2px; flex-shrink: 0; transition: all 0.2s ease;
  }
  .ps-recipient-chip.selected .ps-recipient-chip-check {
    background: #C9A961; border-color: #C9A961; color: #0A0A0A;
  }
  .ps-recipient-add-row { display: flex; gap: 6px; align-items: center; }
  .ps-recipient-custom-input {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(201,169,97,0.18);
    border-radius: 18px; padding: 6px 11px; font-size: 0.85rem; color: #F5F2EC;
    font-family: var(--sans); outline: none;
  }
  .ps-recipient-custom-input::placeholder { color: rgba(245,242,236,0.32); }
  .ps-recipient-custom-input:focus { border-color: rgba(201,169,97,0.45); }
  .ps-recipient-add-btn {
    width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(201,169,97,0.35);
    background: rgba(201,169,97,0.08); color: #C9A961; font-size: 1.25rem; line-height: 1;
    cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
  }
  .ps-recipient-add-btn:hover { background: rgba(201,169,97,0.18); }
  .ps-recipients-confirm {
    width: 100%; padding: 9px; margin-top: 2px;
    background: rgba(201,169,97,0.12); border: 1px solid rgba(201,169,97,0.4);
    border-radius: 11px; color: #C9A961;
    font-size: 0.8375rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; font-family: var(--sans); transition: all 0.25s ease;
  }
  .ps-recipients-confirm:disabled { opacity: 0.35; cursor: default; }
  .ps-recipients-confirm:not(:disabled):hover { background: rgba(201,169,97,0.22); }
  .ps-input-bar.recipients-mode { display: none; }
  .ps-input-bar.free-note-mode { display: none; }
  .ps-input-bar.free-note-actions-mode {
    border-color: rgba(201,169,97,0.28);
    background: rgba(201,169,97,0.05);
  }
  .ps-free-note-panel {
    display: none; flex-direction: column; gap: 7px;
    padding: 6px 0 4px;
    animation: ps-recipients-in 0.38s ease;
  }
  .ps-free-note-panel.visible { display: flex; }
  .ps-free-note-hint {
    font-family: var(--serif-italic); font-size: 0.8125rem;
    color: rgba(245,242,236,0.58); text-align: center;
    line-height: 1.45; padding: 0 6px 2px;
  }
  .ps-free-note-panel.free-note-compact .ps-free-note-actions {
    flex-direction: row; gap: 6px;
  }
  .ps-free-note-panel.free-note-compact .ps-free-note-btn {
    flex: 1; text-align: center; padding: 8px 8px; font-size: 0.84rem;
  }
  .ps-free-note-panel.free-note-compact .ps-free-note-btn-primary { flex: 1.15; }
  .ps-free-note-panel.free-note-seal-only .ps-free-note-actions { flex-direction: column; }
  .ps-free-note-panel.free-note-seal-only .ps-free-note-btn-primary { width: 100%; }
  .ps-free-note-actions { display: flex; flex-direction: column; gap: 6px; }
  .ps-free-note-confirm-row { display: none; gap: 6px; }
  .ps-free-note-confirm-row.visible { display: flex; }
  .ps-free-note-btn {
    width: 100%; padding: 9px 12px;
    border: 1px solid rgba(201,169,97,0.24); border-radius: 11px;
    background: rgba(201,169,97,0.04); color: #F5F2EC;
    font-family: var(--serif); font-size: 0.9rem; font-weight: 400;
    cursor: pointer; transition: all 0.22s ease; text-align: left;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
  }
  .ps-free-note-btn:hover { background: rgba(201,169,97,0.1); border-color: rgba(201,169,97,0.38); }
  .ps-free-note-btn-primary {
    background: rgba(201,169,97,0.1); border-color: rgba(201,169,97,0.42); color: #C9A961;
    font-weight: 500; text-align: center; letter-spacing: 0.06em;
  }
  .ps-free-note-btn-primary:hover { background: rgba(201,169,97,0.18); }
  .ps-input-hint {
    display: none; font-size: 0.725rem; color: #C9A961;
    letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
    padding-bottom: 5px;
    animation: ps-recipients-in 0.35s ease;
  }
  .ps-input-hint.visible { display: block; }
  .ps-input-field {
    display: none; flex: 1; background: transparent; border: none; outline: none;
    font-size: 0.9rem; color: #F5F2EC; font-family: var(--sans);
    resize: none; min-height: 1.2em; max-height: 72px; line-height: 1.4;
    padding: 0; margin: 0;
  }
  .ps-input-field::placeholder { color: rgba(245,242,236,0.38); }
  .ps-input-bar.interactive-mode {
    border-color: rgba(201,169,97,0.35);
    background: rgba(201,169,97,0.06);
  }
  .ps-input-bar.interactive-mode .ps-input-text { display: none; }
  .ps-input-bar.interactive-mode .ps-input-field { display: block; }
  .ps-input-send {
    font-size: 1.5625rem; color: #C9A961; cursor: pointer; opacity: 0;
    width: 0; overflow: hidden; transition: opacity 0.25s ease, width 0.25s ease;
    flex-shrink: 0; line-height: 1; font-weight: 300; padding: 2px 0;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .ps-input-send.visible { opacity: 1; width: 22px; }
  .ps-input-send:hover { opacity: 0.75; }

  /* ── CONFIRM ── */
  .ps-confirm-view {
    align-items: center; justify-content: center; padding: 28px 24px; gap: 14px;
    background:
      radial-gradient(ellipse 80% 60% at 50% 45%, rgba(201, 169, 97, 0.06) 0%, transparent 70%);
  }
  .ps-confirm-back {
    position: absolute; top: 10px; left: 14px; z-index: 2;
  }
  .ps-confirm-icon {
    font-size: 3.5rem; opacity: 0; transform: scale(0.4);
    transition: opacity 0.55s cubic-bezier(0.34,1.56,0.64,1), transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.95));
  }
  .ps-confirm-icon.visible { opacity: 1; transform: scale(1); }
  .ps-confirm-orn { width: 36px; height: 1px; background: #C9A961; opacity: 0; transition: opacity 0.5s ease 0.28s; }
  .ps-confirm-orn.visible { opacity: 0.55; }
  .ps-confirm-title { font-family: var(--serif); font-size: 1.1875rem; color: #C9A961; text-align: center; font-weight: 500; opacity: 0; transition: opacity 0.5s ease 0.44s; text-shadow: 0 1px 8px rgba(0,0,0,0.9); }
  .ps-confirm-title.visible { opacity: 1; }
  .ps-confirm-sub { font-family: var(--serif-italic); font-size: 0.9125rem; color: #e8e4dc; text-align: center; font-style: italic; line-height: 1.6; opacity: 0; transition: opacity 0.5s ease 0.62s; max-width: 200px; text-shadow: 0 1px 6px rgba(0,0,0,0.95); }
  .ps-confirm-sub.visible { opacity: 1; }

  /* ── PLEIN ÉCRAN IMMERSIF (mobile / tablette) ── */
  .ps-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.18rem 0.38rem;
    border: 1px solid rgba(201, 169, 97, 0.22);
    border-radius: 999px;
    background: rgba(201, 169, 97, 0.06);
    flex-shrink: 0;
  }
  .ps-lang-btn {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(138, 138, 138, 0.62);
    cursor: pointer;
    padding: 0.1rem 0.22rem;
    transition: color 0.2s ease;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-lang-btn.active { color: #C9A961; }
  .ps-lang-btn:hover:not(.active) { color: rgba(201, 169, 97, 0.72); }
  .ps-lang-sep { color: rgba(138, 138, 138, 0.28); font-size: 0.52rem; line-height: 1; }

  .ps-fullscreen-btn,
  .ps-floating-btn,
  .ps-tablet-btn {
    display: none;
    align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.28);
    border-radius: 8px; color: #C9A961;
    cursor: pointer; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  }
  .ps-fullscreen-btn:hover,
  .ps-floating-btn:hover,
  .ps-tablet-btn:hover { background: rgba(201, 169, 97, 0.14); border-color: rgba(201, 169, 97, 0.45); }
  .ps-fullscreen-btn:active,
  .ps-floating-btn:active,
  .ps-tablet-btn:active { transform: scale(0.92); }
  .ps-fullscreen-btn svg,
  .ps-floating-btn svg,
  .ps-tablet-btn svg { width: 14px; height: 14px; display: block; }
  .ps-fullscreen-btn .ps-fs-icon-exit,
  .ps-floating-btn .ps-float-icon-exit,
  .ps-tablet-btn .ps-tab-icon-phone { display: none; }
  .phone-mockup.is-fullscreen .ps-fullscreen-btn .ps-fs-icon-expand { display: none; }
  .phone-mockup.is-fullscreen .ps-fullscreen-btn .ps-fs-icon-exit { display: block; }
  .phone-mockup.is-floating .ps-floating-btn .ps-float-icon-expand { display: none; }
  .phone-mockup.is-floating .ps-floating-btn .ps-float-icon-exit { display: block; }
  .phone-mockup.is-tablet-shell .ps-tablet-btn .ps-tab-icon-tablet { display: none; }
  .phone-mockup.is-tablet-shell .ps-tablet-btn .ps-tab-icon-phone { display: block; }

  @media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .ps-fullscreen-btn { display: flex; }
    .ps-statusbar { gap: 8px; }
  }

  @media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    .ps-floating-btn { display: flex; }
    .phone-float-hint { display: block; }
  }

  body.phone-fs-active,
  body.phone-kb-active {
    overflow: hidden;
    height: 100dvh;
    height: -webkit-fill-available;
  }
  body.phone-fs-active nav,
  body.phone-fs-active .lang-toggle,
  body.phone-fs-active #whatsapp-btn,
  body.phone-fs-active .mobile-nav-overlay,
  body.phone-kb-active nav,
  body.phone-kb-active .lang-toggle,
  body.phone-kb-active #whatsapp-btn,
  body.phone-kb-active .mobile-nav-overlay {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .phone-mockup.is-keyboard-fit {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10050;
    width: 100vw;
    width: 100dvw;
    max-width: none;
    max-height: none;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
    background: #0a0a0a !important;
    will-change: top, height, left, width;
    transition:
      top 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      left 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .phone-mockup.is-keyboard-fit.is-keyboard-animating {
    transition:
      top 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      left 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      width 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .phone-mockup.is-keyboard-fit.is-keyboard-animating .ps-input-area,
  .phone-mockup.is-keyboard-fit.is-keyboard-animating .ps-input-hint {
    transition:
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.55s ease;
  }
  .phone-mockup.is-keyboard-fit.is-keyboard-animating .ps-messages {
    scroll-behavior: smooth;
  }
  @media (prefers-reduced-motion: reduce) {
    .phone-mockup.is-keyboard-fit,
    .phone-mockup.is-keyboard-fit.is-keyboard-animating,
    .phone-mockup.is-keyboard-fit.is-keyboard-animating .ps-input-area,
    .phone-mockup.is-keyboard-fit.is-keyboard-animating .ps-input-hint {
      transition: none;
    }
    .phone-mockup.is-keyboard-fit.is-keyboard-animating .ps-messages {
      scroll-behavior: auto;
    }
  }
  .phone-mockup.is-keyboard-fit .phone-notch { display: none; }
  .phone-mockup.is-keyboard-fit .phone-sim-screen,
  .phone-mockup.is-keyboard-fit .phone-sim-screen::before,
  .phone-mockup.is-keyboard-fit .phone-sim-screen::after,
  .phone-mockup.is-keyboard-fit .ps-lock,
  .phone-mockup.is-keyboard-fit .ps-lock::before,
  .phone-mockup.is-keyboard-fit .ps-lock-particles-canvas,
  .phone-mockup.is-keyboard-fit .ps-lock-lueur {
    border-radius: 0 !important;
  }
  .phone-mockup.is-keyboard-fit .ps-statusbar {
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 8px;
  }
  .phone-mockup.is-keyboard-fit .ps-input-area,
  .phone-mockup.is-keyboard-fit .ps-home-content,
  .phone-mockup.is-keyboard-fit .ps-profile-picker-scroll {
    padding-bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  }
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-input-area {
    padding-bottom: 6px;
  }
  .phone-mockup.is-keyboard-fit.is-keyboard-visible .ps-input-bar {
    margin-bottom: 0;
  }
  .phone-mockup.is-keyboard-fit .ps-sanctuary-btn:not(.visible) {
    display: none;
  }

  .phone-mockup.is-fullscreen,
  html.aigyros-pwa-immersive .phone-mockup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none;
    max-height: none;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
    background: #0a0a0a !important;
    transition: none;
  }
  .phone-mockup.is-fullscreen .phone-notch,
  html.aigyros-pwa-immersive .phone-mockup .phone-notch { display: none; }
  .phone-mockup.is-fullscreen .phone-sim-screen,
  .phone-mockup.is-fullscreen .phone-sim-screen::before,
  .phone-mockup.is-fullscreen .phone-sim-screen::after,
  .phone-mockup.is-fullscreen .ps-lock,
  .phone-mockup.is-fullscreen .ps-lock::before,
  .phone-mockup.is-fullscreen .ps-lock-particles-canvas,
  .phone-mockup.is-fullscreen .ps-lock-lueur,
  html.aigyros-pwa-immersive .phone-mockup .phone-sim-screen,
  html.aigyros-pwa-immersive .phone-mockup .phone-sim-screen::before,
  html.aigyros-pwa-immersive .phone-mockup .phone-sim-screen::after,
  html.aigyros-pwa-immersive .phone-mockup .ps-lock,
  html.aigyros-pwa-immersive .phone-mockup .ps-lock::before,
  html.aigyros-pwa-immersive .phone-mockup .ps-lock-particles-canvas,
  html.aigyros-pwa-immersive .phone-mockup .ps-lock-lueur {
    border-radius: 0 !important;
  }
  .phone-mockup.is-fullscreen .ps-statusbar,
  html.aigyros-pwa-immersive .phone-mockup .ps-statusbar {
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 8px;
  }
  .phone-mockup.is-fullscreen .ps-input-area,
  .phone-mockup.is-fullscreen .ps-home-content,
  .phone-mockup.is-fullscreen .ps-profile-picker-scroll,
  html.aigyros-pwa-immersive .phone-mockup .ps-input-area,
  html.aigyros-pwa-immersive .phone-mockup .ps-home-content,
  html.aigyros-pwa-immersive .phone-mockup .ps-profile-picker-scroll {
    padding-bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  }
  .phone-mockup.is-fullscreen .ps-confirm-view,
  html.aigyros-pwa-immersive .phone-mockup .ps-confirm-view {
    padding-bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  }
  .phone-mockup.is-fullscreen .ps-fullscreen-btn {
    width: 34px; height: 34px;
    background: rgba(201, 169, 97, 0.12);
    border-color: rgba(201, 169, 97, 0.4);
  }
  .phone-mockup.is-fullscreen .ps-fullscreen-btn svg { width: 16px; height: 16px; }
  html.aigyros-pwa-immersive .ps-fullscreen-btn { display: none !important; }

  /* ── FENÊTRE FLOTTANTE TABLETTE (desktop) ── */
  body.phone-floating-active .phone-mockup-anchor.is-floating-active .phone-mockup {
    animation: none !important;
  }

  .phone-mockup.is-floating {
    position: fixed;
    z-index: 10040;
    width: clamp(360px, 38vw, 440px);
    height: clamp(720px, 76vw, 880px);
    margin: 0;
    animation: none !important;
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.72),
      0 0 0 2px #C9A961,
      inset 0 0 0 1px rgba(201, 169, 97, 0.45);
    transition: box-shadow 0.25s ease;
  }
  .phone-mockup.is-floating.is-dragging {
    box-shadow:
      0 36px 110px rgba(0, 0, 0, 0.82),
      0 0 0 2px #D4BC7A,
      inset 0 0 0 1px rgba(201, 169, 97, 0.55);
    cursor: grabbing;
  }
  .phone-mockup.is-floating .ps-statusbar.ps-float-drag-handle {
    cursor: grab;
    user-select: none;
    touch-action: none;
  }
  .phone-mockup.is-floating .ps-statusbar.ps-float-drag-handle:active { cursor: grabbing; }
  .phone-mockup.is-floating .ps-fullscreen-btn { display: none !important; }
  .phone-mockup.is-floating .ps-floating-btn {
    width: 32px; height: 32px;
    background: rgba(201, 169, 97, 0.12);
    border-color: rgba(201, 169, 97, 0.4);
  }
  .phone-mockup.is-floating .ps-floating-btn svg { width: 15px; height: 15px; }
  .phone-mockup.is-floating .ps-sanctuary-status-dot { width: 7px; height: 7px; }
  .phone-mockup.is-floating .ps-statusbar { padding-top: 48px; }

  /* ── VUE STANDALONE /app ── */
  html.aigyros-app-standalone body {
    overflow-x: hidden;
    background-color: #040f2d;
    background-image: var(--app-wallpaper-scrim), var(--app-wallpaper);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  @media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    html.aigyros-app-standalone body {
      background-attachment: fixed;
    }
  }
  html.aigyros-app-standalone nav,
  html.aigyros-app-standalone .lang-toggle,
  html.aigyros-app-standalone #whatsapp-btn,
  html.aigyros-app-standalone #back-to-top,
  html.aigyros-app-standalone .mobile-nav-overlay,
  html.aigyros-app-standalone footer,
  html.aigyros-app-standalone section:not(#confident) {
    display: none !important;
  }
  html.aigyros-app-standalone #confident {
    min-height: 100dvh;
    min-height: 100vh;
    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));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  html.aigyros-pwa-immersive #confident {
    padding: 0;
    align-items: stretch;
  }
  html.aigyros-pwa-immersive body {
    overflow: hidden;
    overscroll-behavior: none;
  }

  /* ── VOILE CONFIDENTIEL (aperçu multitâche mobile) ── */
  .ps-privacy-shield {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 8, 0.93);
    backdrop-filter: blur(28px) saturate(1.08);
    -webkit-backdrop-filter: blur(28px) saturate(1.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
  }
  .ps-privacy-shield.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
  .ps-privacy-shield-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.58;
  }
  .ps-privacy-shield-logo {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 14px rgba(201, 169, 97, 0.22));
  }
  .ps-privacy-shield-label {
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(201, 169, 97, 0.74);
  }

  .ps-storage-quota-banner {
    position: absolute;
    top: max(52px, calc(env(safe-area-inset-top, 0px) + 44px));
    left: 12px;
    right: 12px;
    z-index: 120;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(92, 62, 18, 0.92);
    border: 1px solid rgba(201, 169, 97, 0.45);
    color: rgba(255, 244, 220, 0.95);
    font-family: var(--sans);
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
  .ps-storage-quota-banner.is-critical {
    background: rgba(92, 24, 24, 0.94);
    border-color: rgba(255, 120, 120, 0.45);
  }
  .ps-storage-quota-banner[hidden] { display: none !important; }

  html.aigyros-app-standalone #confident::before { opacity: 0.35; }
  html.aigyros-app-standalone .confident-content {
    max-width: none;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  html.aigyros-app-standalone .confident-text,
  html.aigyros-app-standalone .phone-float-hint {
    display: none !important;
  }
  html.aigyros-app-standalone .phone-mockup-anchor {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  html.aigyros-app-standalone .phone-mockup-spacer { display: none !important; }
  html.aigyros-app-standalone .phone-mockup {
    animation: none !important;
    margin: 0 auto;
  }
  html.aigyros-app-standalone .ps-floating-btn { display: none !important; }
  @media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    html.aigyros-app-standalone .ps-tablet-btn,
    html.aigyros-app-standalone .ps-signal { display: none !important; }
  }
  @media (min-width: 768px) {
    html.aigyros-app-standalone:not(.aigyros-pwa-immersive) .phone-mockup:not(.is-tablet-shell) {
      width: clamp(380px, 40vw, 500px);
      height: clamp(760px, 80vw, 1000px);
    }
    html.aigyros-app-standalone:not(.aigyros-pwa-immersive) .ps-fullscreen-btn { display: none !important; }
  }
  @media (max-width: 767px) {
    html.aigyros-app-standalone:not(.aigyros-pwa-immersive) .phone-mockup {
      width: min(calc(100vw - 20px), 400px);
      height: min(calc(100dvh - 20px), 820px);
    }
    html.aigyros-app-standalone:not(.aigyros-pwa-immersive) .ps-fullscreen-btn { display: flex; }
  }

  /* ── MODE TABLETTE (PWA bureau) ── */
  html.aigyros-app-tablet #confident {
    align-items: stretch;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  html.aigyros-app-standalone .phone-mockup.is-tablet-shell {
    width: min(960px, calc(100vw - 32px));
    height: min(calc(100dvh - 32px), 900px);
    max-width: none;
    border-radius: 20px;
    padding: 0;
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(201, 169, 97, 0.35);
    background: #0a0a0a;
  }
  html.aigyros-app-standalone .phone-mockup.is-tablet-shell .phone-notch { display: none; }
  html.aigyros-app-standalone .phone-mockup.is-tablet-shell .phone-sim-screen,
  html.aigyros-app-standalone .phone-mockup.is-tablet-shell .phone-sim-screen::before,
  html.aigyros-app-standalone .phone-mockup.is-tablet-shell .phone-sim-screen::after,
  html.aigyros-app-standalone .phone-mockup.is-tablet-shell .ps-lock,
  html.aigyros-app-standalone .phone-mockup.is-tablet-shell .ps-lock::before {
    border-radius: 20px;
  }
  html.aigyros-app-standalone .phone-mockup.is-tablet-shell .ps-statusbar {
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
    padding-bottom: 10px;
  }
  html.aigyros-app-standalone .phone-mockup.is-tablet-shell .ps-sanctuary-status-dot { width: 7px; height: 7px; }
  .phone-mockup.is-tablet-shell .ps-home-content { padding: 20px 28px 16px; }
  .phone-mockup.is-tablet-shell .ps-home-logo { width: 96px; height: 96px; }
  .phone-mockup.is-tablet-shell .ps-home-orbit { width: 96px; height: 96px; }
  .phone-mockup.is-tablet-shell .ps-home-logo-img { width: 52px; height: 52px; }
  .phone-mockup.is-tablet-shell .ps-greeting {
    font-size: 1.125rem;
    padding: 14px 18px;
    margin-bottom: 22px;
  }
  .phone-mockup.is-tablet-shell .ps-theme-text { font-size: 1.05rem; }
  .phone-mockup.is-tablet-shell .ps-theme-bubble { padding: 12px 16px; }
  .phone-mockup.is-tablet-shell .ps-welcome-inner { max-width: 380px; }
  .phone-mockup.is-tablet-shell .ps-welcome-title { font-size: 1.5rem; }
  .phone-mockup.is-tablet-shell .ps-profile-picker-sub,
  .phone-mockup.is-tablet-shell .ps-heir-picker-sub,
  .phone-mockup.is-tablet-shell .ps-user-picker-sub { max-width: 420px; }
  .phone-mockup.is-tablet-shell .ps-profile-picker-scroll,
  .phone-mockup.is-tablet-shell .ps-heir-picker-scroll,
  .phone-mockup.is-tablet-shell .ps-user-picker-scroll,
  .phone-mockup.is-tablet-shell .ps-user-auth-scroll { padding-left: 28px; padding-right: 28px; }
  .phone-mockup.is-tablet-shell .ps-msg { max-width: 72%; }
  .phone-mockup.is-tablet-shell .ps-msg-bubble { font-size: 1rem; padding: 10px 14px; }
  .phone-mockup.is-tablet-shell .ps-photo-msg { max-width: 320px; }
  .phone-mockup.is-tablet-shell .ps-photo-msg img { max-height: 220px; }
  .phone-mockup.is-tablet-shell .ps-messages { padding: 16px 24px 10px; }
  .phone-mockup.is-tablet-shell .ps-input-area { padding-left: 20px; padding-right: 20px; }
  .phone-mockup.is-tablet-shell .ps-chat-title { font-size: 1.2rem; }
  .phone-mockup.is-tablet-shell .ps-memories-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .phone-mockup.is-tablet-shell .ps-memory-card {
    flex: none;
    scroll-snap-align: none;
  }
  .phone-mockup.is-tablet-shell .ps-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .phone-mockup.is-tablet-shell .ps-confirm-sub { max-width: 360px; }
  .phone-mockup.is-tablet-shell .ps-api-modal-card { max-width: 420px; }
  @media (min-width: 900px) {
    .phone-mockup.is-tablet-shell .ps-themes {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .phone-mockup.is-tablet-shell .ps-journal-chat-section,
    .phone-mockup.is-tablet-shell .ps-theme-bubble.ps-free {
      grid-column: 1 / -1;
    }
  }

  /* ── SÉLECTEUR SANCTUAIRE — DESKTOP WEB (/app) ── */
  @media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    html.aigyros-app-standalone .ps-user-picker::before,
    html.aigyros-app-standalone .ps-user-auth::before { display: none; }

    html.aigyros-app-standalone .ps-user-picker-scroll,
    html.aigyros-app-standalone .ps-user-auth-scroll {
      padding: clamp(40px, 8vh, 72px) 32px max(80px, calc(40px + env(safe-area-inset-bottom, 0px)));
      align-items: center;
    }

    html.aigyros-app-standalone .ps-user-picker-whatsapp {
      bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    }

    html.aigyros-app-standalone .ps-user-picker-scroll > *,
    html.aigyros-app-standalone .ps-user-auth-scroll > * {
      width: 100%;
      max-width: 400px;
    }

    /* ── SÉLECTEUR DIMENSION + BOARD — même largeur que connexion ── */
    html.aigyros-app-standalone .ps-profile-picker-scroll {
      padding-left: 32px;
      padding-right: 32px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    html.aigyros-app-standalone .ps-home-content {
      padding-left: 32px;
      padding-right: 32px;
    }

    html.aigyros-app-standalone .ps-profile-picker-scroll {
      padding-top: clamp(40px, 8vh, 72px);
      padding-bottom: 40px;
    }

    html.aigyros-app-standalone .ps-profile-picker-scroll > *,
    html.aigyros-app-standalone .ps-home-content > * {
      width: 100%;
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
      flex-shrink: 0;
    }

    html.aigyros-app-standalone .ps-profile-picker-sub {
      max-width: none;
    }

    html.aigyros-app-standalone .ps-profile-picker-header {
      margin-bottom: clamp(20px, 4vh, 32px);
    }

    html.aigyros-app-standalone .ps-profile-picker-title {
      font-size: clamp(1.35rem, 2.2vw, 1.65rem);
      letter-spacing: 0.03em;
    }

    html.aigyros-app-standalone .ps-user-picker-header {
      margin-bottom: clamp(28px, 5vh, 44px);
    }

    html.aigyros-app-standalone .ps-user-picker-logo-wrap {
      margin-top: 6px;
      margin-bottom: 18px;
    }

    html.aigyros-app-standalone .ps-user-picker-logo {
      width: 148px;
      height: 148px;
    }

    html.aigyros-app-standalone .ps-user-picker-orbit {
      width: 148px;
      height: 148px;
    }

    html.aigyros-app-standalone .ps-user-picker-logo-img {
      width: 76px;
      height: 76px;
    }

    html.aigyros-app-standalone .ps-user-picker-title {
      font-size: clamp(1.5rem, 2.4vw, 1.85rem);
      letter-spacing: 0.025em;
      margin-bottom: 14px;
    }

    html.aigyros-app-standalone .ps-user-picker-sub {
      max-width: none;
      font-size: 0.875rem;
      color: rgba(201, 169, 97, 0.48);
    }

    html.aigyros-app-standalone .ps-user-picker-list {
      margin-bottom: 0;
    }

    html.aigyros-app-standalone .ps-user-picker-list .ps-heirs-empty {
      text-align: center;
      color: rgba(201, 169, 97, 0.38);
      font-size: 0.78rem;
      margin-bottom: 4px;
    }

    html.aigyros-app-standalone .ps-user-picker-card {
      border-radius: 4px;
      padding: 15px 18px;
    }

    html.aigyros-app-standalone .ps-user-create-block {
      margin-top: 12px;
      margin-bottom: 24px;
      padding: 0;
      border: none;
      background: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: none;
      border-radius: 0;
    }

    html.aigyros-app-standalone .ps-user-create-block::before {
      content: '';
      display: block;
      width: 40px;
      height: 1px;
      margin: 0 auto 18px;
      background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.32), transparent);
    }

    html.aigyros-app-standalone .ps-user-create-trigger {
      justify-content: center;
      gap: 0;
      padding: 10px 12px;
      transition: opacity 0.25s ease;
    }

    html.aigyros-app-standalone .ps-user-create-trigger:hover { opacity: 0.82; }

    html.aigyros-app-standalone .ps-user-create-title {
      font-family: var(--serif-italic);
      font-size: 0.9rem;
      font-style: italic;
      color: rgba(201, 169, 97, 0.72);
      letter-spacing: 0.05em;
    }

    html.aigyros-app-standalone .ps-user-create-icon { display: none; }

    html.aigyros-app-standalone .ps-user-create-block.is-open {
      padding: 28px 30px 26px;
      border: 1px solid rgba(201, 169, 97, 0.1);
      border-radius: 4px;
      background: rgba(4, 4, 6, 0.55);
      backdrop-filter: blur(20px) saturate(1.1);
      -webkit-backdrop-filter: blur(20px) saturate(1.1);
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    html.aigyros-app-standalone .ps-user-create-block.is-open::before { display: none; }

    html.aigyros-app-standalone .ps-user-create-block.is-open .ps-user-create-trigger {
      justify-content: space-between;
      padding: 0 0 18px;
      margin-bottom: 2px;
      border-bottom: 1px solid rgba(201, 169, 97, 0.08);
    }

    html.aigyros-app-standalone .ps-user-create-block.is-open .ps-user-create-title {
      font-family: var(--sans);
      font-size: 0.58rem;
      font-style: normal;
      font-weight: 500;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: rgba(201, 169, 97, 0.62);
    }

    html.aigyros-app-standalone .ps-user-create-block.is-open .ps-user-create-icon {
      display: flex;
      width: 20px;
      height: 20px;
      font-size: 13px;
      background: none;
      border: none;
      color: rgba(201, 169, 97, 0.42);
    }

    html.aigyros-app-standalone .ps-user-create-block.is-solo.is-open .ps-user-create-trigger { display: none; }

    html.aigyros-app-standalone .ps-user-create-block.is-solo.is-open .ps-user-create-panel {
      display: block;
      margin-top: 0;
    }

    html.aigyros-app-standalone .ps-user-create-block.is-solo.is-open .ps-user-create-panel::before {
      content: 'Nouveau sanctuaire';
      display: block;
      font-family: var(--sans);
      font-size: 0.58rem;
      font-weight: 500;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: rgba(201, 169, 97, 0.62);
      text-align: center;
      margin-bottom: 22px;
    }

    body.en html.aigyros-app-standalone .ps-user-create-block.is-solo.is-open .ps-user-create-panel::before {
      content: 'New sanctuary';
    }

    html.aigyros-app-standalone .ps-user-picker-scroll:has(.ps-user-create-block.is-solo.is-open) .ps-heirs-empty {
      display: none;
    }

    html.aigyros-app-standalone .ps-user-create-block.is-solo.is-open {
      margin-top: 0;
    }

    html.aigyros-app-standalone .ps-user-create-block.is-solo:not(.is-open)::before {
      margin-top: 8px;
    }

    html.aigyros-app-standalone .ps-user-create-fields { gap: 10px; margin-bottom: 14px; }

    html.aigyros-app-standalone .ps-user-create-input {
      background: rgba(0, 0, 0, 0.22);
      border-color: rgba(201, 169, 97, 0.14);
      border-radius: 4px;
      padding: 11px 14px;
    }

    html.aigyros-app-standalone .ps-user-create-input:focus {
      border-color: rgba(201, 169, 97, 0.32);
      box-shadow: none;
      background: rgba(0, 0, 0, 0.3);
    }

    html.aigyros-app-standalone .ps-user-create-btn {
      border-radius: 4px;
      padding: 12px;
      background: transparent;
      border-color: rgba(201, 169, 97, 0.28);
      color: rgba(232, 212, 160, 0.88);
      box-shadow: none;
      letter-spacing: 0.18em;
    }

    html.aigyros-app-standalone .ps-user-create-btn:hover:not(:disabled) {
      background: rgba(201, 169, 97, 0.08);
      border-color: rgba(201, 169, 97, 0.42);
      box-shadow: none;
    }

    html.aigyros-app-standalone .ps-user-picker-back {
      margin-top: 8px;
      padding: 14px 0 0;
      background: none;
      border: none;
      border-top: 1px solid rgba(201, 169, 97, 0.07);
      border-radius: 0;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      color: rgba(245, 242, 236, 0.28);
      letter-spacing: 0.2em;
    }

    html.aigyros-app-standalone .ps-user-picker-back:hover {
      background: none;
      border-color: rgba(201, 169, 97, 0.07);
      color: rgba(201, 169, 97, 0.58);
    }

    html.aigyros-app-standalone .ps-user-auth-title {
      font-size: clamp(1.35rem, 2vw, 1.65rem);
    }

    html.aigyros-app-standalone .ps-user-auth-form {
      border-radius: 4px;
      border-color: rgba(201, 169, 97, 0.1);
      background: rgba(4, 4, 6, 0.55);
    }

    html.aigyros-app-standalone .ps-user-auth-input,
    html.aigyros-app-standalone .ps-user-auth-submit,
    html.aigyros-app-standalone .ps-user-auth-back {
      border-radius: 4px;
    }

    html.aigyros-app-standalone .ps-user-auth-submit {
      background: transparent;
      box-shadow: none;
    }

    html.aigyros-app-standalone .ps-user-auth-submit:hover:not(:disabled) {
      background: rgba(201, 169, 97, 0.08);
      box-shadow: none;
    }

    html.aigyros-app-standalone .ps-user-auth-back {
      background: none;
      border: none;
      border-top: 1px solid rgba(201, 169, 97, 0.07);
      border-radius: 0;
      color: rgba(245, 242, 236, 0.28);
    }
  }