/* blog.css — pages publiques du blog, intégrées à la DA du site. Tokens swiss.css. */

/* ============ NAV blog : fond clair + menu complet ============ */
.nav--blog {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav--blog .nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-block: var(--s-2);
}
.nav--blog .nav__brand {
  flex-shrink: 0;
  line-height: 0;
}
.nav--blog .nav__logo {
  height: 52px;
  width: auto;
  filter: none; /* pas de glow : on est sur fond clair */
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-left: auto;
}
.nav__link {
  font-size: var(--t-body);
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--ink);
}
.nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.nav__cta--blog {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.nav__cta--blog:hover {
  background: var(--accent-deep);
}
@media (max-width: 920px) {
  .nav__menu {
    display: none; /* menu masqué sur mobile — le CTA + logo restent */
  }
}

/* ============ INDEX /blog ============ */
.blog-index__hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: var(--s-8) 0 var(--s-7);
}
.blog-index__title {
  font-size: var(--t-h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: var(--s-2) 0 var(--s-3);
  max-width: 18ch;
}
.blog-index__sub {
  font-size: var(--t-lead);
  color: var(--ink-2);
  max-width: 56ch;
}
.blog-index__inner {
  padding: var(--s-7) 0;
}
.blog-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-5);
}
.blog-index__empty {
  color: var(--ink-3);
  font-size: var(--t-lead);
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.blog-card__title {
  font-size: var(--t-h3);
  line-height: 1.25;
  margin-bottom: var(--s-2);
}
.blog-card__excerpt {
  color: var(--ink-2);
  font-size: var(--t-body);
  line-height: 1.55;
  margin-bottom: var(--s-3);
  flex: 1;
}
.blog-card__more {
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--accent);
}

/* ============ ARTICLE /blog/:slug ============ */
.blog-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.blog-hero__media {
  height: 360px;
  overflow: hidden;
  background: var(--accent-deep);
}
.blog-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
.blog-hero__inner {
  position: relative;
  margin-top: -110px;
  padding-bottom: var(--s-5);
}
.blog-hero__back {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: var(--t-body);
  margin-bottom: var(--s-3);
  opacity: 0.9;
}
.blog-hero__back:hover {
  opacity: 1;
}
.blog-hero__label {
  color: var(--accent-gold);
}
.blog-hero__title {
  color: #fff;
  font-size: var(--t-h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  margin: 0;
}
/* Voile sombre sous le titre pour garantir la lisibilité sur toutes les photos. */
.blog-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 34, 0.72) 0%,
    rgba(10, 22, 34, 0.1) 45%,
    transparent 70%
  );
}
.blog-hero__media {
  position: relative;
}

.blog-article__inner {
  max-width: 720px;
  padding: var(--s-7) 0 var(--s-5);
}

/* Corps rédactionnel (prose) : typographie lisible pour du contenu long. */
.prose {
  font-size: var(--t-lead);
  line-height: 1.75;
  color: var(--ink);
}
.prose h2 {
  font-size: var(--t-h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: var(--s-6) 0 var(--s-3);
}
.prose h3 {
  font-size: var(--t-h3);
  margin: var(--s-5) 0 var(--s-2);
}
.prose p {
  margin: 0 0 var(--s-3);
}
.prose ul,
.prose ol {
  margin: 0 0 var(--s-3) var(--s-4);
}
.prose li {
  margin-bottom: var(--s-1);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose strong {
  color: var(--ink);
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--s-3);
  margin: var(--s-4) 0;
  color: var(--ink-2);
  font-style: italic;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: var(--s-4) 0;
}

/* FAQ (schema FAQPage rendu visible) */
.blog-faq {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-5) var(--gutter) var(--s-6);
  border-top: 1px solid var(--line);
}
.blog-faq__title {
  font-size: var(--t-h2);
  margin-bottom: var(--s-3);
}
.blog-faq__item {
  border-bottom: 1px solid var(--line);
  padding: var(--s-3) 0;
}
.blog-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--t-lead);
  list-style: none;
}
.blog-faq__item summary::-webkit-details-marker {
  display: none;
}
.blog-faq__item summary::before {
  content: '+';
  color: var(--accent);
  font-weight: 700;
  margin-right: var(--s-2);
}
.blog-faq__item[open] summary::before {
  content: '–';
}
.blog-faq__item p {
  margin-top: var(--s-2);
  color: var(--ink-2);
  line-height: 1.65;
  padding-left: calc(var(--s-2) + 1ch);
}

/* ============ CTA conversion (vers le lead) ============ */
.blog-cta {
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  color: #fff;
  margin-top: var(--s-7);
}
.blog-cta__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-8) var(--gutter);
  text-align: center;
}
.blog-cta__eyebrow {
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: var(--s-2);
}
.blog-cta__title {
  font-size: var(--t-h2);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.blog-cta__text {
  font-size: var(--t-lead);
  opacity: 0.92;
  max-width: 52ch;
  margin: 0 auto var(--s-4);
}
.blog-cta__btn {
  display: inline-block;
  background: #fff;
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  font-size: var(--t-body);
}
.blog-cta__btn:hover {
  background: var(--accent-gold);
  color: var(--ink);
}

@media (max-width: 720px) {
  .blog-hero__media {
    height: 240px;
  }
  .blog-hero__inner {
    margin-top: -80px;
  }
}
