/* ==========================================================================
   Blog « Le journal » (2026-10-29)
   Références : maquettes magazine (blog1 à blog3). Couverture sombre avec les
   trois derniers articles, liste en zigzag avec filtres par thème, page
   article avec grande photo chevauchée par le bloc titre.
   S'appuie sur les variables de style.css (.seance fournit --edge).
   ========================================================================== */
.blog {
	--bl-ink: #151515;
	--bl-dark: #1c1b1a;
	--bl-page: #f4f1ee;
	--bl-hair: rgba(21, 21, 21, .14);
	--bl-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	color: var(--bl-ink);
	background: var(--bl-page);
}
.blog > section:not(.textured), .blog > article { background: var(--bl-page); }
.blog .kicker { padding-left: 0; }

/* Date + thème, petites capitales séparées par un tiret (commun à toutes les vues) */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35em 1.1em; font-family: var(--f-title); font-weight: 400; font-size: clamp(.68rem, .64rem + .15vw, .8rem); letter-spacing: .16em; text-transform: uppercase; color: var(--grey-700); }
.bl-meta > :first-child::before { content: "— "; }
.bl-meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 1em; margin-right: 1.1em; vertical-align: -.15em; background: currentColor; opacity: .45; }
.bl-meta a { text-decoration: none; transition: color .4s ease; }
.bl-meta a:hover { color: var(--mahogany); }
.bl-meta--light { color: #d8d3cf; }

/* ---------- 1. Couverture « À la une » ---------- */
.bl-open { display: flex; min-height: 100svh; padding: max(calc(var(--nav-h) + clamp(14px, 3vh, 40px)), calc(clamp(92px, 9vw, 9.4rem) * .845 + 22px)) clamp(12px, 2.6vw, 44px) clamp(14px, 3vh, 40px); }
.bl-panel {
	--pad: clamp(18px, 4vw, 72px);
	position: relative; flex: 1; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column;
	padding: clamp(18px, 3.4vh, 40px) var(--pad) clamp(18px, 3.4vh, 40px);
	background: var(--bl-dark); color: #ece9e6;
}
.bl-panel::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--bl-grain); opacity: .14; mix-blend-mode: screen; pointer-events: none; }
.bl-bar, .bl-rule, .bl-foot { position: relative; z-index: 3; }
.bl-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-family: var(--f-title); font-weight: 400; font-size: clamp(.72rem, .66rem + .2vw, .86rem); letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; }
.bl-bar__l { font-size: inherit; font-weight: inherit; }
.bl-bar__c { text-align: center; font-size: 1.25em; }
.bl-bar__r { display: flex; justify-content: flex-end; }
.bl-bar__r a { text-decoration: none; transition: color .4s ease; }
.bl-bar__r a:hover { color: var(--terra); }
.bl-rule { display: block; height: 1px; background: rgba(236, 233, 230, .38); margin-top: clamp(16px, 2.6vh, 30px); transform-origin: 0 50%; }

/* Les diapositives occupent tout le panneau, sous la barre */
.bl-slides { position: absolute; inset: 0; z-index: 0; }
.bl-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.bl-slide.is-active { visibility: visible; opacity: 1; transition: opacity 1.1s var(--ease), visibility 0s; }
.bl-slide__media { position: absolute; inset: 0; margin: 0; overflow: hidden; background: #3a3533; }
.bl-slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.bl-slide.is-active .bl-slide__media img { transform: scale(1); }
.bl-slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 17, .55) 0%, rgba(20, 18, 17, .05) 30%, rgba(20, 18, 17, .2) 50%, rgba(20, 18, 17, .82) 100%); }
.bl-slide__text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(clamp(18px, 3.4vh, 40px) + clamp(84px, 13vh, 130px)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.bl-slide__title { font-family: var(--f-display); font-size: clamp(2.3rem, 1.2rem + 3.2vw, 5.2rem); line-height: 1; max-width: 17ch; margin-top: .4em; color: #fff; }
.bl-slide__title a { text-decoration: none; }
.bl-slide__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* toute la diapositive est cliquable */
.bl-slide__text .bl-meta { justify-content: center; }
.bl-slide__text { text-shadow: 0 2px 28px rgba(20, 18, 17, .45); }
.bl-slide__text .bl-meta { color: #fff; }

/* Bas de couverture : compteur, flèches, « Lire l'article » */
.bl-foot { margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; padding-top: clamp(14px, 2vh, 22px); border-top: 1px solid rgba(236, 233, 230, .38); }
.bl-count { display: flex; align-items: baseline; gap: .4em; font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1vw, 2.2rem); line-height: 1; }
.bl-count i { font-style: normal; font-family: var(--f-title); font-weight: 200; }
.bl-count span { opacity: .55; }
.bl-nav { display: flex; align-items: center; gap: 14px; }
.bl-arrow { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; padding: 0; border: 1px solid rgba(236, 233, 230, .45); border-radius: 50%; background: transparent; color: inherit; font-size: 1rem; cursor: pointer; transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.bl-arrow:hover { background: #ece9e6; color: var(--bl-dark); border-color: #ece9e6; }
.bl-progress { position: relative; width: clamp(60px, 8vw, 120px); height: 1px; background: rgba(236, 233, 230, .3); overflow: hidden; }
.bl-progress i { position: absolute; inset: 0; background: #ece9e6; transform: scaleX(0); transform-origin: 0 50%; }
.bl-read { justify-self: end; font-family: var(--f-display); font-size: clamp(1.2rem, .9rem + .9vw, 2rem); line-height: 1.05; text-align: right; text-decoration: none; transition: color .4s ease; }
.bl-read:hover { color: var(--terra); }

/* ---------- 2. Tous les articles ---------- */
.bl-index { padding: var(--sec-lg) var(--edge); }
.bl-index__head { max-width: 78rem; margin-inline: auto; }
.bl-index__head .kicker { font-size: var(--t-h6); color: var(--grey-700); }
.bl-index__title { font-family: var(--f-display); font-size: clamp(2.6rem, 1.3rem + 4.2vw, 6.5rem); line-height: 1; }
.bl-index__rule { display: block; height: 1px; background: var(--bl-ink); margin-top: clamp(20px, 3vw, 40px); transform-origin: 0 50%; }
.bl-filters { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2.4vw, 36px); margin-top: clamp(16px, 2vw, 26px); }
.bl-filter { position: relative; padding: .5em 0; border: 0; background: none; color: var(--grey-700); cursor: pointer; font-family: var(--f-title); font-weight: 400; font-size: clamp(.74rem, .7rem + .15vw, .88rem); letter-spacing: .16em; text-transform: uppercase; transition: color .4s ease; }
.bl-filter sup { font-size: .7em; letter-spacing: .05em; margin-left: .35em; vertical-align: .55em; }
.bl-filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.bl-filter:hover, .bl-filter.is-active { color: var(--bl-ink); }
.bl-filter.is-active::after { transform: scaleX(1); }

.bl-list { list-style: none; margin: clamp(48px, 7vw, 110px) auto 0; padding: 0; max-width: 74rem; display: flex; flex-direction: column; gap: clamp(48px, 6.5vw, 110px); }
.bl-item[hidden] { display: none; }
.bl-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; color: inherit; text-decoration: none; }
.bl-row__media { grid-column: 1; grid-row: 1; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd6d1; }
.bl-row__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.bl-row__text { grid-column: 2; grid-row: 1; position: relative; z-index: 1; margin-left: calc(-1 * clamp(28px, 6vw, 110px)); padding: clamp(26px, 3.4vw, 56px) clamp(24px, 3.6vw, 60px); background: #fff; box-shadow: 0 24px 50px -36px rgba(21, 21, 21, .45); transition: box-shadow .8s var(--ease), transform .8s var(--ease); }
.bl-row__text::before { content: ""; position: absolute; left: clamp(12px, 1.4vw, 24px); top: clamp(26px, 3.4vw, 56px); width: 1px; height: 2.6em; background: var(--terra); }
.bl-row__no { position: absolute; right: clamp(16px, 2vw, 32px); top: clamp(12px, 1.6vw, 26px); font-family: var(--f-title); font-weight: 200; font-size: clamp(2.2rem, 1.4rem + 2vw, 4rem); line-height: 1; color: rgba(21, 21, 21, .12); }
.bl-row__title { font-family: var(--f-display); font-size: clamp(1.55rem, 1rem + 1.6vw, 2.8rem); line-height: 1.06; margin-top: .45em; max-width: 18ch; transition: color .5s ease; }
.bl-row__excerpt { font-weight: 300; font-size: var(--t-card); line-height: 1.7; color: var(--grey-700); margin-top: 1em; max-width: 42ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-row__more { display: inline-flex; gap: .6em; margin-top: 1.5em; font-family: var(--f-title); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.bl-row:hover .bl-row__title { color: var(--mahogany); }
.bl-row:hover .bl-row__text { transform: translateY(-4px); box-shadow: 0 34px 60px -36px rgba(21, 21, 21, .5); }
.bl-row:hover .arr { transform: translateX(6px); }

/* Zigzag : une ligne sur deux, la photo passe à droite (classe posée par blog.js pour suivre le filtre) */
.bl-item.is-flip .bl-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.bl-item.is-flip .bl-row__media { grid-column: 2; }
.bl-item.is-flip .bl-row__text { grid-column: 1; margin-left: 0; margin-right: calc(-1 * clamp(28px, 6vw, 110px)); }
.bl-empty { text-align: center; color: var(--grey-700); font-weight: 300; }

.bl-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(28px, 4vw, 52px); }

/* ---------- 3. Page article ---------- */
.ar-open { position: relative; padding-top: var(--nav-h); }
.ar-open__media { margin: 0; height: min(78svh, 52rem); min-height: 340px; overflow: hidden; background: #ddd6d1; }
.ar-open__media img { width: 100%; height: 100%; object-fit: cover; }
.ar-cardwrap { position: relative; z-index: 2; width: min(100% - 2 * var(--edge), 60rem); margin: calc(-1 * clamp(110px, 22vh, 240px)) 0 0 calc(var(--edge) + clamp(0px, 6vw, 8rem)); }
.ar-card { position: relative; padding: clamp(28px, 4vw, 64px) clamp(24px, 4.4vw, 72px) clamp(28px, 3.6vw, 56px); background: #fff; box-shadow: 0 30px 60px -44px rgba(21, 21, 21, .5); }
/* Bloc noir décalé derrière le titre (référence blog2) */
.ar-cardwrap__block { position: absolute; left: calc(-1 * clamp(16px, 3vw, 48px)); top: calc(-1 * clamp(16px, 3vw, 48px)); width: clamp(60px, 9vw, 150px); height: clamp(60px, 9vw, 150px); background: var(--bl-dark); }
.ar-card::after { content: ""; position: absolute; left: clamp(12px, 1.8vw, 30px); top: clamp(28px, 4vw, 64px); width: 1px; height: 2.6em; background: var(--terra); }
.ar-card__title { font-family: var(--f-display); font-size: clamp(2rem, 1.1rem + 2.8vw, 4.4rem); line-height: 1.04; margin-top: .45em; max-width: 20ch; }
.ar-card__lead { font-family: var(--f-title); font-weight: 300; font-size: var(--t-lead); line-height: 1.5; color: #3a3a3a; margin-top: 1.1em; max-width: 46ch; }
.ar-card__info { display: flex; flex-wrap: wrap; gap: .4em 1.6em; margin-top: 1.6em; padding-top: 1.1em; border-top: 1px solid var(--bl-hair); font-family: var(--f-title); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-700); }

.ar-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42rem) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); padding: clamp(56px, 8vw, 120px) var(--edge) var(--sec-lg); }
.ar-side { grid-column: 1; justify-self: end; align-self: start; position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; align-items: flex-end; gap: 1.4em; text-align: right; }
.ar-side__no { font-family: var(--f-display); font-size: clamp(1.8rem, 1.2rem + 1.4vw, 3rem); line-height: 1; }
.ar-side__no span { display: block; margin-top: .35em; font-family: var(--f-title); font-weight: 300; font-size: .82rem; letter-spacing: .16em; color: var(--grey-700); }
.ar-side__back { font-family: var(--f-title); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid currentColor; transition: color .4s ease; }
.ar-side__back:hover { color: var(--mahogany); }

.ar-text { grid-column: 2; font-size: clamp(1.02rem, .96rem + .22vw, 1.18rem); line-height: 1.8; color: #262626; }
.ar-text > * + * { margin-top: 1.15em; }
.ar-text > p:first-child::first-letter { float: left; font-family: var(--f-display); font-size: 4.6em; line-height: .82; margin: .06em .1em 0 0; color: var(--bl-ink); }
.ar-text h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.5rem); line-height: 1.1; margin-top: 2em; color: var(--bl-ink); }
.ar-text h3, .ar-text h4 { font-family: var(--f-title); font-weight: 400; font-size: clamp(1.15rem, 1rem + .45vw, 1.45rem); line-height: 1.25; margin-top: 1.8em; color: var(--bl-ink); }
.ar-text > :first-child { margin-top: 0; }
.ar-text h2 + *, .ar-text h3 + *, .ar-text h4 + * { margin-top: .7em; }
.ar-text strong { font-weight: 500; color: var(--bl-ink); }
.ar-text a { color: var(--mahogany); text-underline-offset: .2em; }
.ar-text ul, .ar-text ol { padding-left: 0; list-style: none; }
.ar-text li { position: relative; padding-left: 1.6em; }
.ar-text li + li { margin-top: .5em; }
.ar-text ul > li::before { content: "—"; position: absolute; left: 0; color: var(--terra); }
.ar-text ol { counter-reset: ar; }
.ar-text ol > li { counter-increment: ar; }
.ar-text ol > li::before { content: counter(ar) "."; position: absolute; left: 0; top: .15em; font-family: var(--f-title); font-weight: 300; font-size: .8em; color: var(--terra); }
.ar-text blockquote { margin: 2em 0; padding: 0 0 0 1.4em; border-left: 1px solid var(--terra); font-family: var(--f-title); font-weight: 300; font-size: 1.25em; line-height: 1.5; color: var(--bl-ink); }
.ar-sign { font-family: var(--f-display); font-size: var(--t-h6); margin-top: 2.4em !important; padding-top: .9em; border-top: 1px solid var(--bl-ink); display: inline-block; }

/* Article suivant : texte à gauche, photo sur un bloc noir décalé (référence blog2) */
.ar-next { padding: var(--sec-md) var(--edge) var(--sec-lg); border-top: 1px solid var(--bl-hair); }
.ar-next__link { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 6vw, 110px); max-width: 78rem; margin-inline: auto; color: inherit; text-decoration: none; }
.ar-next__title { font-family: var(--f-display); font-size: clamp(2rem, 1.1rem + 2.6vw, 4.2rem); line-height: 1.04; margin: .3em 0 .8em; transition: color .5s ease; }
.ar-next__link:hover .ar-next__title { color: var(--mahogany); }
.ar-next__media { position: relative; margin: 0 clamp(20px, 3vw, 48px) clamp(20px, 3vw, 48px) 0; aspect-ratio: 4 / 3; }
.ar-next__block { position: absolute; left: clamp(20px, 3vw, 48px); top: clamp(20px, 3vw, 48px); right: calc(-1 * clamp(20px, 3vw, 48px)); bottom: calc(-1 * clamp(20px, 3vw, 48px)); background: var(--bl-dark); transition: transform .9s var(--ease); }
.ar-next__media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.ar-next__link:hover .ar-next__block { transform: translate(-10px, -10px); }
.ar-next__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; max-width: 78rem; margin: clamp(48px, 6vw, 90px) auto 0; padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--bl-hair); }
.ar-next__prev { font-family: var(--f-title); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; max-width: 46ch; transition: color .4s ease; }
.ar-next__prev:hover { color: var(--mahogany); }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 991px) {
	.ar-body { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
	.ar-side { grid-column: 1; position: static; justify-self: start; flex-direction: row; align-items: baseline; gap: 2em; text-align: left; }
	.ar-side__no span { display: inline; margin-left: .4em; }
	.ar-text { grid-column: 1; max-width: 42rem; }
	.ar-cardwrap { margin-left: var(--edge); }
}
@media (max-width: 767px) {
	.bl-open { min-height: 0; height: max(560px, 92svh); padding-inline: 10px; }
	.bl-bar { grid-template-columns: 1fr auto; }
	.bl-bar__r { display: none; }
	.bl-bar__c { text-align: right; }
	.bl-slide__text { align-items: flex-start; text-align: left; bottom: calc(clamp(18px, 3.4vh, 40px) + 96px); }
	.bl-slide__text .bl-meta { justify-content: flex-start; }
	.bl-foot { grid-template-columns: auto 1fr; }
	.bl-nav { grid-column: 1 / -1; grid-row: 2; }
	.bl-progress { flex: 1; }

	.bl-row, .bl-item.is-flip .bl-row { grid-template-columns: minmax(0, 1fr); }
	.bl-row__media, .bl-item.is-flip .bl-row__media { grid-column: 1; grid-row: 1; width: 86%; }
	.bl-item.is-flip .bl-row__media { justify-self: end; }
	.bl-row__text, .bl-item.is-flip .bl-row__text { grid-column: 1; grid-row: 2; margin: -48px 0 0 8%; }
	.bl-item.is-flip .bl-row__text { margin: -48px 8% 0 0; }
	.bl-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); scrollbar-width: none; }
	.bl-filters::-webkit-scrollbar { display: none; }
	.bl-filter { white-space: nowrap; flex: none; }

	.ar-open__media { height: 62svh; }
	.ar-cardwrap { width: auto; margin: -80px 14px 0 calc(var(--edge) + 6px); }
	.ar-cardwrap__block { left: -14px; top: -14px; }
	.ar-next__link { grid-template-columns: minmax(0, 1fr); }
	.ar-next__media { order: -1; }
	.bl-cta__btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 22rem; }
	.bl-cta__btns .btn { justify-content: center; }
}

/* Sans animations */
.reduced .bl-slide, .reduced .bl-slide__media img { transition: none; }

/* 3 nov. 2026 : sans petites numérotations */
.bl-row__no, .bl-count { display: none !important; }
