/* ========================================
   R&L DevLink — Conseils & Ressources
   Fichier séparé de styles.css : composants propres au blog uniquement.
   Réutilise les variables de couleur/typographie déjà définies dans styles.css
   (ce fichier est toujours chargé en même temps, jamais seul).
   ======================================== */

/* ---------- Fil d'Ariane ---------- */
.blog-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--white-faint);
  margin-bottom: 18px;
}
.blog-breadcrumb a { color: var(--white-dim); }
.blog-breadcrumb a:hover { color: var(--teal); }

/* ---------- Catégories (page hub) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .category-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

.category-tile {
  display: block;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--navy-card);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.category-tile:hover { border-color: var(--border-teal); background: var(--navy-card-hover); transform: translateY(-3px); }
.category-tile svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 1.6; margin-bottom: 16px; }
.category-tile h3 { font-size: 17px; margin-bottom: 8px; }
.category-tile p { font-size: 13.5px; color: var(--white-dim); line-height: 1.5; }

/* ---------- "Je ne sais pas par où commencer" ---------- */
.path-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.path-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.path-list a:first-child { border-top: none; }
.path-list a:hover { background: var(--navy-card); padding-left: 28px; }
.path-list a .arrow { color: var(--teal); font-family: var(--font-mono); flex-shrink: 0; }

/* ---------- Cartes de contenu (articles) ---------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .content-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .content-grid { grid-template-columns: 1fr; } }

.content-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--navy-card);
  padding: 24px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.content-card:hover { border-color: var(--border-teal); transform: translateY(-3px); }
.content-card .content-cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 10px;
}
.content-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.3; }
.content-card p { font-size: 14px; color: var(--white-dim); line-height: 1.55; flex-grow: 1; margin-bottom: 16px; }
.content-card .read-more { font-size: 13.5px; font-weight: 600; color: var(--teal); }

.content-card-empty {
  border: 1px dashed var(--border-teal);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-faint);
  font-size: 13.5px;
}

/* ---------- Carte "en vedette" — pour afficher un contenu unique sans grille à trous ---------- */
.featured-content {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border-teal);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-card), transparent);
  padding: 36px 40px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.featured-content:hover { transform: translateY(-3px); border-color: var(--teal); }
.featured-content-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-content-icon svg { width: 28px; height: 28px; stroke: var(--teal); fill: none; stroke-width: 1.6; }
.featured-content .content-cat { display: block; margin-bottom: 8px; }
.featured-content h3 { font-size: 20px; margin-bottom: 8px; line-height: 1.3; }
.featured-content p { font-size: 15px; color: var(--white-dim); line-height: 1.55; margin-bottom: 12px; }
.featured-content .read-more { font-size: 13.5px; font-weight: 600; color: var(--teal); }
@media (max-width: 600px) {
  .featured-content { flex-direction: column; align-items: flex-start; text-align: left; padding: 28px; }
}

/* ---------- FAQ : catégories + accordéons ---------- */
.faq-category { margin-bottom: 52px; }
.faq-category:last-child { margin-bottom: 0; }
.faq-category-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.faq-category-head svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.faq-category-head h2 { font-size: 21px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--navy-card);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--border-teal); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-teal);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary .faq-toggle { transform: rotate(45deg); }

.faq-item-body { padding: 0 20px 20px; color: var(--white-dim); font-size: 14.5px; line-height: 1.65; }
.faq-item-body a { color: var(--teal); }
.faq-item-body a:hover { text-decoration: underline; }

.faq-empty {
  border: 1px dashed var(--border-teal);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  color: var(--white-faint);
  font-size: 14px;
}

/* ---------- Recherche FAQ ---------- */
.faq-search { margin-bottom: 48px; }
.faq-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--navy-card);
  padding: 0 8px 0 20px;
  transition: border-color 0.2s ease;
}
.faq-search-input-wrap:focus-within { border-color: var(--teal); }
.faq-search-input-wrap svg { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--white-faint); fill: none; stroke-width: 1.6; }
.faq-search-input-wrap input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 12px;
}
.faq-search-input-wrap input::placeholder { color: var(--white-faint); }
.faq-search-clear {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--white-faint);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.faq-search-clear:hover { background: rgba(244, 247, 248, 0.08); color: var(--white); }
.faq-search-status { margin-top: 12px; font-size: 13.5px; color: var(--white-faint); padding-left: 8px; min-height: 18px; }
.faq-search-status.has-results { color: var(--teal); }

/* ---------- Article : en-tête, corps, points clés ---------- */
.article-hero { padding: 150px 0 40px; }
.article-hero .blog-breadcrumb { margin-bottom: 22px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.article-hero .article-meta { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--white-faint); }
.article-hero .article-meta .content-cat { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); font-size: 12px; }

.article-body { max-width: 720px; }
.article-body p { color: var(--white-dim); font-size: 16px; line-height: 1.75; margin-bottom: 20px; }
.article-body h2 { font-size: 22px; margin: 40px 0 16px; }
.article-placeholder {
  border: 1px dashed var(--border-teal);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--white-faint);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 20px;
}

.key-points {
  border: 1px solid var(--border-teal);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 32px 0;
  background: linear-gradient(180deg, var(--navy-card), transparent);
}
.key-points h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono); color: var(--teal); margin: 0 0 14px; }
.key-points ul { list-style: none; }
.key-points li { font-size: 15px; color: var(--white-dim); padding: 6px 0 6px 22px; position: relative; }
.key-points li::before { content: '→'; position: absolute; left: 0; color: var(--teal); font-family: var(--font-mono); }

.article-related { max-width: 720px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.article-related h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono); color: var(--white-faint); margin-bottom: 16px; }
.article-related ul { display: flex; flex-direction: column; gap: 10px; }
.article-related a { color: var(--teal); font-size: 15px; font-weight: 600; }
.article-related a:hover { text-decoration: underline; }
