/* Blog article layout. */

/* Söhne (Klim) — voir la note de licence dans /index.html */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ── Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}
.navbar-logo { height: 30px; width: auto; display: block; }

/* ── Article ── */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 96px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.post-back:hover { color: var(--text); }
.post-back svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  margin-bottom: 40px;
}
.post-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.post-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
}

/* ── Prose ── */
.post-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 22px;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 44px 0 16px;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
}
.post-content ul,
.post-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.post-content li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.post-content a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover { color: var(--primary); }
.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
}
.post-content blockquote p {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 0;
}
.post-content img {
  max-width: 100%;
  border-radius: 16px;
  margin: 28px 0;
  display: block;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.post-video {
  width: 100%;
  border-radius: 16px;
  display: block;
  margin: 28px 0;
}
.post-video--vertical {
  margin: 0;
}
/* Videos with captions. */
.post-video-figure {
  margin: 28px 0;
}
.post-video-figure .post-video {
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #fff;
}
.post-video-figure--vertical {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.post-video-figure--vertical .post-video {
  aspect-ratio: 604 / 1314;
}
.post-video-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.post-video--loop-vertical {
  max-width: 280px;
  margin: 28px auto;
}
.post-battery-spotlight {
  position: relative;
  max-width: 280px;
  margin: 28px auto;
  border-radius: 16px;
  overflow: hidden;
}
.post-battery-spotlight img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}
.post-battery-spotlight-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@keyframes post-battery-spotlight-fade {
  0%, 10%, 90%, 100% { opacity: 0; }
  30%, 70% { opacity: 1; }
}
/* Keep the 80% highlight still when the reader requests reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .post-battery-spotlight-overlay {
    animation: post-battery-spotlight-fade 6s ease-in-out infinite;
  }
}
.post-video-shell {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.post-video-shell--vertical {
  max-width: 280px;
  margin: 28px auto;
}
.post-video-shell .post-video {
  border-radius: inherit;
  margin: 0;
}
.post-video-replay-overlay {
  align-items: center;
  background: rgb(43 43 43 / 40%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  inset: 0;
  justify-content: center;
  position: absolute;
}
.post-video-replay-overlay[hidden] {
  display: none;
}
.post-video-replay-icon {
  color: #fff;
  height: 34px;
  width: 34px;
}
.post-video-replay {
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: #2b2b2b;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 18px;
}
.post-video-replay:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.post-screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.post-screens img {
  width: 100%;
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.post-content .post-screens-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: -14px 0 28px;
}
.post-quote-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 10px;
}
.post-content blockquote .post-quote-author {
  font-size: 14px;
  margin-bottom: 0;
}
.post-content blockquote .post-quote-note {
  font-size: 13px;
  font-style: normal;
  color: var(--text-muted);
  margin: 6px 0 0;
}
.post-faq {
  border-top: 1px solid var(--border);
  margin-bottom: 22px;
}
.post-faq details {
  border-bottom: 1px solid var(--border);
}
.post-faq summary {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.2s, translate 0.2s;
  flex-shrink: 0;
  margin-right: 4px;
}
.post-faq details[open] summary::after {
  rotate: 225deg;
  translate: 0 3px;
}
.post-faq details p {
  margin-bottom: 0;
  padding-bottom: 20px;
}
.post-cta-card {
  display: flex;
  align-items: stretch;
  background: var(--bg-accent);
  border-radius: 24px;
  overflow: hidden;
  margin: 44px 0 10px;
}
.post-cta-card img.post-cta-card-img {
  width: 38%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  align-self: stretch;
}
.post-cta-card-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.post-cta-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.post-cta-card-lead {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.post-cta-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.post-cta-card li {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.post-cta-card-note {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 22px;
}
.post-news-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.22);
  border-radius: 999px;
  padding: 5px 5px 5px 20px;
  transition: border-color 0.2s;
}
.post-news-form:focus-within { border-color: oklch(1 0 0 / 0.5); }
.post-news-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  padding: 9px 0;
}
.post-news-form input::placeholder { color: oklch(1 0 0 / 0.4); }
.post-news-form button {
  border: none;
  border-radius: 999px;
  background: #fff;
  color: oklch(0.25 0.02 255);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.post-news-form button:hover { opacity: 0.85; }
.post-news-msg {
  display: none;
  font-size: 14px;
}
.post-cta {
  display: inline-block;
  background-color: var(--primary);
  color: #fff !important;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--primary-shadow);
  transition: background-color 0.2s, transform 0.2s;
  margin: 6px 0 10px;
}
.post-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* ── Footer ── */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 24px 40px;
}
.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}
.footer-col-news {
  max-width: 400px;
  width: 100%;
}
.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}
.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-links a {
  color: var(--footer-text);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: #fff; }
.footer-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.footer-news-label {
  font-size: 14px;
  color: var(--footer-text);
}
.footer .post-news-msg {
  color: var(--footer-text);
}
.footer-text {
  font-size: 13px;
  line-height: 1.6;
  max-width: 400px;
  color: var(--footer-text-dim);
}

@media (max-width: 768px) {
  .post-title { font-size: 30px; }
  .post-cover { border-radius: 16px; margin-bottom: 28px; }
  .post { padding-bottom: 64px; }
  .post-cta-card { flex-direction: column; border-radius: 16px; }
  .post-cta-card img.post-cta-card-img { width: 100%; height: 190px; }
  .post-screens { gap: 8px; }
  .post-screens img { border-radius: 10px; }
  .post-cta-card-content { padding: 28px 24px; }
  .footer-inner { flex-direction: column; gap: 36px; }
}
