/* Blog Boostinghost — même habillage que les pages légales (bh-legal.css) :
   fond crème à halos verts, cartes blanches, DM Sans. Feuille autonome :
   les pages du blog ne chargent ni le CSS ni le JS de l'application.
   Gris de texte : jamais plus clair que #5E6B63. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body.bl {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #F6F3EC; color: #14201B; min-height: 100vh; overflow-x: hidden; line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bl-skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: #013B30; color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.bl-skip:focus { top: 10px; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid #1A7A5E; outline-offset: 2px; }

.bl-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(560px 420px at 8% 6%, rgba(26,122,94,.14), transparent 70%),
    radial-gradient(620px 460px at 96% 18%, rgba(196,170,120,.20), transparent 70%),
    radial-gradient(520px 380px at 55% 105%, rgba(26,122,94,.10), transparent 70%); }

/* ── Barre du haut ── */
.bl-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 16px; background: rgba(246,243,236,.82);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(20,32,27,.06); }
.bl-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #14201B; min-width: 0; }
.bl-logo img { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.bl-logo span { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.bl-nav { display: flex; align-items: center; gap: 4px; }
.bl-nav a { font-size: 14px; font-weight: 500; color: #3A4640; text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.bl-nav a:hover { color: #15624B; background: rgba(1,59,48,.07); }
.bl-nav a.on { color: #15624B; font-weight: 600; }
.bl-nav a.pill { background: #013B30; color: #fff; font-weight: 600; padding: 8px 14px; }
.bl-nav a.pill:hover { background: #15624B; color: #fff; }
.bl-nav a:not(.pill):not(.bl-login) { display: none; }

/* ── Mise en page ── */
.bl-wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 28px 16px 32px; }
.bl-hero { max-width: 720px; margin-bottom: 22px; }
.bl-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,.75); color: #15624B;
  border: 1px solid rgba(20,32,27,.1); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.bl-hero h1 { font-size: clamp(30px, 7.5vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 12px; }
.bl-hero p { font-size: 16px; line-height: 1.6; color: #5E6B63; margin: 0; }
.bl-h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 34px 0 14px; }

/* ── Filtres ── */
.bl-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.bl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.bl-chips::-webkit-scrollbar { display: none; }
.bl-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #2C3A33; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(20,32,27,.1); white-space: nowrap; }
.bl-chip span { font-size: 12px; font-weight: 600; color: #5E6B63; }
.bl-chip:hover { border-color: #1A7A5E; }
.bl-chip.on { background: #013B30; border-color: #013B30; color: #fff; }
.bl-chip.on span { color: rgba(255,255,255,.85); }
.bl-search { position: relative; display: flex; align-items: center; }
.bl-search svg { position: absolute; left: 14px; color: #5E6B63; pointer-events: none; }
.bl-search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border-radius: 14px; border: 1px solid rgba(20,32,27,.12);
  background: rgba(255,255,255,.9); font: inherit; font-size: 16px; color: #14201B; -webkit-appearance: none; appearance: none; }
.bl-search input::placeholder { color: #5E6B63; }
.bl-search input:focus { border-color: #1A7A5E; outline: none; box-shadow: 0 0 0 3px rgba(26,122,94,.15); }

/* ── Cartes d'article ── */
.bl-grid-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bl-cardx { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(20,32,27,.07); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,32,27,.04), 0 8px 24px rgba(20,32,27,.06); transition: transform .2s, box-shadow .2s; position: relative; }
.bl-cardx:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20,32,27,.04), 0 14px 34px rgba(20,32,27,.10); }
.bl-cardx-img { display: block; aspect-ratio: 16 / 9; background: #0E3B2E; }
.bl-cardx-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-cardx-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bl-cat { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #15624B;
  background: rgba(26,122,94,.09); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
a.bl-cat:hover { background: rgba(26,122,94,.16); }
.bl-cardx-t { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.bl-cardx-t a { color: #14201B; text-decoration: none; }
.bl-cardx-t a::after { content: ''; position: absolute; inset: 0; }
.bl-cardx-t a:hover { color: #15624B; }
.bl-cardx-d { margin: 0; font-size: 14.5px; line-height: 1.55; color: #3A4640;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-cardx-m { margin: auto 0 0; padding-top: 4px; font-size: 13px; color: #5E6B63; }
.bl-featured { margin-bottom: 8px; }
.bl-feat .bl-cardx-t { font-size: 22px; }
.bl-empty { padding: 30px 20px; text-align: center; color: #3A4640; background: rgba(255,255,255,.6); border-radius: 20px; }
.bl-empty a { color: #15624B; font-weight: 600; }

/* ── Article ── */
.bl-crumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; color: #5E6B63; }
.bl-crumb li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.bl-crumb li + li::before { content: '›'; color: #5E6B63; margin-right: 2px; }
.bl-crumb a { color: #3A4640; text-decoration: none; }
.bl-crumb a:hover { color: #15624B; text-decoration: underline; }
.bl-head { max-width: 780px; margin-bottom: 22px; }
.bl-head h1 { font-size: clamp(28px, 7vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin: 14px 0 12px; overflow-wrap: break-word; }
.bl-lede { font-size: 17px; line-height: 1.6; color: #3A4640; margin: 0 0 14px; }
.bl-meta { font-size: 14px; color: #5E6B63; margin: 0; }
.bl-nw { white-space: nowrap; }
.bl-cover { margin: 0 0 26px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #0E3B2E;
  box-shadow: 0 1px 2px rgba(20,32,27,.04), 0 12px 36px rgba(20,32,27,.10); }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; }

.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.bl-toc { display: none; }
.bl-toc-m { margin-bottom: 16px; background: rgba(255,255,255,.7); border: 1px solid rgba(20,32,27,.08); border-radius: 18px; }
.bl-toc-m summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.bl-toc-m summary::-webkit-details-marker { display: none; }
.bl-toc-m summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid #15624B; border-bottom: 2px solid #15624B; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.bl-toc-m[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.bl-toc-m ol, .bl-toc ol { list-style: none; margin: 0; padding: 0 10px 12px; counter-reset: toc; }
.bl-toc-m a, .bl-toc a { display: block; padding: 7px 8px; border-radius: 9px; font-size: 14px; line-height: 1.35; color: #3A4640; text-decoration: none; }
.bl-toc-m a:hover, .bl-toc a:hover, .bl-toc a.on { background: rgba(1,59,48,.07); color: #15624B; }

.bl-body { background: #fff; border: 1px solid rgba(20,32,27,.06); border-radius: 22px; padding: 6px 20px 22px;
  box-shadow: 0 1px 2px rgba(20,32,27,.04), 0 12px 36px rgba(20,32,27,.08); min-width: 0; }
.bl-body > * { max-width: 720px; }
.bl-intro { padding-top: 16px; }
.bl-sec { padding: 22px 0 4px; border-top: 1px solid rgba(20,32,27,.07); }
.bl-intro + .bl-sec, .bl-body > .bl-sec:first-child { border-top: 0; }
.bl-body h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 12px; color: #14201B; scroll-margin-top: 84px; }
.bl-body h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; margin: 22px 0 8px; scroll-margin-top: 84px; }
.bl-body h4 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; }
.bl-body p, .bl-body li { font-size: 16.5px; line-height: 1.72; color: #2C3A33; }
.bl-body p { margin: 0 0 14px; }
.bl-body ul, .bl-body ol { margin: 0 0 16px; padding-left: 22px; }
.bl-body li { margin-bottom: 6px; }
.bl-body li > ul, .bl-body li > ol { margin: 6px 0 0; }
.bl-body li::marker { color: #1A7A5E; font-weight: 600; }
.bl-body strong { color: #14201B; font-weight: 600; }
.bl-body a { color: #15624B; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(21,98,75,.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.bl-body a:hover { text-decoration-color: #15624B; }
.bl-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(20,32,27,.06); padding: 1px 5px; border-radius: 6px; }
.bl-body pre { overflow-x: auto; background: #14201B; color: #F6F3EC; padding: 14px 16px; border-radius: 14px; font-size: 14px; }
.bl-body pre code { background: none; padding: 0; color: inherit; }
.bl-body blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid #1A7A5E; background: rgba(26,122,94,.06); border-radius: 0 14px 14px 0; }
.bl-body blockquote p { color: #2C3A33; margin-bottom: 8px; }
.bl-body blockquote p:last-child { margin-bottom: 0; }
.bl-body hr { border: 0; border-top: 1px solid rgba(20,32,27,.1); margin: 22px 0; }
.bl-body img { border-radius: 14px; margin: 8px 0 16px; }
.bl-table { overflow-x: auto; margin: 4px 0 18px; border: 1px solid rgba(20,32,27,.09); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.bl-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.bl-body th, .bl-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(20,32,27,.08); vertical-align: top; line-height: 1.5; color: #2C3A33; }
.bl-body thead th { background: #F6F3EC; color: #14201B; font-weight: 600; font-size: 13.5px; }
.bl-body tbody tr:last-child td { border-bottom: 0; }

/* Réponse courte */
.bl-sec.bl-answer { margin: 18px 0 8px; padding: 18px 18px 6px; border: 1px solid rgba(26,122,94,.22); border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,122,94,.08), rgba(26,122,94,.04)); }
.bl-sec.bl-answer + .bl-sec { border-top: 0; }
.bl-answer h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #15624B; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.bl-answer h2::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1A7A5E; }
.bl-answer p, .bl-answer li { font-size: 17px; color: #14201B; }

/* FAQ */
.bl-faq-item { border: 1px solid rgba(20,32,27,.09); border-radius: 16px; margin-bottom: 10px; background: #FCFBF8; }
.bl-faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.bl-faq-item summary::-webkit-details-marker { display: none; }
.bl-faq-item summary h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 600; }
.bl-faq-ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(26,122,94,.1); position: relative; }
.bl-faq-ic::before, .bl-faq-ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: #15624B; border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s; }
.bl-faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.bl-faq-item[open] .bl-faq-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.bl-faq-a { padding: 0 16px 4px; }
.bl-faq-a p, .bl-faq-a li { font-size: 15.5px; }

/* À retenir */
.bl-sec.bl-keep { margin: 18px 0 8px; padding: 18px 18px 6px; border: 0; border-radius: 18px; background: #0E3B2E; }
.bl-sec.bl-keep + .bl-sec { border-top: 0; }
.bl-keep h2 { color: #F6F3EC; font-size: 18px; }
.bl-keep p, .bl-keep li, .bl-keep strong { color: #F6F3EC; }
.bl-keep li::marker { color: #9FD9C2; }
.bl-keep a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }

/* Sources */
.bl-sources h2 { font-size: 16px; }
.bl-sources p, .bl-sources li { font-size: 14px; line-height: 1.6; color: #3A4640; }
.bl-verified { font-size: 13.5px !important; color: #5E6B63 !important; }

/* CTA */
.bl-cta { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; padding: 22px 20px; border-radius: 22px;
  background: radial-gradient(420px 220px at 100% 0%, rgba(26,122,94,.55), transparent 70%), #0E3B2E; color: #F6F3EC; }
.bl-cta-t { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: #fff; }
.bl-cta-d { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(246,243,236,.9); }
.bl-cta-a { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-btn, .bl-btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 14px; font-size: 15px; font-weight: 600; text-decoration: none; }
.bl-btn { background: #F6F3EC; color: #0E3B2E; }
.bl-btn:hover { background: #fff; }
.bl-btn2 { color: #F6F3EC; border: 1px solid rgba(246,243,236,.4); }
.bl-btn2:hover { border-color: #F6F3EC; }
.bl-hero .bl-btn { background: #013B30; color: #fff; }

.bl-related { margin-top: 12px; }

/* ── Pied de page ── */
.bl-foot { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 18px 16px 32px; display: flex; flex-wrap: wrap;
  gap: 8px 18px; justify-content: space-between; font-size: 13.5px; color: #5E6B63; border-top: 1px solid rgba(20,32,27,.06); }
.bl-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bl-foot a { color: #5E6B63; text-decoration: none; }
.bl-foot a:hover { color: #14201B; }

@media (max-width: 379px) { .bl-nav a.bl-login { display: none; } }

/* ── Tablette ── */
@media (min-width: 640px) {
  .bl-top { padding: 14px 24px; }
  .bl-nav a:not(.pill):not(.bl-login) { display: inline-block; }
  .bl-wrap { padding: 44px 24px 40px; }
  .bl-hero p { font-size: 17px; }
  .bl-tools { flex-direction: row; align-items: center; justify-content: space-between; }
  .bl-chips { margin: 0; padding: 2px 0 4px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; overflow: visible; }
  .bl-search { flex: 0 0 280px; }
  .bl-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .bl-body { padding: 10px 36px 30px; border-radius: 26px; }
  .bl-sec.bl-answer, .bl-sec.bl-keep { padding: 22px 24px 8px; }
  .bl-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 30px; }
  .bl-cta-a { flex: 0 0 auto; }
  .bl-foot { padding: 22px 24px 40px; }
  .bl-feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .bl-feat .bl-cardx-img { aspect-ratio: auto; min-height: 100%; }
  .bl-feat .bl-cardx-b { padding: 26px 28px; justify-content: center; }
  .bl-feat .bl-cardx-t { font-size: 26px; }
}
/* ── Bureau ── */
@media (min-width: 1000px) {
  .bl-top { padding: 14px 32px; }
  .bl-wrap { padding: 48px 32px 44px; }
  .bl-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bl-related .bl-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bl-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .bl-toc { display: block; position: sticky; top: 86px; padding: 18px 10px 10px 14px; border-radius: 20px; background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.85); max-height: calc(100vh - 110px); overflow-y: auto; }
  .bl-toc-h { margin: 0 0 8px 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5E6B63; }
  .bl-toc ol { padding: 0; }
  .bl-toc-m { display: none; }
  .bl-body { padding: 14px 48px 36px; }
  .bl-foot { padding: 22px 32px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bl-cardx, .bl-faq-ic::after { transition: none; }
}
