/* =============================================================================
   Applipro, le blog : l'index (articles.html) et les articles (article-*.html).
   Le balisage du contenu vient tel quel des pages actuelles du site, avec ses
   classes d'origine (.article--content, .toc, .pull-quote, .astuce…). Ce fichier
   les habille dans la charte du site, pour la lecture. Tout est rangé sous .bl
   pour ne rien heurter dans les styles communs.
   ============================================================================= */

.bl { width: var(--wrap); margin: 0 auto; color: var(--gray-900); }
.bl svg { flex: none; width: 16px; height: 16px; }
.bl img { max-width: 100%; }
.bl h1, .bl h2, .bl h3, .bl p { margin-bottom: 0; }

/* --- Les petits éléments communs : fil d'Ariane, thème, date, auteur --- */
.bl .breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 600; color: var(--gray-600); }
.bl .breadcrumb li + li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 14px 1px 12px; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); opacity: .6; }
.bl .breadcrumb a { color: var(--blue-500); }
.bl .tag { display: inline-block; padding: 6px 12px; border-radius: 99px; background: #E3EBFF; font-size: 13px; font-weight: 700; line-height: 1.2; color: #1E4FD0; white-space: nowrap; }
.bl .breadcrumb .tag { padding: 0; background: none; font-size: inherit; font-weight: 600; color: inherit; }
.bl .w-fit { width: fit-content; }
.bl .meta-info { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--gray-600); }
.bl .meta-info svg { width: 15px; height: 15px; }
.bl .meta-info.author { font-weight: 700; color: var(--gray-900); }
.bl .meta-info.author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #D9DFEA; }
.bl a.meta-info.author:hover { color: var(--blue-500); }
.bl .hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* --- Article : l'en-tête, centré, puis l'image --- */
.bl-head { padding: 34px 0 0; text-align: center; }
.bl-head .header--content { max-width: 920px; margin: 0 auto; }
.bl-head h1 { margin: 18px auto 0; font-size: clamp(31px, 3.6vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.033em; text-wrap: balance; }
.bl-head .hero-eyebrow { justify-content: center; margin-top: 24px; }
.bl-head .lead { max-width: 720px; margin: 20px auto 0; font-size: 18.5px; line-height: 1.55; color: var(--gray-800); text-wrap: balance; }
.bl .article-hero-img { display: block; width: 100%; max-width: 1040px; height: auto; aspect-ratio: 16 / 9; margin: 44px auto 0; border-radius: 30px; object-fit: cover; background: #E3E8F3; box-shadow: 0 44px 80px -46px rgba(24, 24, 146, .45); }
.bl .article-hero-img.is-contain { object-fit: contain; background: #fff; }

/* --- Article : la colonne de lecture et son sommaire --- */
.bl-body { padding-top: 72px; }
.bl .article-layout { display: grid; grid-template-columns: minmax(0, 720px) 250px; gap: 76px; justify-content: center; }
.bl .article--content { font-size: 18px; line-height: 1.7; color: var(--gray-800); overflow-wrap: break-word; }
.bl .article--content > * + * { margin-top: 20px; }
.bl .article--content p { text-wrap: pretty; }
.bl .article--content .lead { font-size: 21px; font-weight: 500; line-height: 1.55; color: var(--gray-900); }
.bl .article--content h2 { margin-top: 58px; scroll-margin-top: 110px; font-size: clamp(25px, 2.5vw, 34px); font-weight: 600; line-height: 1.16; letter-spacing: -.025em; color: var(--gray-900); text-wrap: balance; }
.bl .article--content h3 { margin-top: 38px; scroll-margin-top: 110px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--gray-900); text-wrap: balance; }
.bl .article--content hr { height: 0; margin: 0; border: 0; }
.bl .article--content hr + h2 { margin-top: 58px; }
.bl .article--content strong { font-weight: 700; color: var(--gray-900); }
.bl .article--content a:not(.btn) { font-weight: 600; color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.bl .article--content ul, .bl .article--content ol { display: grid; gap: 10px; padding: 0; list-style: none; }
.bl .article--content ul > li { position: relative; padding-left: 26px; }
.bl .article--content ul > li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); }
.bl .article--content ol { counter-reset: bl; }
.bl .article--content ol > li { position: relative; padding-left: 38px; counter-increment: bl; }
.bl .article--content ol > li::before { content: counter(bl); position: absolute; left: 0; top: .2em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #E3EBFF; font-size: 13.5px; font-weight: 700; line-height: 1; color: #1E4FD0; }
.bl .article--content img { display: block; width: 100%; height: auto; border-radius: 22px; }

/* Les encadrés des articles */
.bl .pull-quote { margin: 40px 0; padding: 34px 36px; border-radius: 26px; background: linear-gradient(180deg, #E3ECFF 0%, #F2F6FF 100%); }
.bl .pull-quote p { font-size: clamp(21px, 2.1vw, 27px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; color: var(--gray-900); text-wrap: balance; }
.bl .article--content blockquote { margin: 34px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--blue-500); }
.bl .article--content blockquote p { font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--gray-900); }
.bl .article--content cite { display: block; margin-top: 10px; font-size: 15px; font-style: normal; color: var(--gray-600); }
.bl .astuce { padding: 20px 24px; border-radius: 18px; background: #F2F6FF; box-shadow: inset 3px 0 0 var(--blue-500); font-size: 17px; line-height: 1.6; color: var(--gray-900); }
.bl .cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin: 40px 0; padding: 28px 30px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100), 10px 12px 0 0 #D0DDFF; }
.bl .cta-inline-text { flex: 1 1 300px; }
.bl .cta-inline-text p { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--gray-900); }
.bl .cta-inline-text span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--gray-800); }
.bl .btn svg { width: 18px; height: 18px; }
.bl .video-embed { position: relative; margin: 36px 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; background: #0F1424; box-shadow: 0 30px 60px -40px rgba(24, 24, 146, .5); }
.bl .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bl .article-faq { display: grid; gap: 10px; }
.bl .article-faq-item { border-radius: 18px; background: var(--gray-50); transition: background .25s ease; }
.bl .article-faq-item[open] { background: #E6E7F1; }
.bl .article-faq-item summary { position: relative; padding: 18px 52px 18px 22px; font-size: 17.5px; font-weight: 600; line-height: 1.35; color: var(--gray-900); cursor: pointer; list-style: none; }
.bl .article-faq-item summary::-webkit-details-marker { display: none; }
.bl .article-faq-item summary::after { content: '+'; position: absolute; right: 22px; top: 50%; margin-top: -14px; font-size: 24px; font-weight: 400; line-height: 28px; transition: transform .25s ease; }
.bl .article-faq-item[open] summary::after { transform: rotate(45deg); }
.bl .article-faq-item > p { padding: 0 22px 20px; font-size: 16.5px; line-height: 1.6; }
.bl .law-box { padding: 26px 28px; border-radius: 22px; background: #F2F6FF; box-shadow: 0 0 0 1px #D5E0FB; }
.bl .law-box > * + * { margin-top: 14px; }
.bl .law-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 1px var(--gray-100); font-size: 16px; line-height: 1.55; }
.bl .law-table th { padding: 16px 18px; background: #E3EBFF; font-size: 15.5px; font-weight: 700; line-height: 1.35; text-align: left; vertical-align: top; color: #1E4FD0; }
.bl .law-table td { padding: 16px 18px; vertical-align: top; background: #fff; }
.bl .law-table th + th, .bl .law-table td + td { border-left: 1px solid var(--gray-100); }
.bl .law-table tr + tr td { border-top: 1px solid var(--gray-100); }
.bl .law-source { font-size: 14.5px; line-height: 1.5; color: var(--gray-600); }
.bl .bonnes-pratiques { margin: 40px 0; padding: 28px 30px; border-radius: 24px; background: #E6E5FB; }
.bl .bonnes-pratiques-label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #4A3CC4; }
.bl .bonnes-pratiques-intro { margin-top: 10px; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--gray-900); }
.bl .bonnes-pratiques-list { margin-top: 16px; }
.bl .bonnes-pratiques-list > li::before { background: #fff; color: #4A3CC4; }

/* Le sommaire : il reste à l'écran, le chapitre en cours est surligné */
.bl .article-sidebar { position: sticky; top: 112px; align-self: start; }
.bl .toc-label, .bl .toc-share-label { font-size: 14.5px; font-weight: 700; color: var(--gray-900); }
.bl .toc ol { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.bl .toc ol ol { margin: 0; }
.bl .toc a { display: block; padding: 8px 0 8px 16px; border-left: 2px solid #DDE3F2; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--gray-600); transition: color .25s ease, border-color .25s ease; }
.bl .toc .toc-h3 a { padding-left: 30px; font-size: 14.5px; font-weight: 500; }
.bl .toc a:hover { color: var(--gray-900); }
.bl .toc a.is-on { border-left-color: var(--blue-500); color: var(--blue-500); }
.bl .toc-share { margin-top: 30px; }
.bl .toc-share-btns { display: flex; gap: 8px; margin-top: 12px; }
.bl .share-btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--gray-100); color: var(--gray-800); cursor: pointer; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.bl .share-btn svg { width: 18px; height: 18px; }
.bl .share-btn:hover { box-shadow: 0 0 0 1px var(--blue-500); color: var(--blue-500); }
.bl .share-btn.is-done { background: #CCEEE4; box-shadow: none; color: #00704F; }

/* --- Les cartes d'article (articles liés, index) --- */
.bl .article-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100); color: var(--gray-900); transition: transform .35s var(--ease), box-shadow .35s ease; }
.bl .article-card[hidden], .bl .hero-editorial[hidden] { display: none; }
.bl .article-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--gray-100), 0 34px 56px -38px rgba(24, 24, 146, .45); }
.bl .article-card-visual { overflow: hidden; aspect-ratio: 3 / 2; background: #E3E8F3; }
.bl .article-card-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bl .article-card:hover .article-card-visual img { transform: scale(1.04); }
.bl .article-card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 26px; text-align: left; }
.bl .article-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bl .article-card-meta .meta-info { font-size: 13.5px; }
.bl .article-card h3 { margin-top: 14px; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.bl .article-card-excerpt { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--gray-800); }

/* --- Article : les articles liés et l'appel de fin --- */
.bl .section-related { max-width: 1140px; margin: 110px auto 0; }
.bl .section-header { display: grid; justify-items: center; gap: 14px; text-align: center; }
.bl .section-header h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
.bl .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.bl .article-cta-end { display: grid; justify-items: center; gap: 0; max-width: 1268px; margin: 110px auto 72px; padding: 76px 40px 80px; border-radius: 36px; background: linear-gradient(180deg, #E3ECFF 0%, #F2F6FF 100%); text-align: center; }
.bl .article-cta-end h3 { max-width: 760px; margin-top: 18px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.bl .article-cta-end > p { max-width: 640px; margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--gray-800); text-wrap: pretty; }
.bl .article-cta-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.bl .article-cta-end-actions .btn, .bl .cta-inline .btn { max-width: 100%; white-space: normal; text-align: center; }

/* --- Index du blog : l'ouverture, les thèmes, l'article à la une --- */
.bl-index .blog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.bl .filter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100); font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.2; color: var(--gray-800); cursor: pointer; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.bl .filter-pill svg { display: none; }
.bl .filter-pill:hover { box-shadow: 0 0 0 1px var(--blue-500); color: var(--blue-500); }
.bl .filter-pill.active { background: var(--blue-500); box-shadow: none; color: #fff; }
.bl .hero-editorial { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); max-width: 1140px; margin: 52px auto 0; overflow: hidden; border-radius: 32px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100), 0 44px 80px -50px rgba(24, 24, 146, .45); text-align: left; }
.bl .hero-image-wrap { min-height: 380px; background: #E3E8F3; }
.bl .hero-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl .hero-body { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 44px 44px 42px; }
.bl .hero-body h2 { margin-top: 18px; font-size: clamp(25px, 2.5vw, 34px); font-weight: 600; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.bl .hero-body h2 + p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--gray-800); text-wrap: pretty; }
.bl .hero-cta { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; font-size: 16px; font-weight: 600; color: var(--blue-500); }
.bl .hero-cta svg { width: 17px; height: 17px; transition: transform .25s ease; }
.bl .hero-cta:hover svg { transform: translateX(3px); }
.bl-index.bl-body { padding: 96px 0 120px; }
.bl .blog-inner { max-width: 1140px; margin: 0 auto; }
.bl .article-title { font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
.bl .grid-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }

/* --- Page auteur : le portrait, le nom, la présentation, puis ses articles --- */
.bl .author-title { display: grid; justify-items: center; gap: 20px; margin-top: 26px; }
.bl .author-image { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; background: #D9DFEA; box-shadow: 0 0 0 5px #fff, 0 26px 44px -22px rgba(24, 24, 146, .55); }
.bl .author-title h1 { margin: 0; }
.bl-auteur.bl-body { padding: 72px 0 110px; }

/* --- Largeurs --- */
@media (max-width: 1180px) {
  .bl .article-layout { grid-template-columns: minmax(0, 720px) 210px; gap: 48px; }
  .bl .hero-body { padding: 34px 32px; }
}
@media (max-width: 940px) {
  .bl-body { padding-top: 56px; }
  /* Le sommaire passe au-dessus de l'article, en carte repliée sur elle-même */
  .bl .article-layout { grid-template-columns: minmax(0, 720px); gap: 36px; }
  .bl .article-sidebar { position: static; order: -1; padding: 22px 24px; border-radius: 22px; background: #F2F6FF; }
  .bl .toc-share { display: none; }
  .bl .related-grid, .bl .grid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .bl .section-related, .bl .article-cta-end { margin-top: 90px; }
  .bl .hero-editorial { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .bl .hero-image-wrap { min-height: 0; aspect-ratio: 16 / 9; }
  .bl-index.bl-body { padding: 80px 0 90px; }
}
@media (max-width: 800px) {
  .bl .article-hero-img { margin-top: 34px; border-radius: 24px; }
  .bl .article--content { font-size: 17px; }
  .bl .article--content .lead { font-size: 19px; }
  .bl .article--content h2, .bl .article--content hr + h2 { margin-top: 46px; }
  .bl .pull-quote { padding: 26px 24px; border-radius: 22px; }
  .bl .cta-inline { padding: 24px 22px; }
  .bl .article-cta-end { padding: 54px 24px 58px; border-radius: 28px; margin-bottom: 48px; }
  .bl .section-related, .bl .article-cta-end { margin-top: 64px; }
  .bl-index.bl-body { padding: 64px 0 64px; }
}
@media (max-width: 620px) {
  .bl .related-grid, .bl .grid-row { grid-template-columns: minmax(0, 1fr); }
  .bl .hero-body { padding: 26px 22px 28px; gap: 20px; }
  .bl .hero-editorial { margin-top: 36px; border-radius: 26px; }
  .bl .law-table { display: block; overflow-x: auto; font-size: 15px; }
  .bl .law-table th, .bl .law-table td { min-width: 240px; padding: 14px; }
}
