.eleve-body { min-height: 100vh; }
.eleve-body .landing-header .inner { padding: 0.5rem 0; gap: 0.5rem; }
.eleve-main { padding: 0.85rem 0 5.2rem; max-width: 960px; }

.eleve-back-wrap { margin: 0 0 0.55rem; }
.eleve-back {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.15rem 0;
  cursor: pointer;
}

.eleve-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}
@media (max-width: 420px) {
  .eleve-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.eleve-shortcuts button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
  padding: 0.45rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eleve-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  padding: 0.2rem 0.2rem calc(0.25rem + env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
}
.eleve-dock button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.5rem 0.15rem;
  cursor: pointer;
}
.eleve-dock button.active { color: var(--navy); }

.eleve-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.95rem 1rem;
  margin-bottom: 0.85rem;
}

.eleve-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.eleve-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 420px;
  overflow: auto;
  padding: 0.5rem 0;
}
.eleve-bubble {
  max-width: 92%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  white-space: pre-wrap;
}
.eleve-bubble.user { align-self: flex-end; background: var(--sky); color: var(--navy); }
.eleve-bubble.ai { align-self: flex-start; background: #f0f4f8; color: var(--ink); }

.eleve-quota {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.eleve-quota strong { color: var(--navy); }

.eleve-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.eleve-form input, .eleve-form select, .eleve-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
}
.eleve-err { color: var(--red); font-size: 0.88rem; margin: 0.5rem 0; }
.eleve-ok { color: var(--green); font-size: 0.88rem; margin: 0.5rem 0; }
.eleve-price {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.eleve-price:has(input:checked) {
  border-color: var(--blue);
  background: var(--sky);
}
.tt-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tt-row::-webkit-scrollbar { display: none; }
.tt-row span,
.tt-row strong { white-space: nowrap; flex: 0 0 auto; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
}
.badge-ok { background: var(--mint); color: var(--green); }
.badge-gold {
  background: linear-gradient(90deg, #f4e4b2, #e0b84d);
  color: #6b5010;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}
.badge-warn { background: #fff3e0; color: var(--amber); }
.badge-off { background: #eee; color: var(--muted); }

.eleve-ribbon {
  margin: 0.75rem 0 0;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  background: linear-gradient(90deg, #1a1408, #6b5010);
  color: #f4e4b2;
}
.eleve-ribbon--std {
  background: #e8eef6;
  color: #123a63;
}

/* Compte normal — bleu marine */
.eleve-standard {
  background: linear-gradient(180deg, #0b2a4a 0%, #0b2a4a 7.5rem, #e8eef6 7.5rem);
}
.eleve-standard .landing-header {
  background: rgba(11, 42, 74, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.eleve-standard .logo { color: #fff; }
.eleve-standard .logo span { color: #90caf9; }
.eleve-standard .landing-header .btn-soft {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.eleve-standard .eleve-dock { border-top-color: #c5d4e6; }
.eleve-standard .eleve-dock button.active { color: #1565c0; }
.eleve-standard .eleve-shortcuts button {
  background: #f4f8fc;
  border-color: #c5d4e6;
}

/* Premium — or */
.eleve-premium {
  --gold: #c9a227;
  --gold-soft: #f4e4b2;
  --gold-deep: #6b5010;
  background: linear-gradient(180deg, #1a1408 0%, #2a1f0c 7.5rem, #f7f1e4 7.5rem);
}
.eleve-premium .landing-header {
  background: rgba(26, 20, 8, 0.94);
  border-bottom: 1px solid #c9a227;
}
.eleve-premium .logo { color: #f4e4b2; }
.eleve-premium .logo span { color: #e8c547; }
.eleve-premium .logo-mark {
  background: linear-gradient(145deg, #f4e4b2, #c9a227);
  color: #3d2e12;
}
.eleve-premium .landing-header .btn-soft {
  background: rgba(244, 228, 178, 0.12);
  color: #f4e4b2;
  border-color: rgba(201, 162, 39, 0.45);
}
.eleve-premium .eleve-card {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 12px 28px rgba(107, 80, 16, 0.12);
  background: linear-gradient(180deg, #fffdf6, #fff);
}
.eleve-premium .eleve-dock {
  background: #1a1408;
  border-top: 1px solid #c9a227;
}
.eleve-premium .eleve-dock button { color: #c4b48a; }
.eleve-premium .eleve-dock button.active { color: #f4e4b2; }
.eleve-premium .eleve-shortcuts button {
  background: linear-gradient(180deg, #fff8e7, #f4e4b2);
  border-color: #c9a227;
  color: #6b5010;
}
.eleve-premium .eleve-back { color: #c9a227; }
.eleve-premium h2, .eleve-premium h3 { color: #6b5010 !important; }
.eleve-premium .btn-primary {
  background: linear-gradient(180deg, #e8c547, #c9a227);
  color: #3d2e12;
  border: 0;
}
.eleve-premium .eleve-bubble.user {
  background: #f4e4b2;
  color: #3d2e12;
}
.eleve-premium .preview-banner {
  background: #3d2e12;
  color: #f4e4b2;
  border-color: #c9a227;
}
.eleve-premium .logo-mark {
  box-shadow: 0 0 0 2px rgba(232, 197, 71, 0.45), 0 0 16px rgba(201, 162, 39, 0.45);
}
.eleve-premium .eleve-card::before {
  content: "";
  display: block;
  height: 3px;
  margin: -0.95rem -1rem 0.7rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, #c9a227, #f4e4b2, #c9a227);
}

.pv-shell { max-width: 430px; margin: 0 auto 2rem; }
.pv-admin-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.pv-phone {
  background: #0b1220;
  border-radius: 32px;
  padding: 12px 10px 10px;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.35);
}
.pv-appbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem 0.75rem;
  color: #f4e4b3;
}
.pv-appbar-titles { flex: 1; min-width: 0; }
.pv-appbar-titles strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
}
.pv-appbar-titles span { font-size: 0.72rem; opacity: 0.75; }
.pv-back {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.pv-back--logo {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #f4e4b3;
}
.pv-pill {
  background: linear-gradient(135deg, #f6e27a, #c9a227);
  color: #3a2a00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.pv-stage {
  background: #eef3f8;
  border-radius: 22px 22px 0 0;
  min-height: 520px;
  overflow: hidden;
}
.pv-page { padding: 0.9rem 0.9rem 1.2rem; animation: pvIn 0.28s ease; }
.pv-page--back { animation-name: pvBack; }
@keyframes pvIn {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes pvBack {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: none; }
}
.pv-hero {
  background: linear-gradient(160deg, #123a63, #0b2a4a 55%, #8a6a12);
  color: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.2rem;
  margin-bottom: 0.85rem;
}
.pv-hero h2 { margin: 0.15rem 0 0.25rem; font-family: var(--display); font-size: 1.65rem; }
.pv-hero p { margin: 0; font-size: 0.88rem; opacity: 0.88; }
.pv-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4e4b3;
}
.pv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  opacity: 0.9;
}
.pv-explain {
  background: #fff8e6;
  border: 1px solid #ead9a0;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
}
.pv-explain strong { display: block; color: #6a5208; font-size: 0.82rem; margin-bottom: 0.2rem; }
.pv-explain p { margin: 0; font-size: 0.84rem; color: #4a4330; line-height: 1.45; }
.pv-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.pv-tile, .pv-row, .pv-cta {
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.pv-tile {
  background: #fff;
  border-radius: 16px;
  padding: 0.85rem 0.8rem;
  box-shadow: 0 6px 18px rgba(18, 58, 99, 0.06);
  display: grid;
  gap: 0.25rem;
}
.pv-tile span { font-weight: 800; color: var(--navy); font-size: 0.92rem; }
.pv-tile small, .pv-row small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; margin-top: 0.15rem; }
.pv-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 18px rgba(18, 58, 99, 0.05);
}
.pv-card h3 { margin: 0 0 0.55rem; color: var(--navy); font-size: 1rem; }
.pv-gold { background: linear-gradient(180deg, #fffdf4, #fff); border: 1px solid #ead9a0; }
.pv-muted { color: var(--muted); font-size: 0.86rem; margin: 0.4rem 0 0.7rem; }
.pv-cta, .pv-actions .pv-cta {
  display: inline-flex;
  margin-top: 0.7rem;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.pv-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pv-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 14px rgba(18, 58, 99, 0.05);
}
.pv-row--static { cursor: default; }
.pv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.pv-stats div {
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem;
}
.pv-stats small { color: var(--muted); font-size: 0.75rem; }
.pv-stats strong { display: block; font-size: 1.45rem; color: var(--navy); }
.pv-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin: 0.4rem 0 0.8rem; }
.pv-bars i {
  flex: 1;
  background: linear-gradient(180deg, #c9a227, #123a63);
  border-radius: 5px 5px 2px 2px;
}
.pv-ol { margin: 0.4rem 0 0; padding-left: 1.15rem; color: var(--ink); font-size: 0.9rem; line-height: 1.5; }
.pv-choice {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  margin: 0.35rem 0;
  font-size: 0.9rem;
}
.pv-choice--on { border-color: var(--green); background: var(--mint); }
.pv-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #0b1220;
  border-radius: 0 0 22px 22px;
  padding: 0.35rem 0.2rem 0.55rem;
}
.pv-tabbar button {
  border: 0;
  background: transparent;
  color: #8b97a8;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  cursor: pointer;
}
.pv-tabbar button i { font-style: normal; font-size: 1rem; }
.pv-tabbar button.is-on { color: #f4e4b3; }
.pv-disabled { opacity: 0.72; pointer-events: none; }

@media (max-width: 520px) {
  .pv-phone { border-radius: 0; padding: 0; box-shadow: none; }
  .pv-stage { border-radius: 18px 18px 0 0; }
}
