/* Blog : liste, cartes d'articles et page article (27/10/2026). */
.a-blog, .a-post { --b-navy: #111111; --b-gold: #c9a24a; --b-ink: #222222; --b-muted: #545454; --b-line: #e7e7e7; }
.a-blog__wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Bandeau de la liste */
.a-blog__hero { position: relative; background: var(--b-navy); color: #fff; padding: 34px 0 30px; }
.a-blog__hero::before, .a-blog__hero::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--b-gold); opacity: .8; }
.a-blog__hero::before { top: 8px; }
.a-blog__hero::after { bottom: 8px; }
.a-blog__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 14px/1.4 var(--a-sans); color: rgba(255,255,255,.7); margin: 0 0 18px; }
.a-blog__crumbs a { color: inherit; text-decoration: none; }
.a-blog__crumbs a:hover { color: #fff; text-decoration: underline; }
.a-blog__crumbs [aria-current] { color: #fff; }
.a-blog__crumbs--ink { color: var(--b-muted); }
.a-blog__crumbs--ink a:hover { color: var(--b-navy); }
.a-blog__crumbs--ink [aria-current] { color: var(--b-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.a-blog__title { font: 400 clamp(44px, 6vw, 72px)/.95 var(--a-display); letter-spacing: .01em; margin: 0; color: #fff; }
.a-blog__intro { max-width: 60ch; margin: 12px 0 0; font: 400 17px/1.55 var(--a-sans); color: rgba(255,255,255,.82); }
.a-blog__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.a-blog__chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font: 500 15px/1 var(--a-sans); text-decoration: none; transition: border-color .15s, background-color .15s; }
.a-blog__chip:hover { border-color: var(--b-gold); }
.a-blog__chip.is-on { background: var(--b-gold); border-color: var(--b-gold); color: var(--b-navy); font-weight: 600; }
.a-blog__chip--logo { background: #fff; border-color: #fff; padding: 0 14px; }
.a-blog__chip--logo img { display: block; width: auto; max-height: 20px; max-width: 96px; }
.a-blog__chip--logo:hover { border-color: var(--b-gold); }
.a-blog__chip--logo.is-on { background: #fff; border-color: var(--b-gold); box-shadow: 0 0 0 2px var(--b-gold); }
.a-blog__chip:focus-visible, .a-acard a:focus-visible, .a-toc a:focus-visible, .a-post a:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 2px; }

.a-blog__list { padding-top: 40px; padding-bottom: 64px; }
.a-blog__h2 { font: 400 34px/1 var(--a-display); color: var(--b-navy); margin: 56px 0 20px; display: flex; align-items: center; gap: 16px; }
.a-blog__h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--b-gold), transparent); }
.a-blog__empty { font: 400 17px/1.5 var(--a-sans); color: var(--b-ink); }
.a-blog__empty a { color: var(--b-navy); font-weight: 600; }

/* À la une : 1 grand + 2 secondaires */
.a-blog__lead { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; }
.a-blog__side { display: grid; gap: 20px; grid-auto-rows: 1fr; }
.a-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Carte d'article */
.a-acard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--b-line); border-radius: 10px; overflow: hidden; transition: border-color .15s, transform .15s; }
.a-acard:hover { border-color: var(--b-navy); }
.a-acard__media { display: block; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--b-line); overflow: hidden; }
.a-acard__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; }
.a-acard__mono { display: grid; place-items: center; height: 100%; background: var(--b-navy); background-image: radial-gradient(circle at 50% 50%, rgba(201,162,74,.22), transparent 60%); }
.a-acard__mono img { width: min(62%, 240px); height: auto; padding: 0; object-fit: contain; }
.a-acard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.a-acard__top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 20px; margin: 0 0 10px; }
.a-acard__lic { display: inline-flex; }
.a-acard__lic img { display: block; width: auto; max-height: 18px; }
.a-acard__kind { font: 600 13px/1 var(--a-sans); color: #8a6a22; background: #f7f0de; padding: 5px 9px; border-radius: 4px; }
.a-acard .a-acard__title { margin: 0; font: 600 19px/1.3 var(--a-sans); color: var(--b-ink); text-transform: none; letter-spacing: 0; }
.a-acard__title a { color: inherit; text-decoration: none; }
.a-acard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.a-acard__lic { position: relative; z-index: 2; }
.a-acard:hover .a-acard__title a { color: var(--b-navy); text-decoration: underline; text-decoration-color: var(--b-gold); text-underline-offset: 3px; }
.a-acard__excerpt { margin: 10px 0 0; font: 400 15px/1.55 var(--a-sans); color: var(--b-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-acard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: auto 0 0; padding-top: 14px; font: 500 13px/1.3 var(--a-sans); color: var(--b-muted); }

.a-acard--feature .a-acard__media { aspect-ratio: 2 / 1; }
.a-acard--feature .a-acard__body { padding: 24px 28px 26px; }
.a-acard--feature .a-acard__title { font: 400 clamp(30px, 3vw, 40px)/1.02 var(--a-display); color: var(--b-navy); letter-spacing: .01em; text-transform: uppercase; }
.a-acard--feature .a-acard__excerpt { font-size: 16px; -webkit-line-clamp: 3; }
.a-acard--side { flex-direction: row; }
.a-acard--side .a-acard__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 150px; border-bottom: 0; border-right: 1px solid var(--b-line); }
.a-acard--side .a-acard__body { padding: 16px 18px; }
.a-acard--side .a-acard__title.a-acard__title { font-size: 17px; }

/* Pagination Dawn */
.a-blog__pages { margin-top: 40px; }
.a-blog__pages .pagination__item { color: var(--b-navy); }
.a-blog__pages .pagination__item--current { background: var(--b-navy); color: #fff; border-radius: 6px; }
.a-blog__pages .pagination__item--current::after { display: none; }

/* Article */
.a-post { padding-bottom: 72px; }
.a-post__head { padding-top: 28px; }
.a-post__intro { max-width: 900px; }
.a-post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; }
.a-post__lic { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; background: #fff; border: 1px solid var(--b-line); border-radius: 6px; }
.a-post__lic img { display: block; width: auto; max-height: 22px; }
.a-post__tag { font: 500 14px/1 var(--a-sans); color: var(--b-navy); text-decoration: none; padding: 9px 12px; border: 1px solid var(--b-line); border-radius: 6px; background: rgba(255,255,255,.6); }
.a-post__tag:hover { border-color: var(--b-navy); }
.a-post__title { margin: 0; font: 400 clamp(40px, 5.4vw, 68px)/.98 var(--a-display); letter-spacing: .01em; color: var(--b-navy); text-wrap: balance; }
.a-post__dek { margin: 16px 0 0; max-width: 62ch; font: 400 19px/1.55 var(--a-sans); color: var(--b-ink); }
.a-post__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--b-line); font: 500 14px/1.4 var(--a-sans); color: var(--b-muted); max-width: 900px; }
.a-post__hero { margin: 28px 0 0; background: #fff; border: 1px solid var(--b-line); border-radius: 12px; overflow: hidden; height: clamp(240px, 36vw, 460px); }
.a-post__hero img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 20px; box-sizing: border-box; }

.a-post__layout { display: grid; grid-template-columns: 290px minmax(0, 720px); gap: 56px; margin-top: 44px; align-items: start; }
.a-post__layout--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.a-post__aside { position: sticky; top: 172px; }

/* Sommaire dans un cadre orné bleu nuit et or */
.a-toc { position: relative; background: #fff; padding: 20px 22px 18px; }
.a-toc::before { content: ""; position: absolute; inset: 0; border: 30px solid transparent; border-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 xmlns:xlink=%22http://www.w3.org/1999/xlink%22 width=%22160%22 height=%22160%22 viewBox=%220 0 160 160%22%3E%3Cdefs%3E%3Cg id=%22c%22%3E%3Cpath d=%22M0 0H46C46 6 42 10 36 10C30 10 27 8 23 10C17 13 13 17 10 23C8 27 10 30 10 36C10 42 6 46 0 46Z%22 fill=%22%23111111%22/%3E%3Cg fill=%22none%22 stroke=%22%23c9a24a%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M5 38C5 19 19 5 38 5%22 stroke-width=%221.2%22/%3E%3Cpath d=%22M13 31C13 20 20 13 31 13C36 13 37 18 33 19.5%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M13 31C13 36 18 37 19.5 33%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M19 19L24 24%22 stroke-width=%221.8%22/%3E%3C/g%3E%3Cpath d=%22M27 23.5L30.5 27L27 30.5L23.5 27Z%22 fill=%22%23c9a24a%22/%3E%3Ccircle cx=%227%22 cy=%227%22 r=%222.8%22 fill=%22%23c9a24a%22/%3E%3C/g%3E%3C/defs%3E%3Cpath d=%22M0 4H160M0 156H160M4 0V160M156 0V160%22 stroke=%22%23111111%22 stroke-width=%226%22/%3E%3Cpath d=%22M0 11H160M0 149H160M11 0V160M149 0V160%22 stroke=%22%23c9a24a%22 stroke-width=%221.2%22/%3E%3Cuse xlink:href=%22%23c%22/%3E%3Cuse xlink:href=%22%23c%22 transform=%22matrix%28-1 0 0 1 160 0%29%22/%3E%3Cuse xlink:href=%22%23c%22 transform=%22matrix%281 0 0 -1 0 160%29%22/%3E%3Cuse xlink:href=%22%23c%22 transform=%22matrix%28-1 0 0 -1 160 160%29%22/%3E%3C/svg%3E") 52 stretch; pointer-events: none; }
.a-toc__title { position: relative; list-style: none; cursor: default; font: 400 28px/1 var(--a-display); color: var(--b-navy); text-align: center; padding: 8px 0 12px; margin: 0 8px; border-bottom: 1px solid var(--b-gold); }
.a-toc__title::-webkit-details-marker { display: none; }
.a-toc__list { position: relative; list-style: none; counter-reset: toc; margin: 12px 0 4px; padding: 0 6px; max-height: calc(100vh - 330px); overflow: auto; }
.a-toc__list li { counter-increment: toc; }
.a-toc__list a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 6px; border-radius: 6px; font: 500 15px/1.35 var(--a-sans); color: var(--b-ink); text-decoration: none; }
.a-toc__list a::before { content: counter(toc); font: 400 19px/1 var(--a-display); color: var(--b-gold); padding-top: 1px; }
.a-toc__list a:hover { background: #fafafa; color: var(--b-navy); }
.a-toc__list a[aria-current] { background: var(--b-navy); color: #fff; }

/* Corps de l'article */
.a-post__body { font: 400 18px/1.75 var(--a-sans); color: var(--b-ink); }
.a-post__body > * + * { margin-top: 1.1em; }
.a-post__body p { margin: 0; }
.a-post__body > p:first-child { font-size: 20px; line-height: 1.65; }
.a-post__body h2 { font: 400 clamp(30px, 3vw, 38px)/1.05 var(--a-display); color: var(--b-navy); letter-spacing: .01em; margin: 2em 0 0; padding-top: 16px; border-top: 1px solid var(--b-line); position: relative; scroll-margin-top: 172px; }
.a-post__body h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--b-gold); }
.a-post .a-post__body h3 { font: 600 21px/1.35 var(--a-sans); color: var(--b-navy); text-transform: none; letter-spacing: 0; margin: 1.6em 0 0; scroll-margin-top: 172px; }
.a-post__body h2 + *, .a-post__body h3 + * { margin-top: .6em; }
.a-post__body a { color: var(--b-navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--b-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.a-post__body a:hover { text-decoration-color: var(--b-navy); }
.a-post__body strong { color: var(--b-navy); font-weight: 600; }
.a-post__body ul, .a-post__body ol { padding-left: 0; list-style: none; }
.a-post__body li { position: relative; padding-left: 28px; }
.a-post__body li + li { margin-top: .45em; }
.a-post__body ul > li::before { content: ""; position: absolute; left: 6px; top: .66em; width: 8px; height: 8px; background: var(--b-gold); transform: rotate(45deg); }
.a-post__body ol { counter-reset: li; }
.a-post__body ol > li { counter-increment: li; }
.a-post__body ol > li::before { content: counter(li); position: absolute; left: 0; top: .1em; font: 400 22px/1.4 var(--a-display); color: var(--b-gold); }
.a-post__body blockquote { margin-left: 0; margin-right: 0; padding: 16px 20px; background: #fff; border-left: 3px solid var(--b-gold); border-radius: 0 8px 8px 0; font-style: normal; }
.a-post__body img { max-width: 100%; height: auto; border-radius: 8px; }
.a-post__body table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; border: 1px solid var(--b-line); display: block; overflow-x: auto; }
.a-post__body th, .a-post__body td { padding: 10px 12px; border-bottom: 1px solid var(--b-line); text-align: left; vertical-align: top; }
.a-post__body th { background: var(--b-navy); color: #fff; font-weight: 600; }

.a-post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--b-line); }
.a-post__share .share-button__button { font: 500 15px var(--a-sans); color: var(--b-navy); }
.a-post__back { font: 600 15px/1 var(--a-sans); color: var(--b-navy); text-decoration: none; padding: 12px 16px; border: 1px solid var(--b-navy); border-radius: 8px; }
.a-post__back:hover { background: var(--b-navy); color: #fff; }

/* Encart boutique de la licence */
.a-post__shop { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center; margin-top: 32px; padding: 22px 24px; background: var(--b-navy); color: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--b-gold), inset 0 0 0 5px var(--b-navy), inset 0 0 0 6px rgba(201,162,74,.5); }
.a-post__shop-logo img { display: block; width: auto; max-height: 34px; max-width: 140px; }
.a-post__shop-title { margin: 0; font: 400 26px/1 var(--a-display); letter-spacing: .01em; }
.a-post__shop-text p:not(.a-post__shop-title) { margin: 6px 0 0; font: 400 15px/1.45 var(--a-sans); color: rgba(255,255,255,.8); }
.a-post__shop-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; background: var(--a-buy, #f5c451); color: var(--a-buy-ink, #111111); border-radius: 8px; font: 600 15px/1 var(--a-sans); text-decoration: none; white-space: nowrap; }
.a-post__shop-btn:hover { filter: brightness(.95); }

.a-post__more .a-blog__h2 { margin-top: 64px; }

@media (max-width: 1099px) {
  .a-post__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 989px) {
  .a-blog__lead { grid-template-columns: 1fr; }
  .a-blog__side { grid-template-columns: 1fr 1fr; }
  .a-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-post__layout, .a-post__layout--solo { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .a-post__aside { position: static; }
  .a-toc__title { cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; border-bottom: 0; padding-bottom: 8px; }
  .a-toc[open] .a-toc__title { border-bottom: 1px solid var(--b-gold); padding-bottom: 12px; }
  .a-toc__title::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--b-gold); border-bottom: 2px solid var(--b-gold); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .a-toc[open] .a-toc__title::after { transform: rotate(-135deg) translateY(-2px); }
  .a-toc__list { max-height: none; }
  .a-post__shop { grid-template-columns: 1fr; }
  .a-post__shop-btn { justify-content: center; }
}
@media (max-width: 599px) {
  .a-blog__wrap { padding: 0 16px; }
  .a-blog__hero { padding: 26px 0 24px; }
  .a-blog__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .a-blog__filters::-webkit-scrollbar { display: none; }
  .a-blog__chip { flex: 0 0 auto; }
  .a-blog__side, .a-blog__grid { grid-template-columns: 1fr; }
  .a-acard--side { flex-direction: column; }
  .a-acard--side .a-acard__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--b-line); }
  .a-acard--feature .a-acard__body { padding: 18px 20px 20px; }
  .a-post__dek { font-size: 17px; }
  .a-post__body { font-size: 17px; }
  .a-post__body > p:first-child { font-size: 18px; }
  .a-post__hero { height: 240px; }
  .a-toc::before { border-width: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .a-acard, .a-acard__media img, .a-blog__chip, .a-toc__title::after { transition: none; }
  .a-acard:hover .a-acard__media img { transform: none; }
}
