/* ============================================================
   Blog — s'appuie sur les variables et les composants de style.css
   ============================================================ */

.bl-page { padding-top: 132px; padding-bottom: 40px; }
.bl-wrap { width: min(760px, calc(100% - 48px)); margin-inline: auto; }

/* --- fil de retour --- */
.bl-retour {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label); font-size: 0.86rem; color: var(--text-2);
  text-decoration: none; padding: 8px 15px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white-3);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.bl-retour svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease-out); }
.bl-retour:hover { color: var(--text); border-color: var(--line-strong); }
.bl-retour:hover svg { transform: translateX(-3px); }

/* --- en-tête d'article --- */
.bl-tete { margin-top: 30px; }
.bl-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-label); font-size: 0.8rem; color: var(--text-3);
  letter-spacing: 0.01em;
}
.bl-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); font-style: normal; }
.bl-tete h1 {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.05rem); line-height: 1.06; letter-spacing: -0.028em;
  text-wrap: balance;
}
.bl-chapo {
  margin-top: 20px; font-size: 1.09rem; line-height: 1.62; color: var(--text-2);
  text-wrap: pretty;
}

.bl-cover {
  margin-top: 38px; border-radius: var(--r-panel); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-card);
}
.bl-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }

/* --- corps --- */
.bl-corps { margin-top: 46px; }
.bl-corps > * + * { margin-top: 24px; }
.bl-corps p { font-size: 1.04rem; line-height: 1.72; color: var(--text-2); text-wrap: pretty; }
.bl-corps strong { color: var(--text); font-weight: 600; }
.bl-corps em { font-style: italic; }
.bl-corps h2 {
  margin-top: 52px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.72rem); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--text); text-wrap: balance;
}
.bl-corps h3 {
  margin-top: 38px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.012em; color: var(--text);
}
.bl-corps a { color: var(--accent); text-decoration: none; box-shadow: inset 0 -1px 0 rgba(255, 153, 28, 0.35); transition: box-shadow 0.3s var(--ease-out); }
.bl-corps a:hover { box-shadow: inset 0 -2px 0 var(--accent); }
/* style.css remet list-style:none sur tous les ul : ici on veut les puces */
.bl-corps ul { list-style: disc; }
.bl-corps ul, .bl-corps ol { padding-left: 22px; color: var(--text-2); }
.bl-corps li { font-size: 1.04rem; line-height: 1.7; margin-top: 9px; }
.bl-corps li::marker { color: var(--accent); }
.bl-corps figure { margin-top: 34px; }
.bl-corps figure img {
  display: block; width: 100%; height: auto; border-radius: var(--r-card);
  border: 1px solid var(--line);
}
.bl-corps figcaption {
  margin-top: 11px; font-family: var(--font-label); font-size: 0.82rem;
  color: var(--text-3); text-align: center;
}

/* --- tableau --- */
.bl-table { margin-top: 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.bl-table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.bl-table th {
  font-family: var(--font-label); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3);
  text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-strong);
  background: var(--white-3); white-space: nowrap;
}
.bl-table td {
  font-size: 0.97rem; line-height: 1.5; color: var(--text-2);
  padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.bl-table tr:last-child td { border-bottom: none; }
.bl-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

/* --- bio auteur --- */
.bl-bio {
  margin-top: 46px; padding: 18px 22px;
  border-left: 2px solid var(--accent); border-radius: 0 var(--r-card) var(--r-card) 0;
  background: var(--white-3);
}
.bl-bio p { font-size: 0.95rem; line-height: 1.65; color: var(--text-2); }

/* --- CTA de fin --- */
.bl-cta {
  margin-top: 68px; padding: 40px 38px;
  border: 1px solid var(--line-strong); border-radius: var(--r-panel);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(255, 153, 28, 0.13), transparent 62%),
    var(--surface);
  box-shadow: var(--sh-card); text-align: center;
}
.bl-cta h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 2.7vw, 1.72rem); line-height: 1.16; letter-spacing: -0.02em;
  text-wrap: balance;
}
.bl-cta p { margin-top: 13px; color: var(--text-2); font-size: 1rem; line-height: 1.6; }
.bl-cta .btn { margin-top: 26px; }

/* --- articles liés --- */
.bl-suite { margin-top: 92px; }
.bl-suite-titre {
  font-family: var(--font-display); font-weight: 600; font-size: 1.28rem;
  letter-spacing: -0.018em; margin-bottom: 22px;
}
.bl-suite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* --- carte d'article (index + articles liés) --- */
.bl-carte {
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  background: var(--surface);
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.bl-carte:hover { border-color: rgba(255, 153, 28, 0.4); transform: translateY(-4px); box-shadow: var(--sh-card); }
.bl-carte-img { overflow: hidden; }
.bl-carte-img img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto;
  transition: transform 0.6s var(--ease-out);
}
.bl-carte:hover .bl-carte-img img { transform: scale(1.045); }
.bl-carte-txt { padding: 17px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.bl-carte-date { font-family: var(--font-label); font-size: 0.75rem; color: var(--text-3); }
.bl-carte h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  line-height: 1.26; letter-spacing: -0.014em; color: var(--text); text-wrap: balance;
}
.bl-carte p { font-size: 0.88rem; line-height: 1.55; color: var(--text-2); }

/* --- index du blog --- */
.bl-hero { text-align: center; margin-bottom: 60px; }
.bl-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.bl-hero h1 em { font-style: italic; color: var(--accent); }
.bl-hero p { margin-top: 18px; color: var(--text-2); font-size: 1.06rem; line-height: 1.6; max-width: 620px; margin-inline: auto; }
.bl-liste { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* --- pages légales --- */
.bl-legal .bl-corps h2 { margin-top: 46px; font-size: clamp(1.24rem, 2.3vw, 1.46rem); }
.bl-legal .bl-corps p { font-size: 0.99rem; }

@media (max-width: 900px) {
  .bl-grid, .bl-suite-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .bl-page { padding-top: 108px; }
  .bl-grid, .bl-suite-grid { grid-template-columns: 1fr; }
  .bl-cta { padding: 32px 22px; }
  .bl-corps h2 { margin-top: 42px; }
}
