/**
 * Feuille de style commune à tous les articles du blog (ImprimeZen3D).
 * Réduit le temps de chargement et améliore le référencement.
 */
:root {
  --iz-maxw: 1100px;
  --iz-pad: clamp(12px, 2vw, 20px);
  --iz-muted: #6b7280;
  --iz-accent: #0ea5e9;
  --iz-bg: #ffffff;
  --iz-border: #e5e7eb;
}

.article-page {
  background: var(--iz-bg);
}

/* Scopé à main pour ne pas écraser .container du header (navbar) et du footer */
.article-page main .container {
  max-width: var(--iz-maxw);
  margin: 0 auto;
  padding: 0 var(--iz-pad);
}

/* HERO */
.article-page .hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  padding: clamp(16px, 3vw, 28px) 0 clamp(8px, 2vw, 16px);
}

@media (max-width: 900px) {
  .article-page .hero {
    grid-template-columns: 1fr;
  }
}

.article-page .eyebrow {
  color: var(--iz-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.article-page main h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.article-page .lead {
  color: var(--iz-muted);
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 0;
}

.article-page .tagrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.article-page .tag {
  font-size: 13px;
  color: #0f172a;
  border: 1px solid var(--iz-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
}

.article-page .hero-figure {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--iz-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.article-page .hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* META */
.article-page .meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--iz-muted);
  font-size: 14px;
  padding: 6px 0 20px;
  border-bottom: 1px solid var(--iz-border);
}

/* BODY */
.article-page .body {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 3vw, 36px) 0;
}

@media (max-width: 1024px) {
  .article-page .body {
    grid-template-columns: 1fr;
  }
}

.article-page .content {
  min-width: 0;
}

.article-page main h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 28px 0 10px;
}

.article-page main h3 {
  font-size: clamp(18px, 2.2vw, 20px);
  margin: 20px 0 8px;
}

.article-page main p {
  line-height: 1.7;
  margin: 12px 0;
}

.article-page main ul,
.article-page main ol {
  margin: 10px 0 10px 18px;
}

.article-page main li {
  margin: 6px 0;
}

.article-page main a {
  color: var(--iz-accent);
  text-decoration: none;
}

.article-page main a:hover {
  text-decoration: underline;
}

.article-page main figure {
  margin: 18px 0;
  border: 1px solid var(--iz-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.article-page main figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article-page main figure figcaption {
  font-size: 14px;
  color: var(--iz-muted);
  padding: 8px 12px;
  border-top: 1px solid var(--iz-border);
  background: #fcfcfc;
}

.article-page .callout {
  border-left: 4px solid var(--iz-accent);
  background: #f0f9ff;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 16px 0;
}

.article-page main blockquote {
  border-left: 4px solid var(--iz-border);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--iz-muted);
  font-style: italic;
}

.article-page .kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

@media (max-width: 700px) {
  .article-page .kpi {
    grid-template-columns: 1fr;
  }
}

.article-page .kpi .card {
  border: 1px solid var(--iz-border);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.article-page .kpi .card .label {
  color: var(--iz-muted);
  font-size: 14px;
}

.article-page .kpi .card .value {
  font-weight: 700;
  font-size: 22px;
}

.article-page .cta {
  margin: 26px 0;
  padding: 16px;
  border: 1px solid var(--iz-border);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background: #fff;
}

.article-page .cta .btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--iz-accent);
  color: #fff;
  background: var(--iz-accent);
  text-decoration: none;
  font-weight: 600;
}

.article-page .cta .btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.article-page .cta .btn-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--iz-border);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.article-page .cta .btn-secondary:hover {
  background: #f8fafc;
  text-decoration: none;
}

.article-page .cta .cta-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Tableaux (contenu article) */
.article-page .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  border: 1px solid var(--iz-border);
  border-radius: 12px;
  overflow: hidden;
}

.article-page .content table th,
.article-page .content table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--iz-border);
}

.article-page .content table thead th {
  background: #f8fafc;
  font-weight: 600;
}

.article-page .content table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

/* ASIDE */
.article-page .aside {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.article-page .aside .box {
  border: 1px solid var(--iz-border);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.article-page .aside .box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.article-page .aside .box + .box {
  margin-top: 10px;
}

.article-page .aside ul {
  margin: 8px 0 0 16px;
  padding: 0;
}

.article-page .aside li {
  margin: 6px 0;
}

.article-page .aside a {
  color: var(--iz-accent);
}

/* FAQ */
.article-page .faq details {
  border: 1px solid var(--iz-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
  background: #fff;
}

.article-page .faq summary {
  cursor: pointer;
  font-weight: 600;
}

.article-page .faq p {
  margin: 8px 0 0;
}

.article-page .small {
  font-size: 14px;
  color: var(--iz-muted);
}

.article-page .chart-wrap {
  border: 1px solid var(--iz-border);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  margin: 18px 0;
}

.article-page .chart-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Breadcrumb */
.article-page .breadcrumb-nav {
  font-size: 14px;
  margin: 12px 0;
  color: var(--iz-muted);
}

.article-page .breadcrumb-nav a {
  color: var(--iz-accent);
}

.article-page .breadcrumb-nav [aria-current="page"] {
  color: inherit;
  font-weight: 600;
}

/* ========== Compatibilité articles non migrés (structure ancienne) ========== */
.article-page main {
  max-width: var(--iz-maxw);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--iz-pad);
}

.article-page .intro-section,
.article-page .article-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .article-page .intro-section,
  .article-page .article-header {
    grid-template-columns: 1fr;
  }
}

.article-page .intro-text,
.article-page .header-text {
  min-width: 0;
}

.article-page .image-container,
.article-page .header-image {
  margin: 0;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--iz-border);
  background: #f8fafc;
}
.article-page .image-container img,
.article-page .header-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-page .image-container figcaption,
.article-page .header-image figcaption {
  font-size: 14px;
  color: var(--iz-muted);
  padding: 8px 12px;
  font-style: italic;
}

.article-page #introduction-section {
  background: #f0f9ff;
  border-left: 4px solid var(--iz-accent);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.article-page .content-card,
.article-page .material-card,
.article-page .tech-card,
.article-page .application-card,
.article-page .comparison-card {
  border: 1px solid var(--iz-border);
  border-left: 4px solid var(--iz-accent);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  background: #fff;
}

.article-page .tech-grid,
.article-page .application-grid,
.article-page .comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.article-page .infobox {
  border-left: 4px solid var(--iz-accent);
  background: #f0f9ff;
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
}
.article-page .infobox-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--iz-accent);
}

.article-page .cta-container {
  text-align: center;
  margin: 1.5rem 0;
}
.article-page .cta-button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--iz-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.article-page .cta-button:hover {
  opacity: 0.9;
  text-decoration: none;
}
.article-page .cta-button.secondary {
  background: #fff;
  border: 1px solid var(--iz-border);
  color: #0f172a;
}

.article-page .pros-cons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.article-page .pros {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  border-radius: 8px;
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
}
.article-page .cons {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  border-radius: 8px;
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}

.article-page .faq-section {
  margin-top: 2rem;
}
.article-page .faq-item {
  margin-bottom: 0.75rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--iz-border);
  background: #fff;
}
.article-page .faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-page .faq-question:hover {
  background: #f0f9ff;
}
.article-page .faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--iz-accent);
}
.article-page .faq-question.active::after {
  content: "−";
}
.article-page .faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: #fff;
}
.article-page .faq-question.active + .faq-answer {
  padding: 1rem 1.25rem 1.25rem;
  max-height: 800px;
}
.article-page .faq-answer p {
  margin: 0 0 0.5rem;
}
.article-page .faq-answer ul {
  margin: 0.5rem 0 0 1.25rem;
}

.article-page .breadcrumb {
  font-size: 14px;
  margin: 12px 0;
  color: var(--iz-muted);
}
.article-page .breadcrumb a {
  color: var(--iz-accent);
  text-decoration: none;
}
.article-page .breadcrumb a:hover {
  text-decoration: underline;
}
.article-page .breadcrumb span {
  margin: 0 6px;
  color: var(--iz-border);
}

.article-page main section {
  margin-bottom: 2rem;
}
.article-page .date {
  font-size: 14px;
  color: var(--iz-muted);
  margin: 0 0 1rem;
}

/* Grille / KPIs (articles type impression-3d-prototype) */
.article-page .grid {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}
.article-page .grid-2 {
  grid-template-columns: 1.15fr 0.85fr;
}
@media (max-width: 980px) {
  .article-page .grid-2 {
    grid-template-columns: 1fr;
  }
}
.article-page .kpis {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-page .kpis .k {
  flex: 1 1 170px;
  border: 1px solid var(--iz-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.article-page .card {
  border: 1px solid var(--iz-border);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}
.article-page .card.soft {
  background: #f8fafc;
}
.article-page .lead {
  font-size: 1.08rem;
  color: var(--iz-muted);
}
.article-page .muted {
  color: var(--iz-muted);
}
.article-page .table-wrap {
  overflow: auto;
  margin: 1rem 0;
}
.article-page .table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--iz-border);
  border-radius: 12px;
  overflow: hidden;
}
.article-page .table th,
.article-page .table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--iz-border);
}
.article-page .table thead th {
  background: #f8fafc;
  font-weight: 600;
}
.article-page .table tbody tr:nth-child(odd) {
  background: #fcfcfc;
}
.article-page .notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
  color: #166534;
}

/* Hero alternatif (hero-grid, kicker, hero-img) */
.article-page .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 960px) {
  .article-page .hero-grid {
    grid-template-columns: 1fr;
  }
}
.article-page .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--iz-accent);
  background: #f0f9ff;
  border: 1px solid var(--iz-border);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.article-page .hero-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--iz-border);
  background: #fff;
}
.article-page .hero-img img {
  display: block;
  width: 100%;
  height: auto;
}
.article-page .section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.article-page .h-section {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0.25rem 0 1rem;
}
.article-page .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 960px) {
  .article-page .grid-3 {
    grid-template-columns: 1fr;
  }
}
.article-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--iz-accent);
  text-decoration: none;
}
.article-page .btn-primary:hover {
  opacity: 0.9;
  text-decoration: none;
}
.article-page .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.25rem 0;
  border-radius: 12px;
  border: 1px solid var(--iz-border);
}
.article-page .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.article-page .article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
