/**
 * blog.css : Styles pour le blog et les articles
 * Sublime Gestion Site Vitrine
 */

/* === BLOG INDEX HERO === */
.blog-hero {
  padding: 160px 0 72px;
  background: var(--noir);
  color: var(--bg);
  text-align: center;
}

.blog-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.blog-hero__h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.blog-hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.55;
}

/* === FILTRES === */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 32px 24px 60px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.blog-filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 20px;
  font: 500 14px Inter, sans-serif;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: #FFFFFF;
}

.blog-filter-btn.is-active {
  background: #E75C1F;
  border-color: #E75C1F;
  color: #FFFFFF;
}

/* === BLOG GRID === */
.blog-section {
  padding: 64px 0 80px;
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

/* === BLOG CARD === */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(35,31,32,0.10);
}

.blog-card__img {
  height: 200px;
  background: var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card__img-icon {
  opacity: 1;
}

.blog-card__img-icon svg {
  width: 90px;
  height: 90px;
}

.blog-card__cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(231,92,31,0.15);
  color: var(--orange);
  border: 1px solid rgba(231,92,31,0.25);
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  row-gap: var(--space-1);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.blog-card__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-light);
  flex-shrink: 0;
}

.blog-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.blog-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.blog-card__cta svg {
  transition: transform 0.2s ease;
}

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

/* === BLOG CTA BANDEAU === */
.blog-cta-band {
  background: var(--noir);
  padding: 64px 0;
  text-align: center;
}

.blog-cta-band__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.blog-cta-band__h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.blog-cta-band__h2 em {
  font-family: 'Instrument Sans', serif;
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
}

.blog-cta-band__p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

/* ========================================
   ARTICLE PAGE
   ======================================== */

.article-hero {
  padding: 140px 0 56px;
  background: var(--noir);
  color: #fff;
}

.article-hero__inner {
  max-width: 760px;
}

.article-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  text-decoration: none;
}

.article-hero__cat:hover {
  color: #fff;
}

.article-hero__h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

.article-hero__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* === ARTICLE LAYOUT === */
.article-layout {
  padding: 64px 0 80px;
  background: var(--bg);
}

.article-layout__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout__inner {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }
}

/* === ARTICLE CONTENT === */
.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
}

@media (max-width: 600px) {
  .article-content {
    padding: 24px;
  }
}

.article-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.article-content li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.article-content strong {
  font-weight: 600;
  color: var(--ink);
}

.article-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--orange-hover);
}

.article-callout {
  background: rgba(231,92,31,0.06);
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.article-callout p {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}

/* === ARTICLE FOOTER CTA === */
.article-cta {
  background: var(--noir);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

/*
  Spécificité (0,2,0) : bat .article-content p/h3/a (0,1,1)
  qui sinon hérite color:ink et text-decoration:underline
  sur les enfants de .article-content
*/
.article-cta .article-cta__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.article-cta .article-cta__h3 {
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.article-cta .article-cta__p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.article-cta .btn--primary {
  background: var(--orange);
  color: #FFFFFF;
  text-decoration: none;
}

.article-cta .btn--primary:hover {
  background: var(--orange-hover);
  color: #FFFFFF;
}

.article-cta .article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.article-cta .btn--secondary-dark {
  text-decoration: none;
}

/* Lien dans le sous-titre du hero (blog auto-école) */
.blog-hero__link {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.blog-hero__link:hover {
  text-decoration-color: var(--orange);
}

/* Date sur les cartes et en-têtes d'article (blog générique) */
.blog-card__date {
  color: var(--muted-light);
}

/* Catégorie encore vide après filtrage */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.blog-empty strong {
  color: var(--ink);
}

.blog-empty a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === SIDEBAR === */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-cta {
  background: var(--noir);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.sidebar-cta__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.sidebar-cta__title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.sidebar-cta__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-bottom: 20px;
}

.sidebar-related {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.sidebar-related__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-related__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.sidebar-related__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-related__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

.sidebar-related__article-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  transition: color 0.2s;
}

.sidebar-related__item:hover .sidebar-related__article-title {
  color: var(--orange);
}

/* === CARD IMAGE : DÉGRADÉS PAR CATÉGORIE === */

.blog-card__img--gestion {
  background: linear-gradient(135deg, #C44B12 0%, #E75C1F 100%);
}

.blog-card__img--digital {
  background: linear-gradient(135deg, #1E3A5F 0%, #2D6BE4 100%);
}

.blog-card__img--pedagogie {
  background: linear-gradient(135deg, #065F46 0%, #10B981 100%);
}

.blog-card__img--reglementation {
  background: linear-gradient(135deg, #3B1F6B 0%, #7C3AED 100%);
}

/* Badge blanc sur tous les fonds colorés */
.blog-card__img--gestion .blog-card__cat-badge,
.blog-card__img--digital .blog-card__cat-badge,
.blog-card__img--pedagogie .blog-card__cat-badge,
.blog-card__img--reglementation .blog-card__cat-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   CORRECTIONS : CLASSES HTML RÉELLES
   (blog/index.html et blog/[articles].html)
   ======================================== */

/* === BLOG INDEX : HERO === */

/* HTML utilise .blog-hero__sub (pas .blog-hero__subtitle) */
.blog-hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.55;
}

/* === BLOG INDEX : GRID SECTION === */

/* HTML utilise .blog-grid-section (pas .blog-section) */
.blog-grid-section {
  padding: 64px 0 80px;
  background: var(--bg);
}

/* === BLOG INDEX : CARD LINK === */

/* HTML : <article class="blog-card"><a class="blog-card__link">...</a></article> */
.blog-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}

/* ========================================
   ARTICLE BLOG GLOBAL
   ======================================== */

/* Wrapper principal : compense la navbar fixe */
.blog-article {
  background: var(--bg);
  padding-top: 120px;
  padding-bottom: 80px;
}

/* Layout 2 colonnes : contenu + sidebar */
.blog-article__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

  .blog-article__sidebar {
    display: none;
  }
}

/* Colonne contenu : carte blanche */
.blog-article__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  min-width: 0;
}

@media (max-width: 600px) {
  .blog-article__content {
    padding: 24px;
  }
}

/* En-tête article */
.blog-article__header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  row-gap: var(--space-1);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.blog-article__h1 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.blog-article__intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* Corps de l'article : typographie */
.blog-article__body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.blog-article__body h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.blog-article__body h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 28px 0 12px;
}

.blog-article__body ul,
.blog-article__body ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.blog-article__body li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.blog-article__body strong {
  font-weight: 600;
  color: var(--ink);
}

.blog-article__body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article__body a:hover {
  color: var(--orange-hover);
}

/* Footer CTA dans l'article */
.blog-article__footer-cta {
  background: var(--noir);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.blog-article__footer-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.blog-article__footer-cta-text {
  font-size: 16px;
  color: rgba(255,255,255,0.80);
  margin: 0;
}

/* Deux actions en fin d'article : échanger, ou voir la démo de la famille */
.blog-article__footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

/* Lien retour au blog */
.blog-article__back {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.blog-article__back-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.blog-article__back-link:hover {
  color: var(--orange);
}

/* Sidebar sticky */
.blog-article__sidebar {
  position: sticky;
  top: calc(var(--nav-height, 72px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar CTA card */
.blog-sidebar-cta {
  background: var(--noir);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-sidebar-cta__icon {
  color: var(--orange);
  margin-bottom: 8px;
}

.blog-sidebar-cta__title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.blog-sidebar-cta__text {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* === ACCENT DU TITRE DE BLOG === */

.blog-hero__h1 em {
  font-family: 'Instrument Sans', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: -0.02em;
}

/* === FILTRES SUR FOND CLAIR (blog auto-école : filtres sous le hero) === */

.blog-filters--light .blog-filter-btn {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--ink-2);
}

.blog-filters--light .blog-filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.blog-filters--light .blog-filter-btn.is-active,
.blog-filters--light .blog-filter-btn--active {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}
