/* ============================================================
   Single.css — Template Single Post (article de blog)
   DA refonte v7 : container 720px lecture + aside sticky + articles lies
   ============================================================ */

:root {
  --c-encre: #0E2540;
  --c-nuit: #16314F;
  --c-or: #C9A86C;
  --c-or-deep: #A8884B;
  --c-or-pale: #E8D7AA;
  --c-ivoire: #F4ECDC;
  --c-ivoire-soft: #F8F2E2;
  --c-ivoire-deep: #EBDFC4;
  --c-sapin: #26466B;
  --c-sapin-light: #DDE6F1;
  --c-text-dim: #6E7280;
}

.single-page {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--c-encre);
  background: var(--c-ivoire);
  line-height: 1.6;
}

.single-page h1, .single-page h2, .single-page h3, .single-page h4 {
  font-family: 'DM Serif Display', 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ============ 1. HERO ARTICLE ============ */
.sp__hero {
  position: relative;
  padding: 140px 64px 60px;
  background: var(--c-ivoire);
}

.sp__hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-or) 30%, var(--c-or) 70%, transparent);
  opacity: 0.4;
}

.sp__hero-in {
  max-width: 880px;
  margin: 0 auto;
}

.sp__hero-crumbs {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 28px;
}
.sp__hero-crumbs a {
  color: var(--c-text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.sp__hero-crumbs a:hover {
  color: var(--c-encre);
  border-color: var(--c-or);
}
.sp__hero-crumbs .sep {
  margin: 0 10px;
  color: var(--c-or);
}
.sp__hero-crumbs .cur {
  color: var(--c-encre);
  font-weight: 600;
}

.sp__hero-eb {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-or-deep);
  font-weight: 600;
  background: rgba(201, 168, 108, 0.12);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.sp__hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  color: var(--c-encre);
  margin: 0 0 20px;
}

.sp__hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--c-nuit);
  line-height: 1.4;
  margin: 0 0 36px;
}

.sp__hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--c-text-dim);
  letter-spacing: 0.04em;
  padding-top: 24px;
  border-top: 1px solid var(--c-or-pale);
}
.sp__hero-meta .author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--c-encre);
}
.sp__hero-meta .author::before {
  content: "";
  display: inline-block;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-or-pale), var(--c-or));
  border: 1px solid var(--c-or);
}
.sp__hero-meta .sep {
  color: var(--c-or);
}

/* ============ 2. IMAGE D'ILLUSTRATION ============ */
.sp__hero-img {
  margin: 60px auto 0;
  max-width: 1180px;
  height: 480px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--c-ivoire-deep), var(--c-or-pale));
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(14, 37, 64, 0.12);
}

.sp__hero-img::after {
  content: "—";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 120px;
  color: var(--c-or);
  opacity: 0.3;
}

.sp__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ 3. CORPS DE L'ARTICLE ============ */
.sp__body {
  padding: 80px 64px 60px;
  background: var(--c-ivoire);
}

.sp__body-in {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.sp__content {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-encre);
  max-width: 720px;
}

.sp__content p {
  margin: 0 0 24px;
}

.sp__content p.lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--c-nuit);
  line-height: 1.5;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-or-pale);
}

.sp__content h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--c-encre);
  margin: 56px 0 20px;
  scroll-margin-top: 100px;
}

.sp__content h2::before {
  content: "—";
  display: block;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--c-or);
  margin-bottom: 10px;
}

.sp__content h3 {
  font-size: 24px;
  color: var(--c-encre);
  margin: 40px 0 16px;
}

.sp__content strong,
.sp__content b {
  font-weight: 600;
  color: var(--c-encre);
}

.sp__content em,
.sp__content i {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05em;
}

.sp__content a {
  color: var(--c-encre);
  text-decoration: none;
  border-bottom: 1px solid var(--c-or);
  transition: color 0.3s, border-color 0.3s;
}
.sp__content a:hover {
  color: var(--c-or-deep);
  border-bottom-color: var(--c-or-deep);
}

.sp__content ul, .sp__content ol {
  margin: 0 0 28px;
  padding-left: 28px;
}
.sp__content li {
  margin-bottom: 10px;
}
.sp__content ul li::marker {
  color: var(--c-or);
}

.sp__content blockquote {
  margin: 36px 0;
  padding: 24px 32px;
  background: white;
  border-left: 3px solid var(--c-or);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--c-nuit);
  line-height: 1.5;
}

.sp__content .pullquote {
  margin: 48px -32px;
  padding: 40px;
  background: var(--c-encre);
  color: var(--c-ivoire);
  text-align: center;
  border-radius: 2px;
  position: relative;
}
.sp__content .pullquote::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--c-or);
}
.sp__content .pullquote p {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  color: var(--c-ivoire);
  margin: 0;
  padding-top: 12px;
}
.sp__content .pullquote cite {
  display: block;
  margin-top: 16px;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-or-pale);
}

/* ============ 4. ASIDE STICKY (TOC + articles lies) ============ */
.sp__aside {
  position: sticky;
  top: 100px;
  align-self: start;
  font-family: 'Manrope', sans-serif;
}

.sp__aside-block {
  padding: 24px;
  background: white;
  border: 1px solid var(--c-or-pale);
  border-radius: 2px;
  margin-bottom: 16px;
}

.sp__aside-block .lab {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-or-deep);
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-or-pale);
}

.sp__toc {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp__toc li {
  margin-bottom: 10px;
}
.sp__toc a {
  font-size: 13px;
  color: var(--c-text-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  display: block;
  line-height: 1.4;
  transition: color 0.3s, border-color 0.3s;
}
.sp__toc a:hover, .sp__toc a.is-active {
  color: var(--c-encre);
  border-color: var(--c-or);
}

.sp__aside-cta {
  padding: 24px;
  background: var(--c-encre);
  color: var(--c-ivoire);
  border-radius: 2px;
  text-align: center;
}
.sp__aside-cta .eb {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-or-pale);
  margin-bottom: 12px;
}
.sp__aside-cta h4 {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--c-ivoire);
  margin-bottom: 12px;
  line-height: 1.2;
}
.sp__aside-cta p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--c-or-pale);
  margin-bottom: 16px;
  line-height: 1.4;
}
.sp__aside-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--c-or);
  color: var(--c-encre);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.3s;
}
.sp__aside-cta a:hover {
  background: var(--c-or-deep);
}

/* ============ 5. TAGS ============ */
.sp__tags {
  max-width: 720px;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--c-or-pale);
}

.sp__tags .lab {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-or-deep);
  margin-bottom: 16px;
  font-weight: 600;
}

.sp__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp__tag {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--c-or-pale);
  border-radius: 99px;
  color: var(--c-encre);
  text-decoration: none;
  transition: all 0.3s;
}
.sp__tag:hover {
  background: var(--c-or-pale);
  border-color: var(--c-or);
}

/* ============ 6. ARTICLES LIES ============ */
.sp__related {
  padding: 80px 64px;
  background: var(--c-ivoire-deep);
  border-top: 1px solid var(--c-or-pale);
}

.sp__related-in {
  max-width: 1180px;
  margin: 0 auto;
}

.sp__related-h {
  text-align: center;
  margin-bottom: 50px;
}
.sp__related-h .eb {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-or-deep);
  margin-bottom: 12px;
}
.sp__related-h .eb::before, .sp__related-h .eb::after {
  content: "—"; margin: 0 12px; color: var(--c-or);
}
.sp__related-h h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--c-encre);
}

.sp__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sp__related-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid rgba(201, 168, 108, 0.2);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-encre);
  transition: all 0.3s cubic-bezier(.2,.7,.2,1);
}
.sp__related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14, 37, 64, 0.12);
  border-color: var(--c-or);
}

.sp__related-card .thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--c-ivoire-deep), var(--c-or-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 56px;
  color: var(--c-or);
  opacity: 0.5;
}

.sp__related-card .body {
  padding: 20px 22px;
}
.sp__related-card .date {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 10px;
}
.sp__related-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.2;
}
.sp__related-card .read {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: var(--c-text-dim);
}

/* ============ 7. CTA LIVRE + RDV ============ */
.sp__cta-bottom {
  padding: 80px 64px;
  background: var(--c-encre);
  color: var(--c-ivoire);
  text-align: center;
}
.sp__cta-bottom-in {
  max-width: 720px;
  margin: 0 auto;
}
.sp__cta-bottom .eb {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-or-pale);
  margin-bottom: 16px;
}
.sp__cta-bottom .eb::before, .sp__cta-bottom .eb::after {
  content: "—"; margin: 0 12px; color: var(--c-or);
}
.sp__cta-bottom h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--c-ivoire);
  margin-bottom: 16px;
}
.sp__cta-bottom p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--c-or-pale);
  margin-bottom: 36px;
  line-height: 1.4;
}
.sp__cta-bottom .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.sp__cta-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.3s;
}
.sp__cta-bottom .primary {
  background: var(--c-or);
  color: var(--c-encre);
  border: 1px solid var(--c-or);
}
.sp__cta-bottom .primary:hover {
  background: var(--c-or-deep);
  transform: translateY(-2px);
}
.sp__cta-bottom .secondary {
  background: transparent;
  color: var(--c-or-pale);
  border: 1px solid var(--c-or-pale);
}
.sp__cta-bottom .secondary:hover {
  background: rgba(232, 215, 170, 0.1);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .sp__hero { padding: 110px 28px 40px; }
  .sp__hero-img { height: 300px; }
  .sp__body { padding: 50px 28px 40px; }
  .sp__body-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sp__aside { position: static; }
  .sp__content .pullquote { margin: 36px 0; padding: 28px 24px; }
  .sp__related { padding: 50px 28px; }
  .sp__related-grid {
    grid-template-columns: 1fr;
  }
  .sp__cta-bottom { padding: 50px 28px; }
}

/* Reveal */
.sp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1),
              transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.sp-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .sp-reveal { opacity: 1; transform: none; transition: none; }
}
