/* ===== PAGE ARTICLE DE BLOG — Design dédié ===== */

/* Lien Blog actif dans le header (même principe que blog.css) */
.header__nav-link--active {
  color: var(--blue-secondary) !important;
}

.header__nav-link--active::after {
  width: 100%;
}

/* ----- Hero : image à la une ----- */
.article-hero {
  position: relative;
  min-height: 42vh;
  max-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.article-hero__img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* ----- Conteneur article (largeur lecture confortable) ----- */
.container--article {
  max-width: 720px;
  padding-top: 40px;
  padding-bottom: 24px;
}

/* ----- Fil d'Ariane ----- */
.article-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

.article-breadcrumb a {
  color: var(--grey-body);
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: var(--blue-secondary);
}

.article-breadcrumb__sep {
  margin: 0 8px;
  color: #bbb;
}

.article-breadcrumb__current {
  color: var(--grey-title);
  font-weight: 500;
}

/* ----- Méta (catégorie, date, temps de lecture) ----- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.article-meta__category {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-meta__date {
  font-size: 14px;
  color: #777;
}

.article-meta__reading {
  font-size: 13px;
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta__reading i {
  font-size: 12px;
}

/* ----- Titre + chapô ----- */
.article-content__title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--grey-title);
  margin-bottom: 20px;
}

.article-content__lead {
  font-size: 18px;
  font-weight: 400;
  color: var(--grey-body);
  line-height: 1.5;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e8e8e8;
}

/* ----- Corps de l'article (typographie riche) ----- */
.article-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--grey-body);
}

.article-body p {
  margin-bottom: 1.25em;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 600;
  color: var(--grey-title);
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.article-body h2:first-child {
  margin-top: 0;
}

/* Figure (image + légende) */
.article-figure {
  margin: 2em 0;
}

.article-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.article-figure figcaption {
  font-size: 14px;
  color: #888;
  font-style: italic;
  text-align: center;
}

/* Citation / bloc citation */
.article-blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background: var(--blue-main);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue-secondary);
}

.article-blockquote p {
  font-size: 18px;
  font-weight: 400;
  color: var(--grey-title);
  margin-bottom: 0.5em;
}

.article-blockquote cite {
  font-size: 14px;
  color: #777;
  font-style: normal;
}

/* ----- CTA en fin d'article ----- */
.article-cta {
  margin-top: 40px;
  padding: 28px 32px;
  background: #f8f9fa;
  border-radius: var(--radius);
  text-align: center;
}

.article-cta p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--grey-body);
}

.article-cta__btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  background: var(--blue-secondary);
  border-radius: 999px;
  transition: background 0.25s, transform 0.2s;
}

.article-cta__btn:hover {
  background: var(--grey-title);
  transform: translateY(-2px);
}

/* ----- Section "À lire aussi" — charte graphique comme blog / carte (bords arrondis, petites pots) ----- */
.article-related {
  padding: 48px 0 56px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
}

.article-related__title {
  margin-bottom: 28px;
}

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

/* Cartes type "petite pot" : conteneur avec bords arrondis + ombre (comme product-card / blog) */
.article-related .blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  padding-bottom: 20px;
}

.article-related .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Image : bords arrondis en haut uniquement pour épouser la pot */
.article-related .blog-card__img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
  box-shadow: none;
}

/* Contenu texte dans la pot avec padding */
.article-related .blog-card__category,
.article-related .blog-card__title,
.article-related .blog-card__excerpt,
.article-related .blog-card__link {
  padding-left: 16px;
  padding-right: 16px;
}

.article-related .blog-card__category {
  display: block;
  padding-top: 14px;
  margin-bottom: 6px;
}

.article-related .blog-card__title {
  margin-bottom: 6px;
}

.article-related .blog-card__excerpt {
  margin-bottom: 0;
}

.article-related .blog-card__link {
  display: inline-block;
  margin-top: 12px;
  margin-left: 16px;
}

.article-related__back {
  text-align: center;
  margin: 0;
}

.article-related__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-title);
  transition: color 0.2s;
}

.article-related__back-link:hover {
  color: var(--blue-secondary);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .article-hero {
    min-height: 35vh;
    max-height: 380px;
  }

  .article-related__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .article-hero {
    min-height: 28vh;
    max-height: 280px;
  }

  .container--article {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .article-breadcrumb {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .article-content__lead {
    font-size: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 20px;
    margin-top: 1.6em;
  }

  .article-figure {
    margin: 1.5em 0;
  }

  .article-blockquote {
    padding: 20px 22px;
    margin: 1.5em 0;
  }

  .article-blockquote p {
    font-size: 16px;
  }

  .article-cta {
    margin-top: 32px;
    padding: 22px 20px;
  }

  .article-related {
    padding: 36px 0 44px;
  }

  .article-related__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .article-related .blog-card__img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .article-hero {
    min-height: 24vh;
    max-height: 220px;
  }

  .article-meta {
    gap: 8px 16px;
  }

  .article-content__title {
    font-size: 22px;
  }

  .article-related .blog-card__category,
  .article-related .blog-card__title,
  .article-related .blog-card__excerpt,
  .article-related .blog-card__link {
    padding-left: 14px;
    padding-right: 14px;
  }

  .article-related .blog-card__link {
    margin-left: 14px;
  }
}
