/* ═══════════════════════════════════════════════════
   article.css — Albexia
   Partagé par 3 templates :
   · article-fond.html      (articles éditoriaux)
   · analyse-technique.html (fiches outils)
   · guide-alternatif.css   (guides alternatives)
   ═══════════════════════════════════════════════════ */

/* ─── NAV ─── */
nav a.nav-link { text-decoration: none; display: inline-block; }
nav a.nav-cta  { text-decoration: none; }

/* ─── LAYOUT COMMUN ─── */
.article-main {
  min-height: calc(100vh - 120px);
  padding: 56px 24px 80px;
}
.article-container {
  max-width: 740px;
  margin: 0 auto;
}

/* ─── BREADCRUMB ─── */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s;
}
.article-breadcrumb a:hover { color: var(--text); }
.article-breadcrumb .sep { color: var(--text-dim); opacity: .5; }
.article-breadcrumb .current { color: var(--text-muted); }

/* ─── HEADER COMMUN ─── */
.article-header { margin-bottom: 40px; }

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-cat {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius, 4px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
/* Variantes — rendues neutres */
.article-cat.fond,
.article-cat.analyse,
.article-cat.guide { background: var(--bg2); color: var(--text-muted); border: 1px solid var(--border); }

.article-read-time {
  font-size: 12px;
  color: var(--text-dim);
}
.article-date {
  font-size: 12px;
  color: var(--text-dim);
}
.article-meta-top .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: .4;
}

.article-title {
  font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.article-intro {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  border-left: 2px solid var(--border);
  padding-left: 18px;
  margin: 0 0 36px;
}

/* ─── CORPS ARTICLE (fond éditorial) ─── */
.article-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}
.article-body h2 {
  font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.2px;
}
.article-body h3 {
  font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}
.article-body p  { margin-bottom: 18px; }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body em { color: var(--text); font-style: italic; }
.article-body ul,
.article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.article-body blockquote {
  background: var(--bg2);
  border-left: 3px solid var(--text-muted);
  padding: 14px 18px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm, 3px) var(--radius-sm, 3px) 0;
  font-size: 14px;
}
.article-body blockquote p { margin: 0; }

/* Lien contextuel dans le corps */
.article-body a.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-hover);
  text-underline-offset: 3px;
  transition: color .15s;
}
.article-body a.inline-link:hover { color: var(--text-muted); }

/* ─── BLOCS SPÉCIAUX (fond + analyse) ─── */
.article-tip {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 24px 0;
}
.article-tip::before { content: '💡 '; }

.article-warn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 24px 0;
}
.article-warn::before { content: '⚠️ '; }

.article-body pre,
.article-code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  padding: 16px 18px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--text);
  overflow-x: auto;
  margin: 24px 0;
  line-height: 1.7;
}

/* CTA fin d'article (éditorial) */
.article-cta {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 24px;
  margin: 32px 0 0;
  border-radius: var(--radius-sm, 3px);
  text-align: center;
}
.article-cta p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text);
}
.article-cta .btn-cta-primary { display: inline-block; }

/* ─── CONCLUSION (articles de fond) ─── */
.article-conclusion {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  padding: 20px 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 36px 0 28px;
}

/* ─── IMAGES ─── */
.article-img {
  width: 100%;
  border-radius: var(--radius-sm, 3px);
  margin: 28px 0;
  display: block;
}
.article-img-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: -16px;
  margin-bottom: 24px;
}
figure.article-image,
.article-image {
  text-align: center;
  margin: 32px 0;
}
figure.article-image img,
.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm, 3px);
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg2);
}
figure.article-image figcaption,
.article-image figcaption {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  font-style: italic;
  line-height: 1.4;
}

/* Évite un cadre vide disgracieux si une image placeholder
   n'a pas encore été remplacée par le vrai fichier */
.article-image img:not([src]),
.article-image img[src=""] {
  display: none;
}

/* ════════════════════════════════════════
   ANALYSE TECHNIQUE — classes spécifiques
   ════════════════════════════════════════ */

/* Fiche technique */
.analyse-fiche {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px);
  padding: 20px 24px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px 24px;
}
.analyse-fiche-header {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.analyse-fiche-header img {
  border-radius: var(--radius-sm, 3px);
}
.analyse-fiche-item .label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
.analyse-fiche-item .value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.analyse-fiche-item .value.green,
.analyse-fiche-item .value.red,
.analyse-fiche-item .value.purple { color: var(--text); }

/* Sections forces / limites */
.analyse-section-title {
  font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif);
  font-size: 16px;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.analyse-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.analyse-points li {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  padding: 14px 18px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: border-color .2s;
}
.analyse-points li:hover { border-color: var(--border-hover); }
.analyse-points li strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
.analyse-points.forces li { border-left: 3px solid var(--text-muted); }
.analyse-points.limites li { border-left: 3px solid var(--text-dim); }

/* Pour qui */
.analyse-profils {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 32px;
}
.analyse-profil {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  padding: 14px 16px;
  font-size: 13px;
}
.analyse-profil .profil-nom {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.analyse-profil .profil-detail {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.profil-oui,
.profil-non { color: var(--text-muted); }

/* Tableau tarifs */
.analyse-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius, 4px);
  border: 1px solid var(--border);
  margin: 16px 0 32px;
}
.analyse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.analyse-table th {
  background: var(--bg2);
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.analyse-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}
.analyse-table tr:last-child td { border-bottom: none; }
.analyse-table tr:hover td { background: rgba(255,255,255,.02); }
.analyse-table .plan-name { font-weight: 600; color: var(--text); }
.analyse-table .gratuit,
.analyse-table .payant { color: var(--text-muted); font-weight: 500; }

/* Verdict */
.analyse-verdict {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px);
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.analyse-verdict-score {
  flex-shrink: 0;
  text-align: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  padding: 12px 16px;
  min-width: 72px;
}
.analyse-verdict-score .score-num {
  font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.analyse-verdict-score .score-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 4px;
}
.analyse-verdict-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}
.analyse-verdict-text strong { color: var(--text); font-weight: 600; }

/* CTA maillage analyse */
.analyse-cta {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px);
  padding: 24px;
  margin: 36px 0;
}
.analyse-cta p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 300;
}
.analyse-cta-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-cta-primary {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm, 3px);
  text-decoration: none;
  transition: opacity .2s;
}
.btn-cta-primary:hover { opacity: .85; }
.btn-cta-secondary {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm, 3px);
  text-decoration: none;
  transition: all .15s;
}
.btn-cta-secondary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.25);
}

/* ─── TAGS ─── */
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.article-tag:hover { color: var(--text-muted); border-color: var(--border-hover); }

/* ─── NAVIGATION BAS DE PAGE ─── */
.article-nav-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.article-nav-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm, 3px);
  color: var(--text-muted);
  transition: all .2s;
}
.article-nav-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ─── TABLEAUX DANS LE CORPS ─── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--bg2);
  border-radius: var(--radius-sm, 3px);
  overflow: hidden;
}
.article-body th,
.article-body td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-body th {
  background: var(--bg3);
  color: var(--text);
  font-weight: 600;
  font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.article-body td {
  color: var(--text-muted);
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:hover td { background: rgba(255, 255, 255, .02); }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .article-main    { padding: 32px 16px 56px; }
  .article-title   { font-size: 21px; }
  .article-intro   { font-size: 15px; }
  .article-body    { font-size: 15px; }
  .article-body h2 { font-size: 18px; margin: 32px 0 12px; }
  .article-body table { font-size: 13px; }
  .article-body th,
  .article-body td { padding: 10px 12px; }
  .article-image { margin: 24px 0; }
  .analyse-verdict { flex-direction: column; }
  .analyse-profils { grid-template-columns: 1fr 1fr; }
  .analyse-cta-links { flex-direction: column; }
}
@media (max-width: 380px) {
  .analyse-profils { grid-template-columns: 1fr; }
}
