/* ============================================================
   Jasmin d'Or — Styles Blog
   S'appuie sur css/style.css (variables, .container, .btn, header,
   footer). N'ajoute QUE ce qui est propre au blog.
   Charte : Cormorant Garamond (titres) · Jost (corps)
            bleu-nuit #0D2455 · or-jasmin #C69C55
   ============================================================ */

/* ---------- Hero de section blog ---------- */
.blog-hero {
  background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-marine));
  color: #fff;
  padding: 120px 0 80px;
  text-align: center;
}
.blog-hero .badge { margin-bottom: 1.2rem; }
.blog-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--or-clair);
  margin: 0 0 1rem;
}
.blog-hero__title em { font-style: italic; font-weight: 400; }
.blog-hero__sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,0.86);
}

/* ---------- Grille des articles ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 90px 0;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 2px;
  border-top: 3px solid var(--or-jasmin);
  box-shadow: 0 2px 30px rgba(13,36,85,0.06);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,36,85,0.10);
}
.post-card__body { padding: 34px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.7rem;
  color: var(--or-sombre);
  margin-bottom: 0.9rem;
}
.post-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--bleu-nuit);
  margin: 0 0 0.8rem;
}
.post-card__excerpt {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--texte-muted);
  margin: 0 0 1.5rem;
}
.post-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  color: var(--texte-faint);
}
.post-card__link {
  margin-top: 1.2rem;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bleu-pale);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.post-card__link:hover { color: var(--or-sombre); }
.post-card > a { text-decoration: none; color: inherit; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--texte-faint);
  padding: 28px 0 0;
}
.breadcrumb a { color: var(--bleu-pale); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
.article { padding: 20px 0 90px; }
.article__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.article__cat {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  color: var(--or-sombre);
}
.article__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  color: var(--bleu-nuit);
  margin: 1rem 0 1.2rem;
}
.article__meta {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  color: var(--texte-faint);
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.article__divider {
  width: 60px; height: 3px; background: var(--or-jasmin);
  margin: 28px auto 0;
}

/* Corps rédactionnel — largeur de lecture confortable */
.article__body {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--texte-corp);
}
.article__body > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--bleu-nuit);
  font-weight: 400;
}
.article__body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.95rem;
  line-height: 1.2;
  color: var(--bleu-nuit);
  margin: 2.6rem 0 1rem;
}
.article__body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--bleu-marine);
  margin: 2rem 0 0.7rem;
}
.article__body p { margin: 0 0 1.3rem; }
.article__body a { color: var(--bleu-pale); text-decoration: underline; text-underline-offset: 3px; }
.article__body a:hover { color: var(--or-sombre); }
.article__body ul, .article__body ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.article__body li { margin-bottom: 0.6rem; }
.article__body strong { font-weight: 600; color: var(--bleu-nuit); }

.article__body blockquote {
  border-left: 3px solid var(--or-jasmin);
  background: var(--or-pale);
  margin: 2rem 0;
  padding: 20px 26px;
  border-radius: 2px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--bleu-nuit);
}

/* Tableaux (ex. simulation de coût) */
.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.98rem;
}
.article__body th, .article__body td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gris-doux);
}
.article__body thead th {
  background: var(--bleu-nuit);
  color: var(--or-clair);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
}
.article__body tbody tr:nth-child(even) { background: var(--gris-doux); }
.article__body td strong { color: var(--or-sombre); }

/* Encadré information */
.note {
  background: var(--gris-doux);
  border-radius: 2px;
  border-top: 3px solid var(--or-jasmin);
  padding: 24px 28px;
  margin: 2rem 0;
}
.note h4 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--or-sombre);
  margin: 0 0 0.6rem;
}
.note p { margin: 0; font-size: 1rem; }

/* ---------- Bloc FAQ (accordéon natif) ---------- */
.faq-block { max-width: 760px; margin: 60px auto 0; }
.faq-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--bleu-nuit);
  text-align: center;
  margin-bottom: 1.6rem;
}
.faq-item {
  border-bottom: 1px solid var(--gris-doux);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--bleu-nuit);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Jost', sans-serif;
  font-size: 1.4rem;
  color: var(--or-jasmin);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 20px;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: var(--texte-muted);
}

/* ---------- CTA de fin d'article ---------- */
.article-cta {
  max-width: 760px;
  margin: 70px auto 0;
  background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-marine));
  border-radius: 2px;
  padding: 48px 44px;
  text-align: center;
  color: #fff;
}
.article-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--or-clair);
  margin: 0 0 0.8rem;
}
.article-cta p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: rgba(255,255,255,0.86);
  margin: 0 0 1.6rem;
}

/* ---------- Auteur ---------- */
.author {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--gris-doux);
  font-family: 'Jost', sans-serif;
}
.author__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--or-pale);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 1.4rem; color: var(--or-sombre);
  flex-shrink: 0;
}
.author__name { font-weight: 600; color: var(--bleu-nuit); }
.author__role { font-size: 0.86rem; color: var(--texte-faint); }

@media (max-width: 640px) {
  .blog-hero { padding: 100px 0 64px; }
  .blog-grid { padding: 60px 0; gap: 24px; }
  .article-cta { padding: 38px 26px; }
}
