/* ============================================================
   Article « Conseil » (single.php) + grille [ms_articles]
   Design Maison Éphémère. Tokens = :root du layout (var(--anthracite)…).
   ============================================================ */

.ms-article { background: var(--bg-cream, #FAFAF8); color: var(--text-primary, #1A1A1A); }
.ms-article .ms-icon { display: inline-block; vertical-align: middle; flex: none; }
.ms-article .ms-icon.is-fill { fill: currentColor; stroke: none; }

/* ---- Barre de progression de lecture ---- */
.ms-reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.ms-reading-progress__bar { display: block; height: 100%; width: 0; background: var(--brass, #C6A24F); transition: width .1s linear; }

/* ---- Conteneurs ---- */
.ms-article-head,
.ms-article-featured,
.ms-article-body,
.ms-related { padding-inline: max(var(--side, 80px), calc((100% - var(--content, 1280px)) / 2)); }

/* ============================================================
   HEADER ARTICLE
   ============================================================ */
.ms-article-head { background: var(--bg-cream, #FAFAF8); padding-top: 48px; }
.ms-article-head__inner { max-width: 760px; }

.ms-article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted, #9A9A95); margin-bottom: 24px; flex-wrap: wrap; }
.ms-article-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted, #9A9A95); text-decoration: none; }
.ms-article-breadcrumb a:hover { color: var(--accent, #1E3A5C); }
.ms-article-breadcrumb__sep { color: var(--border-subtle, #E8E8E3); }
.ms-article-breadcrumb__current { color: var(--text-secondary, #5C5C58); font-weight: 500; }

.ms-article-cat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--radius-pill, 9999px); background: var(--accent-soft, rgba(30,58,92,0.1)); color: var(--accent, #1E3A5C); font-size: 13px; font-weight: 600; text-decoration: none; }
.ms-article-cat:hover { background: rgba(30,58,92,0.16); }

.ms-article-title { font-family: var(--serif, "Ysabeau SC", serif); font-weight: 500; font-size: clamp(2rem, 4.5vw, 46px); line-height: 1.13; margin: 20px 0 22px; color: var(--text-primary, #1A1A1A); }

.ms-article-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--border-subtle, #E8E8E3); }
.ms-article-byline__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--anthracite, #13243C); color: var(--white, #fff); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; flex: none; }
.ms-article-byline__who { display: flex; flex-direction: column; }
.ms-article-byline__name { font-size: 15px; font-weight: 600; }
.ms-article-byline__role { font-size: 13px; color: var(--text-secondary, #5C5C58); }
.ms-article-byline__facts { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 14px; color: var(--text-muted, #9A9A95); flex-wrap: wrap; }
.ms-article-byline__facts span { display: inline-flex; align-items: center; gap: 6px; }
.ms-article-byline__dot { width: 3px; height: 3px; border-radius: 50%; background: #D8D8D2; }

/* ============================================================
   IMAGE À LA UNE
   ============================================================ */
.ms-article-featured { margin: 36px 0 0; }
.ms-article-featured { position: relative; }
.ms-article-featured__img { width: 100%; height: clamp(260px, 36vw, 440px); object-fit: cover; border-radius: var(--radius, 2px); box-shadow: 0 14px 40px rgba(26,26,26,0.10); display: block; }
.ms-article-featured::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius, 2px); background: linear-gradient(to top, rgba(19,36,60,0.4) 0%, rgba(19,36,60,0) 50%); pointer-events: none; }
.ms-article-featured__cap { position: absolute; bottom: 16px; right: 18px; font-size: 12px; color: rgba(255,255,255,0.85); z-index: 1; }

/* ============================================================
   CORPS + ASIDE
   ============================================================ */
.ms-article-body { padding-top: 44px; padding-bottom: 80px; background: var(--bg-cream, #FAFAF8); }
.ms-article-body__grid { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 64px; align-items: start; max-width: 1120px; }

.ms-article-lead { font-family: var(--sans, "Ysabeau", sans-serif); font-size: 21px; line-height: 1.6; color: var(--text-primary, #1A1A1A); font-weight: 500; margin: 0 0 30px; }

/* ---- En bref ---- */
.ms-enbref { background: var(--white, #fff); border: 1px solid var(--border-subtle, #E8E8E3); border-left: 3px solid var(--brass, #C6A24F); border-radius: var(--radius, 2px); padding: 26px 28px; margin: 0 0 38px; }
.ms-enbref__head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.ms-enbref__head .ms-icon { color: var(--brass, #C6A24F); }
.ms-enbref__head span { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--anthracite, #13243C); }
.ms-enbref__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ms-enbref__list li { display: flex; gap: 10px; font-size: 16px; line-height: 1.55; color: var(--text-secondary, #5C5C58); }
.ms-enbref__list li .ms-icon { color: var(--accent, #1E3A5C); margin-top: 3px; }
.ms-enbref__list li strong { color: var(--text-primary, #1A1A1A); font-weight: 700; }

/* ---- Prose (the_content) ---- */
.ms-prose p { font-size: 18px; line-height: 1.78; color: #33332F; margin: 0 0 22px; }
.ms-prose h2 { font-family: var(--serif, "Ysabeau SC", serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 30px); line-height: 1.2; color: var(--anthracite, #13243C); margin: 46px 0 18px; scroll-margin-top: 100px; }
.ms-prose h3 { font-family: var(--sans, "Ysabeau", sans-serif); font-weight: 600; font-size: 21px; color: var(--text-primary, #1A1A1A); margin: 30px 0 12px; }
.ms-prose strong { font-weight: 700; color: var(--text-primary, #1A1A1A); }
.ms-prose a { color: var(--accent, #1E3A5C); text-decoration: underline; text-underline-offset: 2px; }
.ms-prose img { border-radius: var(--radius, 2px); margin: 12px 0; }
.ms-prose ul { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.ms-prose ul li { position: relative; padding-left: 32px; font-size: 18px; line-height: 1.65; color: #33332F; }
.ms-prose ul li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--accent-soft, rgba(30,58,92,0.12)) no-repeat center / 13px 13px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A5C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ms-prose blockquote { border-left: 3px solid var(--brass, #C6A24F); padding: 6px 0 6px 26px; margin: 34px 0; }
.ms-prose blockquote p { font-family: var(--serif, "Ysabeau SC", serif); font-size: 25px; line-height: 1.35; color: var(--anthracite, #13243C); font-weight: 500; margin: 0 0 6px; }
.ms-prose blockquote cite { font-size: 14px; color: var(--text-muted, #9A9A95); font-style: normal; }

/* ---- CTA inline ---- */
.ms-article-ctaband { background: var(--anthracite, #13243C); border-radius: var(--radius, 2px); padding: 30px 32px; margin: 38px 0; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.ms-article-ctaband::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, rgba(198,162,79,0), var(--brass, #C6A24F), rgba(198,162,79,0)); }
.ms-article-ctaband__txt { flex: 1; min-width: 240px; }
.ms-article-ctaband__txt h3 { font-family: var(--serif, "Ysabeau SC", serif); font-weight: 500; font-size: 24px; color: var(--white, #fff); margin: 0 0 6px; }
.ms-article-ctaband__txt p { font-size: 15px; color: var(--text-light, #E5E5E0); line-height: 1.5; margin: 0; }
.ms-article-ctaband__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brass, #C6A24F); color: var(--anthracite, #13243C); padding: 14px 24px; border-radius: var(--radius, 2px); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.ms-article-ctaband__btn:hover { filter: brightness(1.06); }

/* ---- Tags + partage ---- */
.ms-article-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--border-subtle, #E8E8E3); }
.ms-article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-article-tag { padding: 7px 13px; border-radius: var(--radius-pill, 9999px); background: #F0F0EC; color: var(--text-secondary, #5C5C58); font-size: 13px; font-weight: 500; text-decoration: none; }
.ms-article-tag:hover { background: var(--accent-soft, rgba(30,58,92,0.1)); color: var(--accent, #1E3A5C); }
.ms-article-share { display: flex; align-items: center; gap: 10px; }
.ms-article-share__lbl { font-size: 13px; color: var(--text-muted, #9A9A95); font-weight: 500; }
.ms-article-share__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-subtle, #E8E8E3); display: flex; align-items: center; justify-content: center; color: var(--text-secondary, #5C5C58); text-decoration: none; background: none; cursor: pointer; transition: all .18s; }
.ms-article-share__btn:hover { border-color: var(--accent, #1E3A5C); color: var(--accent, #1E3A5C); }
.ms-article-share__btn.is-copied { border-color: var(--brass, #C6A24F); color: var(--brass, #C6A24F); }

/* ---- Bio auteur ---- */
.ms-author-bio { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-gray, #F5F5F3); border: 1px solid var(--border-subtle, #E8E8E3); border-radius: var(--radius, 2px); padding: 28px; margin-top: 30px; }
.ms-author-bio__avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--anthracite, #13243C); color: var(--white, #fff); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex: none; }
.ms-author-bio__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted, #9A9A95); margin-bottom: 4px; }
.ms-author-bio__name { font-family: var(--serif, "Ysabeau SC", serif); font-size: 21px; font-weight: 500; margin-bottom: 8px; }
.ms-author-bio__txt { font-size: 15.5px; color: var(--text-secondary, #5C5C58); line-height: 1.6; margin: 0; }

/* ============================================================
   ASIDE (sticky)
   ============================================================ */
.ms-article-aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 22px; }
.ms-toc { background: var(--white, #fff); border: 1px solid var(--border-subtle, #E8E8E3); border-radius: var(--radius, 2px); padding: 24px; }
.ms-toc__head { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted, #9A9A95); margin-bottom: 16px; }
.ms-toc__nav { display: flex; flex-direction: column; gap: 2px; }
.ms-toc__nav a { display: block; padding: 8px 0 8px 14px; font-size: 14.5px; line-height: 1.4; text-decoration: none; border-left: 2px solid var(--border-subtle, #E8E8E3); color: var(--text-secondary, #5C5C58); font-weight: 400; transition: all .18s; }
.ms-toc__nav a:hover { color: var(--accent, #1E3A5C); }
.ms-toc__nav a.is-active { border-left-color: var(--accent, #1E3A5C); color: var(--accent, #1E3A5C); font-weight: 600; }

.ms-devis-aside { background: var(--anthracite, #13243C); border-radius: var(--radius, 2px); padding: 24px; color: var(--white, #fff); position: relative; overflow: hidden; }
.ms-devis-aside::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, rgba(198,162,79,0), var(--brass, #C6A24F), rgba(198,162,79,0)); }
.ms-devis-aside > .ms-icon { color: var(--brass, #C6A24F); }
.ms-devis-aside h3 { font-family: var(--serif, "Ysabeau SC", serif); font-weight: 500; font-size: 21px; color: var(--white, #fff); margin: 12px 0 8px; line-height: 1.2; }
.ms-devis-aside p { font-size: 14px; color: var(--text-light, #E5E5E0); line-height: 1.5; margin: 0 0 18px; }
.ms-devis-aside a { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--brass, #C6A24F); color: var(--anthracite, #13243C); padding: 12px 16px; border-radius: var(--radius, 2px); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.ms-devis-aside a:hover { filter: brightness(1.06); }

/* ============================================================
   « À LIRE ENSUITE » + GRILLE [ms_articles]
   ============================================================ */
.ms-related { background: var(--bg-gray, #F5F5F3); border-top: 1px solid var(--border-subtle, #E8E8E3); padding-top: 60px; padding-bottom: 80px; }
.ms-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ms-related__head h2 { font-family: var(--serif, "Ysabeau SC", serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 30px); margin: 0; }
.ms-related__all { display: inline-flex; align-items: center; gap: 7px; color: var(--accent, #1E3A5C); font-size: 15px; font-weight: 600; text-decoration: none; }

.ms-conseils-grid { display: grid; gap: 24px; }
.ms-conseils-grid.ms-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ms-conseils-grid.ms-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ms-conseils-grid.ms-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ms-conseil-card { background: var(--white, #fff); border: 1px solid var(--border-subtle, #E8E8E3); border-radius: var(--radius, 2px); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(26,26,26,0.04); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ms-conseil-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(26,26,26,0.13); border-color: #D8C9A0; }
.ms-conseil-card__media { position: relative; height: 180px; background: var(--bg-gray, #F5F5F3); }
.ms-conseil-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-conseil-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted, #9A9A95); }
.ms-conseil-card__cat { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius, 2px); background: rgba(255,255,255,0.94); color: var(--accent, #1E3A5C); font-size: 12px; font-weight: 600; }
.ms-conseil-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.ms-conseil-card__meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted, #9A9A95); }
.ms-conseil-card__title { font-family: var(--sans, "Ysabeau", sans-serif); font-weight: 600; font-size: 19px; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-conseil-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--accent, #1E3A5C); font-size: 14px; font-weight: 600; padding-top: 4px; }

.ms-empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted, #9A9A95); }
.ms-empty-state .ms-icon { color: var(--border-subtle, #E8E8E3); margin-bottom: 12px; }
.ms-empty-state h3 { font-family: var(--serif, "Ysabeau SC", serif); font-weight: 500; margin: 0 0 6px; color: var(--text-secondary, #5C5C58); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
	.ms-article-body__grid { grid-template-columns: 1fr; gap: 40px; }
	.ms-article-aside { position: static; flex-direction: row; flex-wrap: wrap; }
	.ms-article-aside > * { flex: 1; min-width: 240px; }
	.ms-conseils-grid.ms-grid--3, .ms-conseils-grid.ms-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.ms-article-byline__facts { margin-left: 0; width: 100%; }
	.ms-conseils-grid.ms-grid--2, .ms-conseils-grid.ms-grid--3, .ms-conseils-grid.ms-grid--4 { grid-template-columns: 1fr; }
	.ms-toc { display: none; }
}
