.db-tag.is-live {
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(212, 175, 55, 0); }
}

.dashboard-bar {
  justify-content: flex-start;
}

.db-bar-meta {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  max-width: 58%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-chart {
  height: 118px !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.db-bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.db-bar-col .db-bar {
  width: 100%;
  min-height: 10px;
  transform-origin: bottom;
  animation: barRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.db-bar-label {
  margin-top: 6px;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  color: var(--text-3);
  line-height: 1;
}

button.db-stat,
.db-stat {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.db-stat:hover,
.db-stat.is-active {
  border-color: var(--accent);
  background: var(--accent-ghost);
  transform: translateY(-2px);
}

.db-stat-val span {
  font-size: 0.9rem;
  color: var(--accent);
  margin-left: 1px;
}

.hero-float-badge-2 {
  min-width: 148px;
}

.float-badge-2-change {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.72);
}

.hero-float-badge {
  opacity: 0.92;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-float-badge.is-shown {
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}

.hero-dashboard.is-flash,
.stat-value.is-flash {
  animation: marketFlash 0.7s ease;
}

@keyframes barRise {
  from { transform: scaleY(0.15); opacity: 0.35; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes marketFlash {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35); }
  100% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.carousel-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 48px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.carousel-section .carousel-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-section .carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(100vw - 160px));
}

.carousel-count {
  margin-top: 16px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

@media (max-width: 768px) {
  .db-bar-meta { display: none; }
  .hero-float-badge { left: 8px; }
}

/* Pages intérieures — même tokens que TemplateMo 622 Clearwave */

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.nav-logo-mark {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-1);
}

.nav.scrolled .nav-logo-mark {
  width: 40px;
  height: 40px;
}

.nav-logo span {
  color: inherit;
}

.nav-logo-text span {
  color: var(--accent);
}

.footer-brand .nav-logo {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.footer-brand .nav-logo-mark {
  width: 64px;
  height: 64px;
}

.hero {
  padding-top: 160px;
}

html {
  scroll-padding-top: 110px;
}

.nav-links a.is-current {
  color: var(--accent);
  background: var(--accent-ghost);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.page-hero {
  padding: 168px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.18) 0%, transparent 70%);
  top: -180px;
  right: -80px;
  pointer-events: none;
}

.page-body {
  padding: 0 0 40px;
}

.legal-prose,
.about-prose {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  max-width: 820px;
}

.legal-prose h2,
.about-prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
  color: var(--text-1);
}

.legal-prose h2:first-child,
.about-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p,
.about-prose p,
.legal-prose li,
.about-prose li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
}

.about-prose ul {
  margin: 8px 0 0 18px;
  list-style: disc;
}

.about-prose li {
  margin-bottom: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s var(--silk), box-shadow 0.3s var(--silk);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px var(--accent-ghost);
}

.form-flash {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.form-flash.success {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent);
}

.form-flash.danger {
  background: rgba(180, 40, 40, 0.08);
  color: #9b2c2c;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}

.download-os {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.download-version {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-meta {
  color: var(--text-3);
  font-size: 0.92rem;
  margin: 0 0 8px;
}

.download-card .btn-primary-lg,
.download-card .btn-outline-lg {
  margin-top: 18px;
  display: inline-flex;
}

.download-soon {
  opacity: 0.7;
  pointer-events: none;
  cursor: default;
}

.hero-actions .download-soon:hover {
  background: transparent;
  transform: none;
}

.download-changelogs,
.download-history {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.download-note,
.download-history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}

.download-history-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.download-note h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.download-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .download-grid,
  .download-history-item {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.error-page .error-code {
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--accent);
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .legal-prose,
  .about-prose,
  .contact-form {
    padding: 24px;
  }
}
