/* =========================================================
   OBE — Le journal (blog)
   ========================================================= */

/* ===== Listing ===== */

.journal-hero {
  padding: 11rem 0 4rem;
  text-align: center;
}

.journal-hero .section__title { max-width: 22ch; margin-inline: auto; }

.journal-hero__text {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 1.6rem auto 0;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 6rem;
}

.post-card {
  background: var(--white-warm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(74, 66, 56, .35);
}

.post-card__visual {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 25% 12%, var(--white-warm) 0%, transparent 55%),
    linear-gradient(155deg, var(--linen) 0%, var(--sand) 90%);
  border-bottom: 1px solid var(--line);
}
.post-card__visual svg { width: 46%; height: auto; color: var(--ink-soft); }

.post-card__body { padding: 1.9rem 1.9rem 2.1rem; display: flex; flex-direction: column; flex: 1; }

.post-card__cat {
  font-family: var(--font-sans);
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: .9rem;
}

.post-card__title {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: .8rem;
}

.post-card__excerpt {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.post-card__meta {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: auto;
}

.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__visual {
  flex: 0 0 46%;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid var(--line);
}
.post-card--featured .post-card__visual svg { width: 40%; }
.post-card--featured .post-card__body { padding: 3.4rem; justify-content: center; }
.post-card--featured .post-card__title { font-size: 2.1rem; }

/* ===== Article ===== */

.article-hero {
  padding: 10.5rem 0 3.5rem;
  text-align: center;
}

.breadcrumb {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white-warm);
}
.breadcrumb a { color: var(--taupe); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.article-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 400;
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 auto 1.6rem;
}

.article-hero__meta {
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
}
.article-hero__meta span { margin: 0 .7rem; }

.article-visual {
  max-width: 620px;
  margin: 3rem auto 0;
}
.article-visual .arch-frame .article-scene {
  border-radius: 985px 985px 0 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 25% 12%, var(--white-warm) 0%, transparent 55%),
    linear-gradient(155deg, var(--linen) 0%, var(--sand) 110%);
}
.article-scene svg { width: 52%; height: auto; color: var(--ink-soft); }

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.article-body > p { margin-bottom: 1.5rem; color: var(--ink-soft); }
.article-body .lead {
  font-size: 1.32rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
}

.article-body h2 {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 3rem 0 1.2rem;
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 2.2rem 0 .9rem;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 1.3rem;
  color: var(--ink-soft);
}
.article-body li { margin-bottom: .55rem; }

.article-body a { color: var(--ink); text-decoration-color: var(--taupe); text-underline-offset: 3px; }
.article-body a:hover { color: var(--taupe); }

/* Encadré "L'essentiel" */
.essential {
  background: var(--white-warm);
  border: 1px solid var(--line);
  padding: 2.2rem 2.4rem;
  margin: 2.5rem 0;
}
.essential__label {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.1rem;
}
.essential ul { margin: 0 0 0 1.2rem; }
.essential li { margin-bottom: .5rem; color: var(--ink-soft); }

/* Encadré douceur (citation marque) */
.soft-note {
  background: var(--cream-warm);
  border-left: 1px solid var(--taupe);
  padding: 2rem 2.2rem;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
.soft-note .sig {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 1rem;
}

/* Tableaux */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0 2.2rem;
  font-size: 1rem;
  background: var(--white-warm);
  border: 1px solid var(--line);
}
.article-table th {
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--taupe);
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.article-table td {
  padding: .9rem 1.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  color: var(--ink-soft);
}
.article-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq { margin: 3rem 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq summary {
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 300;
  color: var(--taupe);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-top: .9rem; color: var(--ink-soft); }

/* CTA article */
.article-cta {
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  padding: 3.4rem 2.5rem;
  margin: 3.5rem 0;
}
.article-cta h2 { margin: 0 0 1rem; font-size: 1.8rem; font-weight: 400; }
.article-cta p { color: color-mix(in srgb, var(--cream) 80%, var(--taupe)); margin-bottom: 2rem; }
.article-cta .btn--primary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.article-cta .btn--primary:hover { background: transparent; color: var(--cream); }

/* Auteur */
.author-box {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  margin: 3rem 0;
}
.author-box__avatar {
  flex: 0 0 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--linen), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.author-box__name { font-size: 1.2rem; font-weight: 500; }
.author-box__role {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: .2rem;
}

/* Navigation entre articles */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 6rem;
}
.article-nav a {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color .3s;
}
.article-nav a:hover { color: var(--taupe); }

/* ===== Section journal sur l'accueil ===== */

.home-journal { background: var(--cream); }
.home-journal .journal-grid { padding-bottom: 0; }
.home-journal__more { text-align: center; margin-top: 3rem; }

/* ===== Responsive ===== */

@media (max-width: 960px) {
  .journal-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__visual {
    border-right: none;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 16 / 10;
  }
  .post-card--featured .post-card__body { padding: 2.2rem; }
  .post-card--featured .post-card__title { font-size: 1.6rem; }
}

@media (max-width: 760px) {
  .article-hero { padding-top: 8.5rem; }
  .article-body { width: 90%; }
  .article-table { font-size: .92rem; }
  .article-table th, .article-table td { padding: .7rem .8rem; }
}

/* Tableaux : défilement horizontal sur petit écran (jamais de débordement de page) */
@media (max-width: 760px) {
  .article-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
