/* ================================================================
   COMPOSANT — ARTICLE (avis, comparatifs, guides)
   À inclure sur toutes les pages de type "article de blog".
   S'appuie sur les variables de base.css.
================================================================ */

/* ============================================================
   EN-TÊTE D'ARTICLE
============================================================ */
.article-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 130px clamp(1.5rem, 6vw, 2rem) 2rem;
  text-align: left;
}
.article-breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.article-breadcrumb a { color: var(--muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--teal-dark); }

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-meta .author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============================================================
   CORPS DE L'ARTICLE — typographie
============================================================ */
.article-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 2rem) 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2.4rem 0 1rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.8rem 0 0.8rem;
}
.article-body p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--ink); }
.article-body img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.article-body blockquote {
  border-left: 4px solid var(--teal);
  background: var(--teal-light);
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ============================================================
   BOÎTE À OUTILS — logos dans les cartes
   Sélecteurs renforcés (.tools-gallery …) pour passer devant le CSS interne de la page.
   Les logos sont des bannières blanches 2:1 : le cadre prend leur ratio et l'image le remplit.
============================================================ */
.tools-gallery .tool-logo-container {
  background: #fff;
  padding: 0;
  height: auto;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}
.tools-gallery .tool-logo-container .tool-logo {
  margin: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================================================
   ENCADRÉ "L'ESSENTIEL EN 30 SECONDES"
============================================================ */
.article-summary-box {
    background-color: #F8F9FA;
    border-left: 5px solid var(--teal);
    padding: 25px;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.article-summary-box h3 {
    margin: 0 0 15px !important;
    font-size: 20px !important;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-summary-box ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.article-summary-box li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--ink-soft);
    line-height: 1.5;
    font-size: 16px;
}
.article-summary-box li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 16px;
}

/* ============================================================
   BOÎTE AUTEUR (fin d'article)
============================================================ */
.article-author-box img { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; }
.article-author-box h4 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 0.3rem; }
.article-author-box p { font-size: 0.9rem; color: var(--muted); margin: 0; }

@media (max-width: 700px) {
  .article-header, .article-body { padding-top: 100px; }
}
