/* ============================================================
   Styles communs aux pages articles du centre de ressources.
   Extrait des blocs <style> inline, qui etaient dupliques dans :
     - acces-distant-machines-industrielles.php
     - connecter-machine-cloud-industriel.php
     - iiot-maintenance-predictive.php
     - performances-machines-donnees-terrain.php
     - reduire-couts-sav-telemaintenance.php
     - superviser-machines-international.php
   Modifier ici plutot que page par page.
   ============================================================ */

/* ══ Hero d'article ════════════════════════════════════════════ */

.article-hero {
  background: var(--navy);
  padding: 80px 0 64px;
}
.article-breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.article-breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.article-breadcrumb a:hover { color: var(--blue); }
.article-breadcrumb span { margin: 0 7px; }
.article-badge {
  display: inline-block;
  background: rgba(61,192,176,0.15); color: var(--blue);
  border: 1px solid rgba(61,192,176,0.3); border-radius: 100px;
  padding: 4px 14px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.article-h1 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 900; color: white; line-height: 1.2;
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.article-h1 .accent { color: var(--blue); }
.article-intro {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  line-height: 1.8; max-width: 680px; margin-bottom: 0;
}
.article-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.article-meta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.75rem; color: rgba(255,255,255,0.35); font-weight: 500;
}
.article-meta-item svg { flex-shrink: 0; }

/* ══ Sections éditoriales ══ */
.content-section { padding: 80px 0; }
.content-section.bg-alt { background: var(--bg-light); }
.content-section.bg-white { background: white; }

.section-eyebrow {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--blue); margin-bottom: 10px;
}
.content-h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900;
  color: var(--navy); line-height: 1.25; margin-bottom: 16px;
}
.content-lead {
  font-size: 0.97rem; color: var(--text-muted);
  line-height: 1.75; max-width: 720px; margin-bottom: 40px;
}

/* ══ Stats ══ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 20px; text-align: center;
}
.stat-val {
  font-size: 2.2rem; font-weight: 900; color: var(--navy);
  line-height: 1; margin-bottom: 6px;
}
.stat-val .unit { font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.stat-lbl { font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; font-weight: 500; }
.stat-source { font-size: 0.62rem; color: #9CA3AF; margin-top: 8px; }

/* ══ Définition ══ */
.definition-block {
  background: white; border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; margin-bottom: 32px;
}
.definition-block h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 14px;
}
.definition-block p {
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; margin: 0;
}

/* ══ Process steps ══ */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative;
}
.process-step {
  text-align: center; padding: 0 16px; position: relative;
}
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -8px; top: 20px;
  font-size: 1.2rem; color: var(--blue); font-weight: 700;
}
.process-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(61,192,176,0.1); border: 1.5px solid rgba(61,192,176,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.process-step h4 { font-size: 0.82rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.process-step p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ══ Comparatif ══ */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 0;
}
.compare-table thead th {
  background: var(--navy); color: white; font-size: 0.82rem;
  font-weight: 700; padding: 16px 20px; text-align: left;
}
.compare-table thead th.highlight { background: var(--blue); }
.compare-table tbody tr:nth-child(even) td { background: var(--bg-light); }
.compare-table tbody tr:nth-child(odd) td { background: white; }
.compare-table tbody td {
  padding: 14px 20px; font-size: 0.85rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.compare-table tbody td:first-child { font-weight: 700; color: var(--navy); }
.compare-table tbody td.highlight { color: var(--navy); font-weight: 600; }
.compare-badge-ok  { color: #10B981; font-weight: 700; }
.compare-badge-no  { color: #EF4444; font-weight: 700; }
.compare-badge-mid { color: var(--orange); font-weight: 700; }

/* ══ Bénéfices ══ */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card {
  border-radius: 18px; padding: 32px 26px; border: 1px solid var(--border);
}
.benefit-card.highlighted {
  background: var(--navy); border-color: var(--navy);
}
.benefit-card.highlighted h3 { color: white; }
.benefit-card.highlighted p { color: rgba(255,255,255,0.6); }
.benefit-card:not(.highlighted) { background: white; }
.benefit-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.benefit-card:not(.highlighted) .benefit-icon { background: rgba(61,192,176,0.1); }
.benefit-card.highlighted .benefit-icon { background: rgba(61,192,176,0.2); }
.benefit-card h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.benefit-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
.benefit-stat {
  display: inline-block; margin-top: 14px;
  font-size: 0.72rem; font-weight: 700; color: var(--blue);
  background: rgba(61,192,176,0.1); padding: 3px 10px; border-radius: 100px;
}

/* ══ En pratique ══ */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.practice-card {
  border-radius: 16px; background: var(--bg-light);
  border: 1px solid var(--border); padding: 28px 22px;
}
.practice-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue); color: white;
  font-size: 0.9rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.practice-card h3 { font-size: 0.95rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.practice-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
.practice-tag {
  display: inline-block; margin-top: 12px;
  font-size: 0.69rem; font-weight: 700; color: var(--blue);
  background: rgba(61,192,176,0.1); padding: 3px 10px; border-radius: 100px;
}

/* ══ CTA ══ */
.article-cta-section {
  background: var(--navy); padding: 80px 0;
}
.article-cta-inner {
  max-width: 580px; margin: 0 auto; text-align: center;
}
.article-cta-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 900;
  color: white; line-height: 1.25; margin-bottom: 14px;
}
.article-cta-sub {
  font-size: 0.93rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; margin-bottom: 36px;
}
@media (max-width: 768px) {
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .article-hero  { padding: 56px 0 44px; }
  .content-section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .stats-grid    { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.78rem; }
}
