/* Cabinet Patricia Bégoc — blog : liste, thématiques, article, auteur. TEVENNEC DIGITAL */

html body.bg-blog #main-content { padding-top: 0 !important; background: #fff; }
.bg-blog #main-content .bg-wrap { width: 90%; max-width: 1180px; margin: 0 auto; }
@media (max-width: 980px) { .bg-blog #main-content .bg-wrap { width: calc(100% - 40px); } }
.bg-blog #main-content p { padding-bottom: 0; }

/* Fil d'Ariane (Rank Math) */
.bg-crumbs { font-size: 14px; line-height: 1.5; color: var(--bg-muted); margin-bottom: 20px; }
.bg-crumbs a { color: var(--bg-blue-ink); }
.bg-crumbs .separator { margin: 0 6px; color: #9fb0bb; }
.bg-crumbs .last { display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (max-width: 680px) { .bg-crumbs .last { max-width: 22ch; } }

.bg-eyebrow { font-family: var(--bg-font-title); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bg-blue-ink); padding: 0 0 10px !important; }

/* En-tête des listes : bandeau sombre */
.bg-hero { background: var(--bg-navy); padding: 48px 0 44px; color: #d4e4ec; }
.bg-hero .bg-crumbs, .bg-hero .bg-crumbs a { color: #b9d2de; }
.bg-hero .bg-crumbs a:hover { color: #fff; }
.bg-hero .bg-eyebrow { color: var(--bg-sky); }
.bg-hero h1 { color: #fff !important; font-size: clamp(1.9rem, 3.4vw, 2.8rem) !important; line-height: 1.15 !important; font-weight: 800; padding: 0 0 14px !important; max-width: 900px; }
.bg-hero__page { font-weight: 500; opacity: .75; }
.bg-hero__intro { max-width: 720px; }
.bg-hero__intro p { font-size: 1.12rem; line-height: 1.65; color: #d4e4ec; }

/* Filtres par thématique */
.bg-filters { margin-top: 26px; }
.bg-filters ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0 !important; }
.bg-filters li { padding: 0; }
.bg-filters a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.3; transition: background .2s, border-color .2s; }
.bg-filters a:hover { border-color: var(--bg-sky); }
.bg-filters a[aria-current="page"] { background: var(--bg-sky); border-color: var(--bg-sky); color: var(--bg-navy); }

/* Listes */
.bg-list { padding: 56px 0 64px; }
.bg-list__title, .bg-related h2 { color: var(--bg-navy) !important; font-size: 1.75rem !important; line-height: 1.25 !important; font-weight: 800; padding: 0 0 24px !important; }
.bg-list__count { color: var(--bg-muted); font-size: 15px; margin-bottom: 20px; }
.bg-featured { margin-bottom: 56px; }
.bg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 980px) { .bg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 680px) { .bg-grid { grid-template-columns: minmax(0, 1fr); } }

/* Cartes */
.bg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bg-line); border-radius: var(--bg-r); overflow: hidden; transition: box-shadow .3s ease, transform .3s ease; }
.bg-card:hover { box-shadow: var(--bg-shadow); transform: translateY(-3px); }
.bg-card__img { display: block; aspect-ratio: 8 / 5; overflow: hidden; background: var(--bg-mist); }
.bg-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bg-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-mist), #d7ebf4); }
.bg-card:hover .bg-card__img img { transform: scale(1.03); }
.bg-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.bg-card__title { font-size: 1.2rem !important; line-height: 1.32 !important; font-weight: 700; padding: 12px 0 10px !important; }
.bg-card__title a { color: var(--bg-navy) !important; }
.bg-card__title a:hover { color: var(--bg-blue) !important; }
.bg-card__excerpt { font-size: .98rem; line-height: 1.6; color: var(--bg-muted); padding: 0 0 16px !important; }
.bg-card .bg-meta { margin-top: auto; }
.bg-card--featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.bg-card--featured .bg-card__img { aspect-ratio: auto; min-height: 100%; }
.bg-card--featured .bg-card__body { padding: 40px 44px; justify-content: center; }
.bg-card--featured .bg-card__title { font-size: clamp(1.5rem, 2.2vw, 2rem) !important; line-height: 1.22 !important; }
.bg-card--featured .bg-card__excerpt { font-size: 1.06rem; }
.bg-card--featured .bg-meta { margin-top: 0; }
@media (max-width: 980px) {
	.bg-card--featured { grid-template-columns: minmax(0, 1fr); }
	.bg-card--featured .bg-card__img { aspect-ratio: 8 / 5; }
	.bg-card--featured .bg-card__body { padding: 24px; }
}

/* Badge et méta */
.bg-badge { align-self: flex-start; display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg-mist); border: 1px solid var(--bg-line); color: var(--bg-blue-ink) !important; font-family: var(--bg-font-title); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6; }
.bg-badge:hover { background: var(--bg-blue); border-color: var(--bg-blue); color: #fff !important; }
.bg-meta { font-size: 14px; line-height: 1.5; color: var(--bg-muted); }
.bg-meta a { color: var(--bg-blue-ink); font-weight: 600; }

/* Pagination */
.bg-pagination { margin-top: 44px; }
.bg-pagination ul { list-style: none; padding: 0 !important; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bg-pagination li { padding: 0; }
.bg-pagination a, .bg-pagination span { display: inline-block; min-width: 44px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--bg-line); text-align: center; color: var(--bg-navy); font-weight: 600; }
.bg-pagination a:hover { border-color: var(--bg-blue); }
.bg-pagination .current { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }
.bg-pagination .dots { border-color: transparent; }

/* Encart d'appel */
.bg-postcta { margin-top: 56px; background: var(--bg-mist); border: 1px solid var(--bg-line); border-radius: var(--bg-r); padding: 30px; }
.bg-postcta__title { font-family: var(--bg-font-title); font-weight: 800; font-size: 1.35rem; line-height: 1.3; color: var(--bg-navy); padding-bottom: 8px !important; }
.bg-article .bg-postcta { margin-top: 40px; }

/* ===== Article ===== */
.bg-shero { background: var(--bg-mist); padding: 44px 0 96px; }
.bg-shero h1 { color: var(--bg-navy) !important; font-size: clamp(1.8rem, 3.2vw, 2.7rem) !important; line-height: 1.2 !important; font-weight: 800; padding: 16px 0 14px !important; max-width: 900px; }
.bg-chapo { max-width: 820px; font-size: 1.18rem; line-height: 1.65; color: var(--bg-ink); padding: 0 0 14px !important; }
.bg-cover { margin-top: -64px !important; }
.bg-cover img { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-radius: 20px; }
@media (max-width: 980px) {
	.bg-shero { padding: 32px 0 72px; }
	.bg-cover { margin-top: -48px !important; }
	.bg-cover img { aspect-ratio: 3 / 2; border-radius: var(--bg-r); }
}
.bg-blog .bg-shero:last-child, .bg-article--nocover { padding-top: 48px; }

.bg-article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding: 56px 0 48px; }
@media (max-width: 980px) { .bg-article { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; } }

.bg-article__content { max-width: 760px; font-size: 1.1rem; line-height: 1.8; color: var(--bg-ink); }
.bg-article__content > * + * { margin-top: 0; }
.bg-article__content p { padding-bottom: 1.1em !important; }
.bg-article__content h2 { color: var(--bg-navy) !important; font-size: 1.6rem !important; line-height: 1.3 !important; font-weight: 800; padding: 1.2em 0 .5em !important; scroll-margin-top: 130px; }
.bg-article__content h3 { color: var(--bg-navy) !important; font-size: 1.28rem !important; line-height: 1.35 !important; font-weight: 700; padding: .9em 0 .4em !important; }
.bg-article__content h4 { font-size: 1.1rem !important; padding: .8em 0 .3em !important; }
.bg-article__content ul, .bg-article__content ol { padding: 0 0 1.1em 1.3em !important; }
.bg-article__content li { padding: 0 0 .45em; }
.bg-article__content ul li::marker { color: var(--bg-sky); }
.bg-article__content ol li::marker { color: var(--bg-blue); font-weight: 700; }
.bg-article__content a:not(.bg-btn):not(.bg-authorbox__more) { color: var(--bg-blue-ink); text-decoration: underline; text-decoration-color: var(--bg-sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bg-article__content a:not(.bg-btn):hover { color: var(--bg-navy); }
.bg-article__content strong { color: #10232d; }
.bg-article__content .wp-block-image { margin: 1.4em 0; }
.bg-article__content .wp-block-image img { border-radius: var(--bg-r); height: auto; }
.bg-article__content .wp-block-quote { border-left: 4px solid var(--bg-sky); background: var(--bg-mist); padding: 18px 24px; margin: 1.4em 0; border-radius: 0 var(--bg-r) var(--bg-r) 0; font-style: normal; }
.bg-article__content .wp-block-quote p:last-child { padding-bottom: 0 !important; }
.bg-article__content .wp-block-table { margin: 1.4em 0; overflow-x: auto; }
.bg-article__content .wp-block-table table { border-collapse: collapse; width: 100%; font-size: .98rem; }
.bg-article__content .wp-block-table td, .bg-article__content .wp-block-table th { border: 1px solid var(--bg-line); padding: 10px 12px; vertical-align: top; }
.bg-article__content .wp-block-table th, .bg-article__content .wp-block-table thead td { background: var(--bg-mist); font-weight: 700; }

/* Modèles de blocs : réponse courte, à retenir, références */
.bg-short-answer, .bg-keypoints, .bg-refs { border-radius: var(--bg-r); padding: 24px 28px !important; margin: 0 0 1.6em; }
.bg-short-answer { background: #fff; border: 1px solid var(--bg-line); border-left: 5px solid var(--bg-sky); box-shadow: var(--bg-shadow); }
.bg-keypoints { background: var(--bg-mist); border: 1px solid var(--bg-line); margin-top: 1.6em; }
.bg-keypoints h3 { padding-top: 0 !important; }
.bg-refs { background: #fff; border: 1px dashed var(--bg-line); font-size: .98rem; }
.bg-short-answer > :last-child, .bg-keypoints > :last-child, .bg-refs > :last-child { padding-bottom: 0 !important; }
.bg-sa-label { font-family: var(--bg-font-title); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bg-blue-ink); padding-bottom: 6px !important; }

/* Encadré auteur */
.bg-authorbox { display: flex; gap: 22px; align-items: flex-start; margin-top: 32px; padding: 26px; border: 1px solid var(--bg-line); border-radius: var(--bg-r); }
.bg-authorbox__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.bg-authorbox__name { font-family: var(--bg-font-title); font-weight: 800; font-size: 1.15rem; padding: 0 !important; }
.bg-authorbox__name a { color: var(--bg-navy) !important; text-decoration: none !important; }
.bg-authorbox__job { color: var(--bg-blue-ink); font-weight: 600; font-size: .98rem; padding: 0 0 8px !important; }
.bg-authorbox__bio { font-size: 1rem; line-height: 1.6; color: var(--bg-muted); padding: 0 0 8px !important; }
.bg-authorbox__more { font-weight: 700; color: var(--bg-blue-ink) !important; font-size: .98rem; }
@media (max-width: 680px) { .bg-authorbox { flex-direction: column; } }

/* Barre latérale */
.bg-aside { position: sticky; top: 120px; }
.bg-aside__inner { display: flex; flex-direction: column; gap: 20px; }
.bg-aside__title { color: var(--bg-navy); font-family: var(--bg-font-title); font-weight: 800; font-size: 1rem; padding: 0 0 10px !important; }
.bg-sidecta { background: var(--bg-navy); color: #cfe0e8; border-radius: var(--bg-r); padding: 26px; }
.bg-sidecta__title { color: #fff; font-family: var(--bg-font-title); font-weight: 800; font-size: 1.25rem; line-height: 1.3; padding: 0 0 10px !important; }
.bg-sidecta p { font-size: .98rem; line-height: 1.6; }
.bg-sidecta .bg-btn { margin-top: 20px; width: 100%; }
.bg-sidecta__tel { display: flex; flex-direction: column; margin-top: 18px; padding-top: 16px !important; border-top: 1px solid rgba(255, 255, 255, .15); }
.bg-sidecta__tel span { font-size: 12.5px; color: #a8c3cf; }
.bg-sidecta__tel a { color: #fff !important; font-weight: 700; font-size: 1.15rem; }
.bg-toc { padding: 22px 24px; border: 1px solid var(--bg-line); border-radius: var(--bg-r); }
.bg-toc ol { list-style: none; padding: 0 !important; margin: 0; }
.bg-toc li { padding: 0; }
.bg-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--bg-line); color: var(--bg-ink); font-size: 15px; line-height: 1.4; transition: color .2s, border-color .2s; }
.bg-toc a:hover { color: var(--bg-navy); border-left-color: var(--bg-sky); }
@media (max-width: 980px) {
	.bg-aside { position: static; }
	.bg-toc { display: none; }
}

/* À lire aussi */
.bg-related { background: var(--bg-mist); padding: 64px 0; margin-top: 16px; }
.bg-related .bg-card__title { font-size: 1.12rem !important; }
.bg-related__all { text-align: center; padding: 32px 0 0 !important; }
.bg-related__all a { color: var(--bg-blue-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--bg-sky); text-underline-offset: 3px; }

/* ===== Page auteur ===== */
.bg-ahero { background: var(--bg-mist); padding: 56px 0; }
.bg-ahero__in { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: center; }
.bg-ahero__photo { margin: 0; }
.bg-ahero__photo img { width: 100%; height: auto; aspect-ratio: 7 / 8; object-fit: cover; border-radius: 20px; display: block; box-shadow: var(--bg-shadow); }
.bg-ahero h1 { color: var(--bg-navy) !important; font-size: clamp(2rem, 3.6vw, 3rem) !important; line-height: 1.12 !important; font-weight: 800; padding: 0 0 6px !important; }
.bg-ahero__job { font-family: var(--bg-font-title); font-weight: 700; font-size: 1.15rem; color: var(--bg-blue-ink); padding: 0 0 18px !important; }
.bg-ahero__bio p { font-size: 1.08rem; line-height: 1.7; padding: 0 0 12px !important; max-width: 720px; }
.bg-creds { list-style: none; padding: 0 !important; margin: 10px 0 0; display: grid; gap: 8px; }
.bg-creds li { position: relative; padding: 0 0 0 26px; line-height: 1.5; }
.bg-creds li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-sky); box-shadow: 0 0 0 3px rgba(67, 191, 232, .2); }
@media (max-width: 980px) {
	.bg-ahero__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.bg-ahero__photo { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
	.bg-card, .bg-card__img img { transition: none; }
	.bg-card:hover, .bg-card:hover .bg-card__img img { transform: none; }
}

@media (max-width: 680px) {
	.bg-filters { margin-right: -20px; }
	.bg-filters ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px !important; scroll-snap-type: x proximity; scrollbar-width: none; }
	.bg-filters ul::-webkit-scrollbar { display: none; }
	.bg-filters li { flex: none; scroll-snap-align: start; }
	.bg-hero { padding: 36px 0 32px; }
	.bg-hero__intro p { font-size: 1.02rem; }
}
