/* =========================================================
   Blog — articles & page liste
   ========================================================= */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--sand); color: var(--ink); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pierre); }
.pill--deco::before { background: var(--deco); }

/* Liste */
.blog-hero .h1 { max-width: 20ch; }
.blog-hero .kicker-h1 { display: block; margin-bottom: 18px; }
.blog-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.blog-filter::-webkit-scrollbar { display: none; }
.blog-filter .tab { flex: none; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bgrid--3 { grid-template-columns: repeat(3, 1fr); }
.bcard[hidden] { display: none; }
.bcard__link { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--r); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.sec--paper .bcard__link { background: var(--bg); }
.bcard__link:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(23,24,26,.35); }
.bcard__img { aspect-ratio: 16/10; overflow: hidden; background: var(--sand); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bcard__link:hover .bcard__img img { transform: scale(1.04); }
.bcard__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; flex: 1; }
.bcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); }
.bcard__title { font-size: 1.22rem; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.bcard__excerpt { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.bcard__more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--ink); display: inline-flex; gap: 8px; }
.bcard__link:hover .bcard__more { color: var(--red); }
.bcard--big { grid-column: 1 / -1; }
.bcard--big .bcard__link { flex-direction: row; }
.bcard--big .bcard__img { flex: 1.25; aspect-ratio: auto; min-height: 420px; }
.bcard--big .bcard__body { flex: 1; padding: clamp(26px, 3vw, 44px); justify-content: center; }
.bcard--big .bcard__title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.12; font-weight: 500; letter-spacing: -.03em; }
.bcard--big .bcard__excerpt { font-size: 1.05rem; }
.bcard--big .bcard__more { margin-top: 10px; }

/* Article */
.post-head { background: var(--bg); padding-top: clamp(104px, 12vw, 140px); }
.post-head__in { display: grid; gap: 22px; max-width: 980px; }
.post-head .crumbs ol { color: var(--muted); }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .9rem; color: var(--muted); }
.post-title { font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.06; font-weight: 500; letter-spacing: -.04em; max-width: 24ch; text-wrap: balance; }
.post-hero { margin: clamp(28px, 4vw, 48px) auto 0; }
.post-hero img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 24px; background: var(--sand); }
.post-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); align-items: start; }
.post-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.post-toc { background: var(--paper); border-radius: var(--r); padding: 18px 20px; }
.post-toc summary { list-style: none; cursor: pointer; font-weight: 600; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin-top: -4px; transition: transform .3s; }
.post-toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.post-toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.post-toc a { display: block; padding: 8px 10px; border-radius: 10px; font-size: .9rem; line-height: 1.35; color: var(--muted); transition: background .25s, color .25s; }
.post-toc a:hover { background: var(--bg); color: var(--ink); }
.post-toc a.is-active { background: var(--ink); color: #fff; }
.post-aside__cta { background: var(--basalt); color: var(--on-dark); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; font-size: .92rem; }
.post-aside__cta p { color: var(--on-dark-2); }
.post-aside__cta strong { color: #fff; display: block; font-size: 1rem; margin-bottom: 4px; }
.post-aside__cta .btn { background: var(--paper); color: var(--ink); width: 100%; }
.post-aside__tel { font-weight: 600; text-align: center; }

.post-body { max-width: 740px; min-width: 0; }
.post-body > * + * { margin-top: 1.25em; }
.post-body p, .post-body li { font-size: 1.1rem; line-height: 1.75; color: var(--ink-2); }
.post-body p a, .post-body li a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 500; }
.post-body p a:hover, .post-body li a:hover { color: var(--red); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; margin-top: 2.4em; scroll-margin-top: 100px; text-wrap: balance; }
.post-body h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; margin-top: 1.8em; }
.post-body ul:not([class]), .post-body ol:not([class]) { padding-left: 1.2em; display: grid; gap: .45em; }
.post-body ul:not([class]) li::marker { color: var(--red); }
.post-lead { font-size: clamp(1.2rem, 1.7vw, 1.38rem) !important; line-height: 1.6 !important; color: var(--ink) !important; font-weight: 450; }
.post-keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.post-keyfacts > div { background: var(--paper); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; align-content: start; }
.post-keyfacts b { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.post-keyfacts span { font-size: .92rem; line-height: 1.45; color: var(--muted); }

.post-fig { margin: 2em 0; }
.post-fig img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r); background: var(--sand); }
.post-fig figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.post-fig--wide { margin-left: -60px; margin-right: -60px; }
.post-fig--wide img { aspect-ratio: 16/9; }
.post-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2em 0; }
.post-duo .post-fig { margin: 0; }
.post-duo .post-fig img { aspect-ratio: 4/5; }

.post-callout { background: var(--paper); border-radius: var(--r); padding: 22px 24px; display: grid; gap: 8px; box-shadow: inset 4px 0 0 var(--red); }
.post-callout strong { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.post-callout p { font-size: 1.02rem !important; margin: 0; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.post-card { background: var(--paper); border-radius: var(--r); padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.post-card h3 { margin: 0 !important; font-size: 1.08rem !important; }
.post-card p { font-size: .98rem !important; line-height: 1.6 !important; margin: 0; }
.post-steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.post-steps li { counter-increment: st; position: relative; padding: 18px 20px 18px 66px; background: var(--paper); border-radius: var(--r); }
.post-steps li::before { content: counter(st); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.post-steps li strong { display: block; margin-bottom: 2px; }
.post-checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.post-checks li { position: relative; padding-left: 32px; }
.post-checks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 13px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.post-body .faq { margin-top: 1em; }
.post-body .faq__item { background: var(--paper); }
.post-author { margin-top: 3em !important; display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; background: var(--paper); border-radius: 24px; padding: 22px; }
.post-author img { width: 120px; height: 120px; object-fit: cover; object-position: 50% 20%; border-radius: 18px; }
.post-author__name { font-weight: 600; color: var(--ink) !important; font-size: 1.05rem !important; }
.post-author p { font-size: .98rem !important; line-height: 1.6 !important; margin: 0; }
.post-author p + p { margin-top: 6px; }
.post-author .actions { margin-top: 12px; }

/* Outils */
.tool { margin: 2.2em 0 !important; background: var(--paper); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 1px 0 var(--line-2), 0 30px 60px -40px rgba(23,24,26,.35); }
.tool__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tool__badge { font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: #fff; }
.tool__title { font-size: 1.3rem !important; line-height: 1.2 !important; font-weight: 600; letter-spacing: -.02em; color: var(--ink) !important; margin: 4px 0 4px; }
.tool__intro { font-size: .98rem !important; color: var(--muted) !important; margin: 0 0 18px !important; }
.tool * + * { margin-top: 0; }
.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.t-field { display: grid; gap: 8px; }
.t-field > label, .t-label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.t-field input[type=number], .t-field select { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 0 14px; font: inherit; font-size: 1rem; color: var(--ink); }
.t-field input:focus, .t-field select:focus { outline: none; border-color: var(--ink); background: #fff; }
.t-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.t-seg button { min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .9rem; font-weight: 500; transition: all .2s; }
.t-seg button:hover { border-color: var(--ink); }
.t-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.t-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); cursor: pointer; font-size: .98rem; line-height: 1.45; }
.t-check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin-top: 1px; }
.t-checks { display: grid; gap: 8px; }
.t-result { margin-top: 18px; background: var(--basalt); color: var(--on-dark); border-radius: 20px; padding: clamp(18px, 2.5vw, 26px); display: grid; gap: 12px; }
.t-result__big { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; color: #fff; }
.t-result__label { font-size: .88rem; color: var(--on-dark-2); }
.t-rows { display: grid; gap: 0; }
.t-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-dark); font-size: .95rem; }
.t-rows > div span:last-child { font-weight: 600; color: #fff; text-align: right; }
.t-note { font-size: .84rem !important; color: var(--on-dark-2) !important; line-height: 1.5 !important; }
.t-result .btn { background: var(--paper); color: var(--ink); justify-self: start; }
.t-progress { height: 6px; border-radius: 6px; background: var(--sand); overflow: hidden; margin: 6px 0 16px; }
.t-progress i { display: block; height: 100%; background: var(--red); transition: width .4s var(--ease); }
.t-opts { display: grid; gap: 8px; }
.t-opt { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-size: .98rem; transition: all .2s; }
.t-opt:hover { border-color: var(--ink); background: var(--bg); }
.t-bars { display: grid; gap: 10px; }
.t-bar { display: grid; grid-template-columns: 150px 1fr 44px; gap: 12px; align-items: center; font-size: .92rem; }
.t-bar__track { height: 10px; border-radius: 10px; background: rgba(255,255,255,.1); overflow: hidden; }
.t-bar__track i { display: block; height: 100%; border-radius: 10px; background: #fff; transition: width .7s var(--ease); }
.t-bar__track i.is-top { background: var(--red); }
.t-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.t-swatch { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.t-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.08); }
.t-timeline { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.t-timeline button { flex: none; display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); min-width: 132px; transition: all .2s; }
.t-timeline button small { font-size: .78rem; color: var(--muted); }
.t-timeline button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.t-timeline button[aria-pressed="true"] small { color: var(--on-dark-2); }
.t-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t-compare > div { background: var(--bg); border-radius: 18px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.t-compare h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.t-meter { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.t-meter__track { height: 8px; border-radius: 8px; background: var(--sand); overflow: hidden; }
.t-meter__track i { display: block; height: 100%; background: var(--ink); border-radius: 8px; transition: width .6s var(--ease); }
.t-svg { width: 100%; height: auto; display: block; border-radius: 16px; background: var(--bg); }
.t-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; order: -1; }
  .post-toc { padding: 16px 18px; }
  .post-toc:not([open]) ol { display: none; }
  .post-aside__cta { display: none; }
  .post-body { max-width: 760px; margin: 0 auto; width: 100%; }
  .post-fig--wide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 900px) {
  .bgrid, .bgrid--3 { grid-template-columns: 1fr 1fr; }
  .bcard--big .bcard__link { flex-direction: column; }
  .bcard--big .bcard__img { min-height: 0; aspect-ratio: 16/10; flex: none; }
}
@media (max-width: 640px) {
  .bgrid, .bgrid--3 { grid-template-columns: 1fr; gap: 14px; }
  .post-hero { padding-inline: 0; }
  .post-hero img { aspect-ratio: 4/3; border-radius: 0; }
  .post-body p, .post-body li { font-size: 1.04rem; line-height: 1.7; }
  .post-keyfacts { grid-template-columns: 1fr; }
  .post-keyfacts > div { grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; padding: 16px 18px; }
  .post-duo { grid-template-columns: 1fr; }
  .post-duo .post-fig img { aspect-ratio: 16/10; }
  .post-author { grid-template-columns: 1fr; text-align: left; }
  .post-author img { width: 84px; height: 84px; }
  .t-grid, .t-compare, .t-split { grid-template-columns: 1fr; }
  .t-bar { grid-template-columns: 110px 1fr 38px; font-size: .86rem; }
  .post-steps li { padding-left: 60px; }
}
@media (max-width: 640px) {
  .t-rows > div { flex-direction: column; gap: 4px; }
  .t-rows > div span:last-child { text-align: left !important; max-width: none !important; }
  .t-rows > div span:first-child { font-weight: 600; color: #fff; }
}
