
/* ── Article wrapper ───────────────────────────────────── */
.sp-article {
  padding: 1rem;
}
.sp-article h2::after {
    display: none;
}
.sp-article h3 {
    margin: 1rem 0 !important;
}

/* ── Header article ────────────────────────────────────── */
.sp-article-header {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 0 !important;
}

/* Meta : catégorie + date */
.sp-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.sp-article-cat a {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3e8fff;
  text-decoration: none;
  background: rgba(62, 143, 255, 0.08);
  border: 1px solid rgba(62, 143, 255, 0.2);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sp-article-cat a:hover {
  background: rgba(62, 143, 255, 0.15);
  border-color: rgba(62, 143, 255, 0.35);
}

.sp-article-date {
  font-size: 0.72rem;
  color: rgba(240, 237, 232, 0.35);
  letter-spacing: 0.08em;
}

/* Séparateur méta */
.sp-article-meta::before {
  display: none;
}

/* Titre H1 */
.sp-article-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f0ede8;
}

/* Excerpt / chapô */
.sp-article-excerpt {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(240, 237, 232, 0.55);
  border-left: 2px solid rgba(62, 143, 255, 0.4);
  padding-left: 1.2rem;
}

.sp-article-excerpt p {
  margin: 0;
}

/* ── Image à la une ─────────────────────────────────────── */
.sp-article-cover {
  margin: 2rem 0rem;
}

.sp-article-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  filter: brightness(0.88) saturate(0.9);
}

/* Typographie du contenu Gutenberg */
.sp-article-body p {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(240, 237, 232, 0.62);
  margin-bottom: 1rem !important;
}

.sp-article-body p:last-child {
  margin-bottom: 0;
}

.sp-article-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 3rem 0 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sp-article-body h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f0ede8;
  margin: 2.2rem 0 0.9rem;
}

/*.sp-article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(240, 237, 232, 0.8);
  margin: 1.8rem 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}*/

/* Listes */
.sp-article-body ul,
.sp-article-body ol {
  padding-left: 0;
  margin: 0 !important;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sp-article-body ul li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(240, 237, 232, 0.6);
}

.sp-article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3e8fff;
  opacity: 0.7;
}

.sp-article-body ol {
  counter-reset: ol-counter;
}

.sp-article-body ol li {
  counter-increment: ol-counter;
  padding-left: 2rem;
  position: relative;
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(240, 237, 232, 0.6);
}

.sp-article-body ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3e8fff;
  opacity: 0.6;
  line-height: 1.9;
}

/* Blockquote */
.sp-article-body blockquote {
  margin: 2.5rem 0;
  padding: 1.4rem 1.6rem 1.4rem 2rem;
  border-left: 2px solid rgba(62, 143, 255, 0.4);
  background: rgba(62, 143, 255, 0.04);
  border-radius: 0 12px 12px 0;
  position: relative;
}

.sp-article-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.6rem;
  left: 1.2rem;
  font-size: 3.5rem;
  line-height: 1;
  color: #3e8fff;
  opacity: 0.12;
  font-family: Georgia, serif;
  pointer-events: none;
}

.sp-article-body blockquote p {
  font-size: 1rem;
  font-style: italic;
  color: rgba(240, 237, 232, 0.65);
  margin: 0;
}

/* Code inline */
.sp-article-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.84em;
  background: rgba(62, 143, 255, 0.08);
  border: 1px solid rgba(62, 143, 255, 0.15);
  border-radius: 5px;
  padding: 0.1em 0.45em;
  color: rgba(240, 237, 232, 0.8);
}

/* Bloc code */
.sp-article-body pre {
  background: #0d0d13;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.6rem;
  -webkit-overflow-scrolling: touch;
}

.sp-article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(240, 237, 232, 0.7);
  line-height: 1.7;
}

/* Liens dans le corps */
.sp-article-body a {
  color: #3e8fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 143, 255, 0.3);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.sp-article-body a:hover {
  color: #f0ede8;
  border-color: rgba(240, 237, 232, 0.4);
}

/* Séparateur hr */
.sp-article-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 3rem 0;
}

/* Images dans le corps */
.sp-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 2rem auto;
  filter: brightness(0.88);
}

/* ── Footer article : retour blog ───────────────────────── */
.sp-article-footer {
  margin: 4rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.sp-back:hover {
  color: #f0ede8;
  border-color: rgba(240, 237, 232, 0.4);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sp-article-header { padding: 3rem 5vw 2rem; gap: 1rem; }
  .sp-article-cover  { margin: 2rem 0; }
  .sp-article-img    { aspect-ratio: 16 / 9; border-radius: 10px; }
  .sp-article-body h2 { margin-top: 2.2rem; }
}

@media (max-width: 480px) {
  .sp-article-title { letter-spacing: -0.02em; }
  .sp-article-excerpt { font-size: 0.97rem; }
}

/* ── Accessibilité ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}