/* =========================================================
   articles.css — CSS commun à toutes les pages /articles/
   ========================================================= */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f5f5f0;
  color: #1a1a2e;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: #0099cc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.header-inner a {
  display: block;
}
.header-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Breadcrumb ── */
.breadcrumb-wrap,
.breadcrumb {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 0;
}
.breadcrumb {
  font-size: 0.82rem;
  color: #5c5c72;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: #5c5c72; }

/* ── Article ── */
article {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Conteneur texte centré pour la lisibilité */
.article-body {
  max-width: 860px;
  margin: 0 auto;
}

.article-meta {
  font-size: 0.82rem;
  color: #5c5c72;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.tag {
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
  background: rgba(224,149,0,0.1);
  color: #b87800;
}

/* ── Timeline ── */
.timeline {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 89px;
  top: 28px;
  bottom: -8px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0,153,204,0.3), rgba(0,153,204,0.05));
}
.tl-item:last-child::before { display: none; }
.tl-year {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0099cc;
  padding: 0.8rem 0;
  text-align: right;
  padding-right: 1.2rem;
  line-height: 1.3;
}
.tl-dot {
  position: absolute;
  left: 82px;
  top: 1rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0099cc;
  border: 2px solid #f5f5f0;
}
.tl-content {
  padding: 0.7rem 0 1rem 1.5rem;
}
.tl-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.tl-content span {
  font-size: 0.85rem;
  color: #5c5c72;
  line-height: 1.5;
}

/* ── Price Banner ── */
.price-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.price-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.price-card .year {
  font-size: 0.75rem;
  color: #5c5c72;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-card .price {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.2rem 0;
}
.price-card .label {
  font-size: 0.75rem;
  color: #5c5c72;
}
.price-card.high .price { color: #d43030; }
.price-card.low .price { color: #00a854; }
.price-card.mid .price { color: #0099cc; }

h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  color: #1a1a2e;
}
.intro {
  font-size: 1.08rem;
  color: #3a3a52;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(0,153,204,0.15);
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.8rem;
  color: #1a1a2e;
}
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: #1a1a2e; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0.5rem 0 1rem 1.4rem; }
li { margin-bottom: 0.4rem; }

/* ── Encart chiffre ── */
.callout {
  background: linear-gradient(135deg, rgba(0,153,204,0.08), rgba(0,136,179,0.04));
  border-left: 4px solid #0099cc;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.callout strong { color: #0099cc; font-size: 1.5rem; display: block; margin-bottom: 0.2rem; }
.callout span { font-size: 0.9rem; color: #3a3a52; }

/* ── Note ── */
.note {
  background: #fff8e7;
  border: 1px solid #f0d080;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: #5a4a00;
  margin: 1.5rem 0;
}
.note.warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}
.note.warning::before {
  content: "⚠ ";
  font-weight: 700;
}

.note.info {
  background: #e7f6ff;
  border-color: #80caff;
  color: #005a8c;
}
.note.info::before {
  content: "💡 ";
  font-weight: 700;
}

/* ── CTA bas d'article ── */
.article-cta {
  background: linear-gradient(135deg, #1a1a2e, #2a2a4e);
  color: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  margin: 2.5rem 0 1rem;
  text-align: center;
}
.article-cta h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.15rem; }
.article-cta p { color: rgba(255,255,255,0.75); margin-bottom: 1.2rem; font-size: 0.92rem; }
.article-cta a {
  background: linear-gradient(135deg, #0099cc, #0088b3);
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
}

/* ── Articles liés ── */
.related { margin-top: 2.5rem; }
.related h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #5c5c72;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-list { display: flex; flex-direction: column; gap: 0.5rem; }
.related-list a {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: #1a1a2e;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: box-shadow 150ms;
}
.related-list a:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.1); text-decoration: none; }

/* ── Footer ── */
.site-footer {
  max-width: 1600px;
  margin: 2rem auto 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #5c5c72;
}
.site-footer a { color: #5c5c72; margin: 0 0.75rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-inner,
  .breadcrumb-wrap,
  .breadcrumb,
  article,
  .site-footer {
    padding-left: 6px;
    padding-right: 6px;
  }
  
  article {
    padding-top: 1.2rem;
    padding-bottom: 2rem;
  }
  
  .tl-item { grid-template-columns: 70px 1fr; }
  .tl-item::before { left: 69px; }
  .tl-dot { left: 62px; }
  .price-card { min-width: 110px; }
  
  .article-body {
    max-width: 100%;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  
  .intro {
    font-size: 1rem;
  }
  
  .callout {
    padding: 0.8rem 1rem;
  }
  .callout strong { font-size: 1.3rem; }
  
  .article-cta {
    padding: 1.4rem;
  }
}

/* ── Tableaux ── */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}
article table thead tr {
  background: #1a1a2e;
  color: #fff;
}
article table thead th,
article table thead .th-left,
article table thead .th-center {
  padding: 0.7rem 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: none;
  color: #fff;
}
article table .th-left { text-align: left; }
article table .th-center { text-align: center; }
article table tbody tr:nth-child(even) { background: #f5f5f0; }
article table tbody tr:hover { background: rgba(0,153,204,0.06); }
article table tbody td { padding: 0.6rem 0.8rem; border-bottom: 1px solid #e8e8e0; vertical-align: middle; }

/* Badges de niveau (pollution, qualité, etc.) */
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge-low { background: #dcfce7; color: #166534; }
.badge-mid { background: #fef3c7; color: #92400e; }
.badge-high { background: #fee2e2; color: #991b1b; }
