/* article.css — Le cahier, Récits partagés */
@import url('../shared.css');

/* Article layout */
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

/* Header */
.article-breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 400; color: var(--texte-doux);
  text-decoration: none; margin-bottom: 24px;
  transition: color 0.2s;
}
.article-breadcrumb:hover { color: var(--brun-fonce); }
.article-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--brun-moyen);
  background: var(--creme-fonce);
  border: 1px solid var(--brun-clair);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 20px;
}
.article-container h1 {
  font-family: "Crimson Pro", serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400; line-height: 1.15;
  color: var(--texte); margin-bottom: 20px;
}
.article-byline {
  font-size: 13px; color: var(--texte-doux);
  font-weight: 300; margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--creme-fonce);
}

/* Article body */
.article-body h2 {
  font-family: "Crimson Pro", serif;
  font-size: clamp(22px, 3vw, 30px); font-weight: 600;
  color: var(--texte); margin: 44px 0 16px;
  line-height: 1.25;
}
.article-body h3 {
  font-family: "Crimson Pro", serif;
  font-size: clamp(18px, 2.5vw, 22px); font-weight: 600;
  color: var(--brun-fonce); margin: 28px 0 12px;
}
.article-body p {
  font-size: 16px; font-weight: 300;
  color: var(--texte); line-height: 1.85;
  margin-bottom: 18px;
}
.article-body strong { font-weight: 500; color: var(--texte); }
.article-body ul, .article-body ol {
  padding-left: 0; list-style: none;
  margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.article-body li {
  font-size: 15px; font-weight: 300;
  color: var(--texte); line-height: 1.8;
  padding-left: 24px; position: relative;
}
.article-body ul li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--brun-moyen); font-weight: 400;
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before {
  content: counter(ol-counter) ".";
  position: absolute; left: 0;
  color: var(--brun-moyen); font-weight: 500; font-size: 13px;
}

/* Aside résumé */
.article-body aside {
  background: white;
  border: 1px solid var(--creme-fonce);
  border-left: 3px solid var(--brun-moyen);
  border-radius: 0 14px 14px 0;
  padding: 24px 28px;
  margin: 40px 0 8px;
}
.article-body aside h3 {
  font-family: "Crimson Pro", serif;
  font-size: 16px; font-weight: 600;
  color: var(--brun-fonce); margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: 1px;
}
.article-body aside ul { margin: 0; gap: 8px; }
.article-body aside li { font-size: 14px; }

/* CTA section */
.article-cta {
  background: var(--creme-fonce);
  border: 1.5px solid var(--brun-clair);
  border-radius: 20px;
  padding: 40px 36px; text-align: center;
  margin: 60px 0;
}
.article-cta h3 {
  font-family: "Crimson Pro", serif;
  font-size: clamp(22px, 3vw, 30px); font-weight: 400;
  color: var(--texte); margin-bottom: 12px;
}
.article-cta p {
  font-size: 14px; font-weight: 300;
  color: var(--texte-doux); line-height: 1.75;
  margin-bottom: 28px; max-width: 380px; margin-left: auto; margin-right: auto;
}
.article-cta-form {
  display: flex; gap: 8px; max-width: 420px;
  margin: 0 auto;
  background: white; border: 1.5px solid var(--brun-clair);
  border-radius: 12px; padding: 6px 6px 6px 18px;
  box-shadow: 0 6px 24px rgba(144,70,47,0.10);
  transition: border-color 0.2s;
}
.article-cta-form:focus-within { border-color: var(--brun-moyen); }
.article-cta-form input {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-family: "Inter", sans-serif; font-size: 14px;
  color: var(--texte); padding: 8px 0; min-width: 0;
}
.article-cta-form input::placeholder { color: var(--texte-doux); }
.btn-cta {
  background: var(--brun-fonce); color: white; border: none;
  border-radius: 8px; padding: 10px 18px;
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, transform 0.15s; flex-shrink: 0;
}
.btn-cta:hover { background: #7a3a26; transform: translateY(-1px); }
.btn-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.cta-success { display: none; font-size: 14px; color: var(--brun-fonce); margin-top: 12px; }
.cta-error { display: none; font-size: 13px; color: #c0392b; margin-top: 10px; }
@media (max-width: 480px) {
  .article-cta-form { flex-direction: column; padding: 12px 16px; }
  .btn-cta { width: 100%; padding: 12px; }
}

/* Articles liés */
.article-related { margin-top: 8px; padding-top: 48px; border-top: 1px solid var(--creme-fonce); }
.article-related h3 {
  font-family: "Crimson Pro", serif; font-size: 20px; font-weight: 600;
  color: var(--texte); margin-bottom: 20px;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related-card {
  background: white; border: 1px solid var(--creme-fonce);
  border-radius: 14px; padding: 20px;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 8px;
}
.related-card:hover { border-color: var(--brun-clair); transform: translateY(-2px); }
.related-tag { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brun-moyen); }
.related-card h4 {
  font-family: "Crimson Pro", serif; font-size: 17px; font-weight: 600;
  color: var(--texte); line-height: 1.3;
}
.related-lire { font-size: 12px; font-weight: 500; color: var(--brun-fonce); margin-top: 4px; }
