/* ABX Fiche Livre - feuille unique, chargee une fois par page.
   Remplace les ~2500 caracteres de style recopies dans chaque article. */

:root { --abg-cp: #4f91d1; --abg-hero-top: 140px; }

/* --- Neutralisation du chrome d'article du theme, sans JavaScript --- */
body.abx-fiche #Subheader,
body.abx-fiche .section-post-header,
body.abx-fiche .post-header,
body.abx-fiche .single-photo-wrapper.image,
body.abx-fiche .wp-caption-text,
body.abx-fiche .post-meta,
body.abx-fiche section.section-post-footer,
body.abx-fiche section.section-post-about,
body.abx-fiche section.section-post-related,
body.abx-fiche section.section-post-comments,
body.abx-fiche .header_placeholder { display: none !important; }

/* Les blocs pleine largeur (ABE Related Audiobooks) sortent du flux avec
   width:100vw. Or 100vw compte la barre de defilement, ce qui cree quelques
   pixels de debordement horizontal et fait grandir la page. */
body.abx-fiche { overflow-x: hidden; }

body.abx-fiche,
body.abx-fiche #Wrapper,
body.abx-fiche #Content,
body.abx-fiche .content_wrapper,
body.abx-fiche .sections_group,
body.abx-fiche .post-wrapper-content,
body.abx-fiche section.the_content,
body.abx-fiche .section_wrapper,
body.abx-fiche .the_content_wrapper {
	background: #08090f !important;
	background-image: none !important;
}
body.abx-fiche #Content,
body.abx-fiche .content_wrapper,
body.abx-fiche .sections_group,
body.abx-fiche .post-wrapper-content,
body.abx-fiche section.the_content,
body.abx-fiche .section_wrapper,
body.abx-fiche .the_content_wrapper {
	padding-top: 0 !important; margin-top: 0 !important;
	padding-bottom: 0 !important; margin-bottom: 0 !important;
}

/* --- Fiche --- */
.abg-wrap * { box-sizing: border-box; }
.abg-wrap {
	font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
	color: #e8e4dc;
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	background: #08090f;
}

.abx-author-box {
	max-width: 980px;
	margin: 0 auto;
	padding: 26px 22px 30px;
	background: #ffffff;
	color: #121922;
	border-radius: 14px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
}
.abx-author-box > * {
	width: 100% !important;
	max-width: 100% !important;
	left: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.abx-author-box a { color: #1f4f8b; }

@media (max-width: 1040px) {
	.abx-author-box { margin: 0 16px; }
}

/* Bloc du plugin de suggestions maison, rendu par le pont apres la fiche.
   Ces blocs sortent du flux en 100vw chez eux : on les ramene a la largeur
   reelle de la page, sinon ils rouvrent le decalage qu'on vient de fermer. */
.abx-external-related > * {
	width: 100% !important;
	max-width: 100% !important;
	left: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.abg-hero {
	padding: var(--abg-hero-top) 20px 0;
	background: linear-gradient(180deg, color-mix(in srgb, var(--abg-cp) 12%, #08090f) 0%, #08090f 100%);
	border-bottom: 1px solid rgba(255,255,255,.07);
}
.abg-hero-inner {
	max-width: 1100px; margin: 0 auto;
	display: grid; grid-template-columns: 220px 1fr; gap: 40px;
	align-items: end; padding-bottom: 36px;
}
.abg-cover-img {
	width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,.65); display: block;
	max-width: 100% !important; height: auto !important;
}
.abg-hero-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.18;
	color: #e8e4dc; margin: 0 0 8px;
}
/* Le mot-cle reste dans le h1, mais sur sa propre ligne et dans un autre
   registre : sans-serif, capitales espacees, couleur d'accent. Le titre du
   livre garde ainsi tout le poids visuel. */
.abg-hero-title-main { display: block; }
.abg-hero-title-kw {
	display: block;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: clamp(.7rem, 1.1vw, .88rem);
	font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	line-height: 1.3; color: var(--abg-cp); margin-top: 9px;
}
.abg-hero-title-kw--before { margin-top: 0; margin-bottom: 9px; }

.abg-hero-author { font-size: .98rem; color: #7a7e8e; margin: 8px 0 18px; }

.abg-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.abg-chip {
	display: inline-block; padding: 4px 12px; background: #1a1e2e;
	border: 1px solid rgba(255,255,255,.07); border-radius: 20px;
	font-size: .76rem; color: #7a7e8e; text-decoration: none;
	transition: border-color .2s, color .2s;
}
a.abg-chip:hover { border-color: var(--abg-cp); color: #e8e4dc; }

.abg-hero-cta-wrap { margin-top: 22px; }
.abg-hero-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 16px 36px; background: var(--abg-cp); color: #000 !important;
	border-radius: 8px; font-size: 1.1rem; font-weight: 700;
	text-decoration: none !important; border: none; cursor: pointer;
	line-height: 1; white-space: nowrap; width: auto;
	box-shadow: 0 8px 24px color-mix(in srgb, var(--abg-cp) 35%, transparent);
	transition: filter .2s, transform .15s; font-family: inherit; letter-spacing: .02em;
}
.abg-hero-cta svg { flex-shrink: 0; vertical-align: middle; position: relative; top: -1px; }
.abg-hero-cta:hover {
	filter: brightness(1.25); transform: translateY(-2px);
	color: #000 !important; text-decoration: none !important;
	box-shadow: 0 8px 32px color-mix(in srgb, var(--abg-cp) 65%, transparent);
}

.abg-body {
	max-width: 1100px; margin: 0 auto; padding: 40px 20px 80px;
	display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start;
}
.abg-sidebar { position: sticky; top: 80px; }

.abg-block-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.22rem; font-weight: 600; color: #e8e4dc;
	margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.abg-block-title::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.07); }

.abg-synopsis-block { margin-bottom: 24px; }
.abg-synopsis-block p { font-size: .98rem; line-height: 1.88; color: #7a7e8e; margin-bottom: 14px; }
.abg-synopsis-block p:last-child { margin-bottom: 0; }

.abg-review-box {
	background: #0e1118; border: 1px solid rgba(255,255,255,.07);
	border-left: 3px solid var(--abg-cp); border-radius: 12px;
	padding: 22px 24px; margin-bottom: 24px;
}
.abg-review-header {
	display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
	padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.abg-review-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.abg-review-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.abg-review-byline { font-size: .74rem; color: #3a3e50; font-weight: 500; }
.abg-review-byline strong { color: #e8e4dc; font-weight: 600; }
.abg-review-stars { color: var(--abg-cp); font-size: .92rem; letter-spacing: 2px; }
.abg-review-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.05rem; font-weight: 600; color: #e8e4dc; margin-bottom: 11px;
}
.abg-review-box p { font-size: .94rem; line-height: 1.82; color: #7a7e8e; margin-bottom: 10px; }
.abg-review-more { overflow: hidden; max-height: 0; transition: max-height .45s ease; }
.abg-review-more.open { max-height: 4000px; }
.abg-review-toggle {
	display: inline-block; margin-top: 6px; font-size: .84rem; font-weight: 600;
	color: var(--abg-cp); cursor: pointer; background: none; border: none; padding: 0;
	text-decoration: underline; text-underline-offset: 3px; font-family: inherit;
	transition: opacity .2s;
}
.abg-review-toggle::after { content: " \25BC"; font-size: .7rem; vertical-align: middle; }
.abg-review-toggle.open::after { content: " \25B2"; }
.abg-review-toggle:hover { opacity: .75; }
.abg-review-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.abg-review-tag {
	display: inline-block; padding: 3px 10px;
	background: color-mix(in srgb, var(--abg-cp) 10%, #141720);
	border: 1px solid color-mix(in srgb, var(--abg-cp) 25%, transparent);
	color: #7a7e8e; border-radius: 20px; font-size: .7rem; font-weight: 500;
}

.abg-trial-box {
	background: #0e1118; border: 1px solid rgba(255,255,255,.07);
	border-radius: 12px; padding: 20px 24px; margin-bottom: 16px;
}
.abg-trial-box p { font-size: .93rem; line-height: 1.82; color: #7a7e8e; margin-bottom: 11px; }
.abg-trial-box p:last-child { margin-bottom: 0; }
.abg-trial-box b { color: var(--abg-cp); }

.abg-cancel-box {
	text-align: center; margin-bottom: 16px; padding: 12px 20px;
	background: #0e1118; border: 1px solid rgba(255,255,255,.07); border-radius: 10px;
}
.abg-cancel-link { color: var(--abg-cp); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.abg-cancel-link:hover { opacity: .75; color: var(--abg-cp); }

.abg-trial-btn-wrap { text-align: center; margin: 8px 0 32px; }
.abg-trial-download-btn { display: block !important; width: 100% !important; text-decoration: none !important; color: inherit !important; }
.abg-trial-btn-inner {
	background: #0e1118; border: 2px solid var(--abg-cp); border-radius: 16px;
	padding: 28px 36px; text-align: center;
	box-shadow: 0 4px 18px color-mix(in srgb, var(--abg-cp) 15%, transparent);
	transition: box-shadow .2s, transform .2s, background .2s; width: 100%;
}
.abg-trial-download-btn:hover .abg-trial-btn-inner {
	background: color-mix(in srgb, var(--abg-cp) 12%, #0e1118);
	box-shadow: 0 8px 28px color-mix(in srgb, var(--abg-cp) 35%, transparent);
	transform: translateY(-2px);
}
.abg-trial-btn-icon {
	width: 76px; height: 76px; border-radius: 50%; background: var(--abg-cp);
	display: flex !important; align-items: center; justify-content: center;
	margin: 0 auto 16px; transition: transform .2s;
}
.abg-trial-download-btn:hover .abg-trial-btn-icon { transform: scale(1.07); }
.abg-trial-btn-icon svg { width: 38px; height: 38px; fill: #fff; display: block; }
.abg-trial-btn-text { font-size: 1rem; font-weight: 700; color: #e8e4dc; line-height: 1.4; display: block; margin: 0; }

.abg-related-section-label {
	font-size: .67rem; letter-spacing: .1em; text-transform: uppercase;
	color: #3a3e50; margin-bottom: 9px;
}
.abg-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.abg-mini-card {
	display: flex; gap: 9px; align-items: center; background: #0e1118;
	border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: 9px;
	text-decoration: none !important; color: inherit; transition: border-color .2s;
	min-width: 0;
}
.abg-mini-card:hover { border-color: var(--abg-cp); }
.abg-mini-cover { width: 36px; height: 36px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #1a1e2e; }
.abg-mini-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.abg-mini-meta { min-width: 0; }
.abg-mini-title { font-size: .77rem; font-weight: 600; color: #e8e4dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abg-mini-author { font-size: .69rem; color: #3a3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.abg-details-sidebar {
	background: #0e1118; border: 1px solid rgba(255,255,255,.07);
	border-top: 3px solid var(--abg-cp); border-radius: 12px;
	padding: 18px 20px; margin-bottom: 20px;
}
.abg-details-sidebar h3 {
	font-family: 'Playfair Display', Georgia, serif; font-size: .9rem; font-weight: 600;
	color: #e8e4dc; margin-bottom: 10px; padding-bottom: 8px;
	border-bottom: 1px solid rgba(255,255,255,.07);
}
.abg-details-grid { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; align-items: baseline; }
.abg-dl { font-size: .76rem; font-weight: 600; color: var(--abg-cp); white-space: nowrap; }
.abg-dv { font-size: .86rem; color: #7a7e8e; }

.abg-cta-box {
	background: color-mix(in srgb, var(--abg-cp) 7%, #0e1118);
	border: 1px solid color-mix(in srgb, var(--abg-cp) 22%, transparent);
	border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.abg-cta-box-title {
	font-family: 'Playfair Display', Georgia, serif; font-size: .95rem; font-weight: 600;
	color: #e8e4dc; margin-bottom: 4px; text-align: center;
}
/* Le bloc CTA est sombre : un bleu ardoise en sous-titre y passait pour une
   faute d'impression. Meme famille que le titre, simplement attenuee. */
.abg-cta-box-sub { font-size: .76rem; color: rgba(232,228,220,.62); margin-bottom: 14px; line-height: 1.5; text-align: center; }
/* ABE CTA Normalizer cherche un titre juste avant la liste de boutons. Le
   notre est un div, pas un h1-h6 : il ne le reconnait pas, en insere un a lui
   (« Audiobook (Free with Trial) ») et lui applique une couleur heritee du
   theme, en style inline !important. D'ou le bleu sur fond sombre.
   Le bloc a deja son titre, celui-la fait doublon : on le retire. */
body.abx-fiche .abg-cta-box .abe-cta-heading--inserted,
body.abx-fiche .abg-cta-box .abe-cta-subline { display: none !important; }

.abg-cta-cover {
	width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px;
	margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.5); display: block;
	max-width: 100% !important; height: auto !important;
}

/* Correction demandee : de l'air entre les boutons (4px -> 10px). */
.abg-cta-list { display: flex; flex-direction: column; gap: 10px; }
.abg-cta-btn-main {
	display: flex; align-items: center; justify-content: center; width: 100%;
	min-height: 48px; padding: 12px 16px; text-align: center;
	background: var(--abg-cp); color: #000 !important; border-radius: 7px;
	font-size: .88rem; font-weight: 700; text-decoration: none !important; line-height: 1.2;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--abg-cp) 30%, transparent);
	transition: filter .18s, transform .15s;
}
.abg-cta-btn-main:hover { filter: brightness(1.1); transform: translateY(-1px); color: #000 !important; text-decoration: none !important; }
.abg-cta-disclaimer { font-size: .63rem; color: #3a3e50; margin-top: 14px; line-height: 1.55; }

@media (max-width: 860px) {
	.abg-body { grid-template-columns: 1fr; }
	.abg-sidebar { position: static; margin-bottom: 24px; order: -1; }
	.abg-hero-inner { grid-template-columns: 140px 1fr; gap: 24px; }
	.abg-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
	.abg-hero { padding: calc(var(--abg-hero-top) * .6) 16px 0; }
	.abg-hero-inner { grid-template-columns: 1fr; text-align: center; }
	.abg-hero-inner > div:first-child { width: 140px; margin: 0 auto; }
	.abg-chips { justify-content: center; }
	.abg-body { padding: 28px 16px 60px; }
}
