/* Live News — mise en page, sur la base des variables de palette.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.live-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: min(var(--content-width), 100% - 2rem);
  margin: 0 auto;
}

.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.live-brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--color-link);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  50% {
    opacity: 0.25;
  }
}

.live-main {
  flex: 1;
  max-width: 44rem;
  padding: clamp(2.5rem, 8vw, 6rem) 0 3rem;
}

.live-eyebrow {
  margin: 0 0 1rem;
  color: var(--color-link);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.live-main h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
}

.live-lead {
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.live-preview {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

.live-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
}

.live-card + .live-card {
  opacity: 0.55;
}

.live-line {
  display: block;
  height: 0.7rem;
  width: 100%;
  border-radius: var(--radius-small);
  background: var(--color-border);
}

.live-line--meta {
  width: 30%;
  height: 0.55rem;
}

.live-line--title {
  width: 80%;
  height: 1rem;
  background: var(--color-text-muted);
  opacity: 0.35;
}

.live-line--short {
  width: 55%;
}

.live-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.live-tags span {
  width: 4.5rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--color-accent);
  opacity: 0.18;
}

.live-nowrap {
  white-space: nowrap;
}

.live-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.live-powered,
.live-powered:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.live-powered:hover .brand-mark {
  opacity: 1;
}

.brand-mark {
  display: block;
  height: 1rem;
  width: auto;
  opacity: 0.85;
}

[data-theme="dark"] .brand-mark {
  filter: invert(1);
}

.live-copyright {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .live-main .button {
    width: 100%;
    text-align: center;
  }
}
