/*
 * Fichier : /assets/css/village-article.css
 * Articles du blog : en-tête nuit, livre 3D et confort de lecture.
 * Tout passe par le CSS : le texte et les liens des articles ne bougent pas.
 */
.vl-progres { position: fixed; top: 0; left: 0; z-index: 2000; width: 100%; height: 4px; background: #FFC86B; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.village-vue { display: none; position: relative; }
.vl-3d .village-vue { display: block; }
.village-vue canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* En-tête nuit, bord à bord */
html body main > .container.breadcrumb { width: 100%; max-width: none; margin: 0; padding: 20px max(16px, calc((100% - 1160px) / 2)) 0; background: #0C1A2E !important; color: rgba(255, 244, 223, .72) !important; }
html body main > .container.breadcrumb a { color: #FFC86B !important; }
html body main section.article-head.container { width: 100%; max-width: none; margin: 0; padding: 34px max(16px, calc((100% - 1160px) / 2)) 110px; background: #0C1A2E !important; text-align: left; position: relative; }
html body main section.article-head.container::before { display: none !important; }
html body main section.article-head.container :is(h1, p, span, div, a) { color: #FFF4DF !important; }
html body main section.article-head.container .eyebrow { display: block; padding: 0; color: #FFC86B !important; }
html body main section.article-head.container h1 { max-width: 19ch; margin: 14px 0 16px; font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; text-align: left; }
html body main section.article-head.container .article-meta { justify-content: flex-start; text-align: left; opacity: .82; }

/* Image de l'article : à cheval sur l'en-tête, à la largeur de lecture */
html body main .article-hero { display: block; position: relative; z-index: 1; width: 100%; max-width: 760px; margin: -74px auto 0; border: 1px solid rgba(255, 200, 107, .4); box-shadow: 0 22px 50px rgba(12, 26, 46, .22); filter: sepia(.26) brightness(.95); }

/* Grands guides */
html body main .pillar-hero { padding: 26px 0 60px; background: #0C1A2E !important; }
html body main .pillar-shell { padding: 0; background: none !important; background-image: none !important; border: 0 !important; box-shadow: none !important; }
html body main .pillar-shell :is(h1, h2, h3, p, strong, span) { color: #FFF4DF !important; }
html body main .pillar-shell .eyebrow { padding: 0; background: none !important; color: #FFC86B !important; }
html body main .pillar-shell > img { filter: sepia(.26) brightness(.95); border: 1px solid rgba(255, 200, 107, .4); }
html body main .pillar-summary > div { background: #13263F !important; border-color: rgba(255, 244, 223, .16) !important; }

/* Lecture */
html body main .article-layout { max-width: 1160px; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding-top: 56px; }
html body main .article-content { max-width: 720px; font-size: 1.09rem; line-height: 1.74; }
html body main .article-content > p, html body main .article-content > ul li, html body main .article-content > ol li { color: var(--vl-texte) !important; }
html body main .article-lead, html body main .article-lead strong { font-size: 1.24rem; line-height: 1.6; font-weight: 600; }
html body main .article-layout .article-content h2 { margin-top: 2em; font-size: clamp(1.6rem, 2.5vw, 2.15rem) !important; line-height: 1.14; scroll-margin-top: 100px; }
html[data-theme="dark"] body main .article-content { background: none !important; }
html body main .article-content h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
html body main .article-layout .article-content :is(.action-panel, .framework-grid) h2 { margin-top: 0; }
html body main .toc { top: 104px; }
html body main .toc a { border-left: 3px solid transparent; padding-left: 10px; margin-left: -13px; transition: color .2s, border-color .2s; }
html body main .toc a.est-actif { border-left-color: #FFC86B; color: var(--vl-texte) !important; font-weight: 800; }

/* Articles au format guide */
html body main .pt-hero .pt-kicker { justify-self: start; }
html body main .pt-hero .pt-container h1 { max-width: 19ch; font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; }

/* Le livre */
@media (min-width: 901px) {
  html.vl-3d body main .pillar-shell { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); row-gap: 28px; }
  html.vl-3d body main .pillar-shell > div:not(.village-vue) { grid-column: 1; grid-row: 1; }
  html.vl-3d body main .pillar-shell > .village-vue--livre { grid-column: 2; grid-row: 1; margin: 0 -20px; }
  html.vl-3d body main .pillar-shell > img { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: 100%; max-width: 760px; height: auto; }
}
@media (min-width: 901px) {
  html.vl-3d body main section.article-head.container, html.vl-3d body main .pt-hero > .pt-container { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 32px; align-content: center; }
  html.vl-3d body main section.article-head.container > :not(.village-vue), html.vl-3d body main .pt-hero > .pt-container > :not(.village-vue) { grid-column: 1; }
  html.vl-3d .village-vue--livre { grid-column: 2; grid-row: 1 / span 4; min-height: 380px; margin: -40px -20px -60px; }
}
@media (max-width: 900px) {
  html body main .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  html body main .article-hero { margin-top: -46px; }
  html body main section.article-head.container h1 { max-width: none; }
  html body main section.article-head.container { padding-bottom: 78px; }
  html body main .article-lead, html body main .article-lead strong { font-size: 1.12rem; }
  html body main .article-content { font-size: 1.03rem; }
  html.vl-3d .village-vue--livre { height: 240px; margin-top: 8px; }
  html.vl-3d body main .pillar-shell { display: block; }
}
@media (prefers-reduced-motion: reduce) { .vl-progres { display: none; } }

/* Thèmes clair et sombre : textes illisibles */
html:root:root[data-theme="dark"] body main .framework-grid b { background: #FFC86B !important; color: #12252F !important; }
html body .vp-skip-link, html body .skip-link { background: #FFC86B !important; color: #12252F !important; }

/* Encart d'offre au milieu des articles (lot 2 de l'audit du 2026-11-11). */
html:root:root:root body main .vl-encart-offre {
  margin: 36px 0 !important; padding: 22px 24px !important;
  border: 2px solid #0C1A2E !important; border-left-width: 8px !important; border-radius: 0 !important;
  background: #0C1A2E !important; color: #FFF4DF !important; box-shadow: none !important;
}
html:root:root:root body main .vl-encart-offre p { margin: 0 !important; color: #FFF4DF !important; font-size: 17px !important; line-height: 1.5 !important; max-width: none !important; }
html:root:root:root body main .vl-encart-offre strong { color: #FFC86B !important; }
html:root:root:root body main .vl-encart-offre .vl-encart-offre__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px !important; }
html:root:root:root body main .vl-encart-offre a { color: #FFF4DF !important; font-weight: 700 !important; text-decoration: underline !important; text-underline-offset: 3px; }
html:root:root:root body main .vl-encart-offre a.vl-encart-offre__principal {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  background: #FFC86B !important; color: #0C1A2E !important; font-weight: 800 !important; text-decoration: none !important;
}
html:root:root:root body main .vl-encart-offre a:focus-visible { outline: 3px solid #FFF4DF; outline-offset: 3px; }
html:root:root:root[data-theme="dark"] body main .vl-encart-offre { border-color: #FFC86B !important; background: #13263F !important; }
