/* ============================================
   Ava Boudoir — PWA
   Charte : noir profond, rose-mauve, doré.
   ============================================ */

:root {
  /* Brand */
  --ava-rose: #c45c72;
  --ava-rose-light: #e88a9e;
  --ava-rose-glow: rgba(196, 92, 114, 0.3);
  --ava-gold: #d4a574;
  --ava-gold-dim: #b88a58;

  /* Surfaces (mode sombre par défaut) */
  --bg-primary: #1a1215;
  --bg-card: #231a1d;
  --bg-elev: #2b1f23;
  --text-primary: #f5f0f1;
  --text-secondary: #cbb9bd;
  --text-tertiary: #a89598;
  --border-color: #3a2c30;
  --border-light: #2b2024;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);

  /* Sizing */
  --max-width: 640px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Typography */
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: 3.5rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: radial-gradient(ellipse at top, #241719 0%, var(--bg-primary) 70%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* --- App container --- */
#app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.view {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.view.active {
  display: block;
}

/* ============================================
   HOME
   ============================================ */
.home-main {
  padding: calc(var(--space-lg) + env(safe-area-inset-top, 0px)) 0 var(--space-md);
  text-align: center;
}

.home-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.home-title span {
  color: var(--ava-rose-light);
  font-style: italic;
}

.home-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 460px;
  margin: 0 auto var(--space-md);
  line-height: 1.4;
  padding: 0 var(--space-md);
}

.hero {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ava-rose);
  box-shadow: 0 0 60px var(--ava-rose-glow), 0 0 100px rgba(196, 92, 114, 0.2);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero:hover,
.hero:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 0 80px var(--ava-rose-glow), 0 0 130px rgba(196, 92, 114, 0.3);
  outline: none;
}

.hero-image,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   CTA
   ============================================ */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0 var(--space-md);
  max-width: 340px;
  margin: 0 auto;
}

.btn-primary {
  display: block;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--ava-rose) 0%, var(--ava-rose-light) 100%);
  color: #fff;
  box-shadow: 0 8px 24px var(--ava-rose-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--ava-rose-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: block;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 4px;
  background: transparent;
  color: var(--ava-gold);
  border: 1px solid var(--ava-gold);
  transition: background var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  width: 100%;
}

.btn-secondary:hover {
  background: var(--ava-gold);
  color: var(--bg-primary);
}

.hero-note {
  text-align: center;
  margin-top: var(--space-md);
  font-size: var(--fs-md);
  color: var(--text-secondary);
}

.hero-note strong {
  color: var(--ava-gold);
  font-weight: 600;
  font-size: var(--fs-lg);
  letter-spacing: 0.02em;
}

.age-warning {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--ava-rose);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  z-index: 100;
  pointer-events: none;
}

.age-warning strong {
  color: var(--ava-rose-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}

#app:not(:has(#view-home.active)) .age-warning {
  display: none;
}

@media (max-width: 480px) {
  .age-warning {
    bottom: 12px;
    right: 12px;
    left: 12px;
    text-align: center;
  }
}

/* ============================================
   PORTRAIT (Qui est Ava)
   ============================================ */
.home-portrait-link {
  text-align: center;
  margin-top: var(--space-sm);
  margin-bottom: 0;
}


.home-portrait-link a {
  font-size: var(--fs-sm);
  color: var(--ava-gold);
  font-style: italic;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(212, 165, 116, 0.4);
  padding-bottom: 1px;
}

#view-portrait {
  padding: 0;
}

.portrait-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + env(safe-area-inset-top, 0px));
}

.portrait-spacer {
  width: 36px;
  height: 36px;
}

.portrait-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.portrait-main {
  padding: 0 var(--space-md) var(--space-2xl);
  text-align: center;
}

.portrait-effigy {
  position: relative;
  width: 200px;
  height: 200px;
  margin: var(--space-md) auto var(--space-lg);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ava-rose);
  box-shadow: 0 0 60px var(--ava-rose-glow), 0 0 100px rgba(196, 92, 114, 0.2);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.portrait-effigy:hover,
.portrait-effigy:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 0 80px var(--ava-rose-glow), 0 0 120px rgba(196, 92, 114, 0.3);
  outline: none;
}

.portrait-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 4.5rem);
  color: var(--ava-rose-light);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.portrait-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-md);
}

.portrait-detail {
  max-width: 540px;
  margin: 0 auto var(--space-md);
  text-align: left;
  background: linear-gradient(135deg, #f6ecda 0%, #efd9bc 100%);
  border: 1px solid rgba(212, 165, 116, 0.35);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(196, 92, 114, 0.12), 0 1px 3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.portrait-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: var(--fs-xl);
  color: #6a3340;
  letter-spacing: 0.02em;
  transition: background var(--transition-fast);
}

.portrait-summary::-webkit-details-marker {
  display: none;
}

.portrait-summary:hover {
  background: rgba(196, 92, 114, 0.06);
}

.portrait-chevron {
  width: 18px;
  height: 18px;
  color: #8a6a3a;
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.portrait-detail[open] .portrait-chevron {
  transform: rotate(180deg);
}

.portrait-detail-body {
  padding: 0 var(--space-lg) var(--space-md);
  animation: portrait-body-in 280ms ease-out;
}

@keyframes portrait-body-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.portrait-detail-body p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #2a1a14;
  margin-bottom: var(--space-md);
}

.portrait-detail-body p:last-child {
  margin-bottom: 0;
}

.portrait-detail-body em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15em;
  color: #5a4a3e;
  line-height: 1.4;
}

.portrait-tease {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic;
  font-size: 1.15rem !important;
  color: #6a3340 !important;
  text-align: center;
  border-top: 1px solid rgba(212, 165, 116, 0.5);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

.portrait-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ava-gold);
  text-align: center;
  margin: var(--space-2xl) auto 0;
  max-width: 480px;
  line-height: 1.5;
  padding: var(--space-md);
  border-top: 1px solid rgba(212, 165, 116, 0.25);
  border-bottom: 1px solid rgba(212, 165, 116, 0.25);
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ============================================
   VESTIBULE
   ============================================ */
.vestibule {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.vestibule-card {
  background: linear-gradient(135deg, #f6ecda 0%, #efd9bc 100%);
  border: 1px solid rgba(212, 165, 116, 0.35);
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: 0 4px 18px rgba(196, 92, 114, 0.18), 0 1px 3px rgba(0, 0, 0, 0.3);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #2a1a14;
  text-align: left;
}

.vestibule-narration {
  margin-bottom: var(--space-md);
}

.vestibule-narration em {
  font-style: italic;
  color: #5a4a3e;
}

.vestibule-line {
  margin-bottom: var(--space-sm);
}

.vestibule-line:last-of-type {
  margin-bottom: 0;
  color: #6a3340;
  font-style: italic;
}

.vestibule-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.vestibule-input {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-lg);
  font-style: italic;
  text-align: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ava-gold-dim);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.vestibule-input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.6;
}

.vestibule-input:focus {
  border-bottom-color: var(--ava-rose-light);
}

/* ============================================
   CHAT
   ============================================ */
#view-chat.active {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.chat-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + env(safe-area-inset-top, 0px));
  background: rgba(26, 18, 21, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 10;
}

.chat-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ava-rose-light);
  letter-spacing: 0.02em;
}

.chat-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--ava-rose-light);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.chat-icon-btn:hover {
  background: var(--bg-card);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  scroll-behavior: smooth;
}

.bubble {
  max-width: 85%;
  min-width: 0;
  padding: 10px var(--space-md);
  border-radius: 0;
  line-height: 1.55;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  animation: bubble-in 280ms ease-out;
}

.bubble p {
  margin: 0;
}

.bubble p + p {
  margin-top: 0.6em;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bubble.user {
  align-self: flex-end;
  background: #e8c5cb;
  color: #1a1215;
  /* Diagonale "\" : haut-droit + bas-gauche arrondis, deux autres droits */
  border-top-right-radius: 16px;
  border-bottom-left-radius: 16px;
}

.bubble.ava {
  align-self: flex-start;
  background: linear-gradient(135deg, #f6ecda 0%, #efd9bc 100%);
  color: #2a1a14;
  border: 1px solid rgba(212, 165, 116, 0.35);
  /* Diagonale "/" : haut-gauche + bas-droit arrondis, deux autres droits */
  border-top-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0 2px 10px rgba(196, 92, 114, 0.15), 0 1px 3px rgba(0, 0, 0, 0.25);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.5;
}

.bubble.ava em {
  font-style: italic;
  color: #5a4a3e;
}

.bubble.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
}

.bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a4a3e;
  opacity: 0.5;
  animation: typing-dot 1.2s infinite ease-in-out;
}

.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

.level-up {
  align-self: center;
  max-width: 90%;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border: 1px solid rgba(212, 165, 116, 0.5);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.08) 0%, rgba(106, 51, 64, 0.12) 100%);
  text-align: center;
  animation: level-up-in 600ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(196, 92, 114, 0.15), inset 0 0 30px rgba(212, 165, 116, 0.04);
}

@keyframes level-up-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.level-up-mark {
  width: 44px;
  height: 44px;
  color: var(--ava-gold);
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.4));
}

.level-up-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ava-gold-dim);
  margin-bottom: var(--space-xs);
}

.level-up-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 2rem;
  color: var(--ava-rose-light);
  margin-bottom: var(--space-md);
  line-height: 1;
  letter-spacing: 0.02em;
}

.level-up-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ava-gold);
  line-height: 1.55;
}

/* ============================================
   PIÈCES (niveau 3)
   ============================================ */
.rooms-grid {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  animation: bubble-in 400ms ease-out;
}

.rooms-grid--chosen {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.room-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-sm);
  border: 1px solid rgba(212, 165, 116, 0.35);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.06) 0%, rgba(36, 23, 25, 0.4) 100%);
  cursor: pointer;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.room-card:hover {
  border-color: var(--ava-rose-light);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(196, 92, 114, 0.12) 0%, rgba(36, 23, 25, 0.5) 100%);
}

.room-card:active {
  transform: translateY(0);
}

.room-icon {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--ava-gold);
  margin-bottom: var(--space-xs);
}

.room-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.room-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--ava-rose-light);
  letter-spacing: 0.02em;
}

.room-blurb {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  line-height: 1.4;
}

.chat-input-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 18, 21, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
}

.chat-input {
  flex: 1;
  padding: 12px var(--space-md);
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-base);
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--ava-rose);
}

.chat-send {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ava-rose) 0%, var(--ava-rose-light) 100%);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 14px var(--ava-rose-glow);
}

.chat-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--ava-rose-glow);
}

.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   STATUS PANEL (jauge à la demande)
   ============================================ */
.status-panel {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 7, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: bubble-in 200ms ease-out;
}

.status-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.status-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}

.status-close:hover {
  color: var(--text-primary);
  background: var(--bg-elev);
}

.status-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.status-level-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--fs-2xl);
  color: var(--ava-rose-light);
  margin-bottom: var(--space-md);
}

.status-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.status-bar-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(to right, var(--ava-rose), var(--ava-rose-light));
  border-radius: 2px;
  transition: width var(--transition-slow);
}

.status-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.status-fineprint {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-style: italic;
}

/* ============================================
   AGE GATE (SREN)
   ============================================ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 7, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--space-md);
}

[hidden] {
  display: none !important;
}

.age-gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--ava-rose);
  border-radius: 8px;
  padding: var(--space-2xl) var(--space-lg);
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.age-gate-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-2xl);
  color: var(--ava-rose-light);
  margin-bottom: var(--space-lg);
}

.age-gate-text {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.age-gate-legal {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: var(--space-md) 0;
  padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  border-top: 1px solid var(--ava-gold);
  margin-top: var(--space-md);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-link {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--ava-gold);
}

.footer-sep {
  color: var(--text-tertiary);
  opacity: 0.5;
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ============================================
   LOADING
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  z-index: 200;
  transition: opacity var(--transition-slow);
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border-color);
  border-top-color: var(--ava-rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .view {
    padding: 0 var(--space-lg);
  }

  .hero {
    width: 360px;
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   SAS EMAIL (msg 6 anonyme — diégétique)
   ============================================ */
.email-request {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: linear-gradient(135deg, #f6ecda 0%, #efd9bc 100%);
  border: 1px solid rgba(212, 165, 116, 0.45);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(196, 92, 114, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: bubble-in 400ms ease-out;
}

.email-request input[type="email"] {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-md);
  padding: 12px 14px;
  border: 1px solid rgba(90, 74, 62, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: #2a1a14;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.email-request input[type="email"]:focus {
  border-color: var(--ava-rose);
  background: rgba(255, 255, 255, 0.85);
}

.email-request button {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: var(--ava-rose);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.email-request button:hover:not(:disabled) {
  background: var(--ava-rose-light);
  transform: translateY(-1px);
}

.email-request button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-hint {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--fs-sm);
  color: #5a4a3e;
  text-align: center;
}

.email-confirmed,
.email-error {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--fs-md);
  color: #2a1a14;
  text-align: center;
  line-height: 1.55;
}

.email-error {
  color: #8a3a3e;
}

/* ============================================
   ROOMS — états sélection / désactivé
   ============================================ */
.room-card.selected {
  border-color: var(--ava-rose);
  background: linear-gradient(180deg, rgba(196, 92, 114, 0.18) 0%, rgba(36, 23, 25, 0.6) 100%);
}

.room-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ============================================
   SAS PAIEMENT (tokens épuisés)
   ============================================ */
.plans-grid {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  animation: bubble-in 400ms ease-out;
}

.plans-grid.loading {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ava-gold);
  padding: var(--space-lg);
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-md) var(--space-sm);
  border: 1px solid rgba(212, 165, 116, 0.45);
  border-radius: 0;
  background: linear-gradient(135deg, #f6ecda 0%, #efd9bc 100%);
  color: #2a1a14;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 10px rgba(196, 92, 114, 0.15);
}

.plan-card:hover:not(:disabled) {
  border-color: var(--ava-rose);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(196, 92, 114, 0.25);
}

.plan-card.selected {
  border-color: var(--ava-rose);
  background: linear-gradient(135deg, #ead7c2 0%, #d4b89b 100%);
}

.plan-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plan-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ava-rose);
  letter-spacing: 0.02em;
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2a1a14;
}

.plan-tokens {
  font-size: var(--fs-sm);
  color: #5a4a3e;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

.plan-teaser {
  font-size: var(--fs-xs);
  color: #5a4a3e;
  line-height: 1.4;
  margin-top: 4px;
}
