/* ================================================
   custom.css — Wallid Guergour
   Surcharges spécifiques, ne pas modifier basic.css / layout.css
================================================ */

/* ================================================
   Screen reader only — H1 SEO invisible
================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================================================
   Hero article — label catégorie + meta
================================================ */
.article-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #F2DBC2;
  border: 1px solid rgba(242, 219, 194, 0.4);
  padding: 4px 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.article-meta {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.article-sep {
  margin: 0 8px;
}

/* ================================================
   Hero article — titre centré
   (section-title du template gère l'essentiel,
   on ajuste juste l'alignement du contenu)
================================================ */
.section.started.section-title .started-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================================================
   Contenu article — typographie
================================================ */
.single-post-text h2 {
  font-size: 24px;
  font-weight: 600;
  color: #F2DBC2;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.single-post-text h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-top: 32px;
  margin-bottom: 12px;
}

.single-post-text p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.single-post-text strong {
  color: #fff;
  font-weight: 600;
}

.single-post-text ul,
.single-post-text ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.single-post-text li {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.single-post-text hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 40px 0;
}

/* Code inline */
.single-post-text code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #F2DBC2;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ================================================
   Image hero article
================================================ */
.article-hero-image {
  margin: 0 0 40px 0;
}

.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-hero-image figcaption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ================================================
   Section FAQ
================================================ */
.article-faq {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.article-faq h2 {
  font-size: 20px;
  font-weight: 600;
  color: #F2DBC2;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.faq-item {
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 2px solid rgba(242, 219, 194, 0.3);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* ================================================
   Navigation prev / next
================================================ */
.article-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-navigation .btn {
  flex: 1;
  min-width: 200px;
  max-width: 48%;
}

.nav-next {
  margin-left: auto;
  text-align: right;
}

/* ================================================
   Back to top button
================================================ */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(242, 219, 194, 0.15);
  border: 1px solid rgba(242, 219, 194, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s;
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: rgba(242, 219, 194, 0.3);
}

#backToTop svg {
  width: 18px;
  height: 18px;
}

/* ================================================
   Blog — Grid de cards
================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 0 40px 0;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   Blog card
================================================ */
.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s, transform 0.3s;
}

.blog-card:hover {
  border-color: rgba(242, 219, 194, 0.3);
  transform: translateY(-4px);
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Image */
.blog-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  filter: grayscale(20%);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* Label catégorie */
.blog-card-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #111;
  background: #F2DBC2;
  padding: 4px 10px;
  text-transform: uppercase;
}

/* Contenu */
.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

.blog-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin: 0;
}

.blog-card-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

.blog-card-sep {
  margin: 0 6px;
}

/* CTA Read the article */
.blog-card-cta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 219, 194, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-cta {
  color: #F2DBC2;
}

.blog-card-arrow {
  font-size: 16px;
  transition: transform 0.2s;
}

.blog-card:hover .blog-card-arrow {
  transform: translateX(4px);
}
