/*
Theme Name: e-Kitab
Theme URI: https://e-kitab.fr
Author: Webdeclic
Author URI: https://webdeclic.com
Description: Thème bloc sur mesure pour e-kitab.fr : pages de vente et bibliothèque numérique, sans constructeur de pages.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.2
Version: 0.6.4
License: GPL-2.0-or-later
Text Domain: ekitab
*/

/*
 * Identité « Bleu e-Kitab » : blanc, bleu e-Kitab, marine, touches soleil.
 * Police unique Lexend (conçue pour faciliter la lecture), Readex Pro pour l'arabe.
 * Les réglages de base vivent dans theme.json ; ce fichier ne contient que
 * ce que theme.json ne sait pas exprimer.
 */

/* ---------- Base ---------- */

:where(body) {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(img, video) {
	max-width: 100%;
	height: auto;
}

:where(strong, b) {
	font-weight: 600;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--sun);
	outline-offset: 3px;
}

::selection {
	background: var(--wp--preset--color--sun-soft);
	color: var(--wp--preset--color--contrast);
}

/* En-tête, contenu et pied de page se touchent : les sections gèrent leurs propres marges. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

.ekitab-vente > .wp-block-post-content > .alignfull:first-child {
	margin-block-start: 0;
}

/* Texte arabe : sens de lecture et interlignage adaptés. */
:where([lang="ar"]) {
	direction: rtl;
	font-family: var(--wp--preset--font-family--arabic);
	line-height: 1.9;
}

/* Mot mis en avant dans un titre (format « italique » de l'éditeur) :
   bleu e-Kitab, souligné d'un trait soleil. */
:where(h1, h2, h3) em {
	font-style: normal;
	color: var(--wp--preset--color--primary);
	background-image: linear-gradient(transparent 70%, rgb(255 200 61 / 0.6) 70%, rgb(255 200 61 / 0.6) 94%, transparent 94%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

:where(.is-style-section-navy, .is-style-section-blue) :where(h1, h2, h3) em {
	color: var(--wp--preset--color--sun);
	background-image: none;
}

/* Chapeaux en grand corps : interlignage un peu plus serré. */
p.has-large-font-size {
	line-height: 1.55;
}

/* ---------- Styles de blocs (voir functions.php) ---------- */

/* Paragraphe « surtitre » : pastille au-dessus d'un titre. */
.is-style-eyebrow {
	display: block;
	width: fit-content;
	padding: 0.4em 1em 0.4em 0.85em;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.is-style-eyebrow::before {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	margin-inline-end: 0.6em;
	border-radius: 50%;
	background: var(--wp--preset--color--sun);
	box-shadow: 0 0 0 3px rgb(255 200 61 / 0.3);
	vertical-align: 0.05em;
}

:where(.is-style-section-navy, .is-style-section-blue) .is-style-eyebrow {
	background: rgb(255 255 255 / 0.12);
	color: var(--wp--preset--color--base);
}

/* Liste « coches » : réassurance, contenu d'une offre. */
.is-style-check {
	list-style: none;
	padding-inline-start: 0;
}

.is-style-check > li {
	position: relative;
	padding-inline-start: 1.9em;
}

.is-style-check > li + li {
	margin-top: 0.5em;
}

.is-style-check > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.22em;
	width: 1.3em;
	height: 1.3em;
	border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 68% no-repeat;
}

/* Variante en ligne (réassurance sous un bouton). */
.is-style-check.is-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em 1.75em;
}

.is-style-check.is-inline > li + li {
	margin-top: 0;
}

/* Image « livre » : ombre portée qui suit la forme (PNG détouré). */
.is-style-book img {
	filter: drop-shadow(0 22px 30px rgb(15 30 61 / 0.18)) drop-shadow(0 4px 8px rgb(15 30 61 / 0.08));
}

/* Image « vidéo » : vignette cliquable avec bouton lecture (voir ekitab-core). */
.is-style-video {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--lifted);
}

.is-style-video a {
	position: relative;
	display: block;
}

.is-style-video img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.is-style-video a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, transparent 40%, rgb(15 30 61 / 0.35));
}

.is-style-video a::after {
	content: "";
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	width: 84px;
	height: 84px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--wp--preset--color--base) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231e66e0' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") 56% 50% / 42% no-repeat;
	box-shadow: 0 0 0 10px rgb(255 255 255 / 0.3), 0 12px 30px rgb(15 30 61 / 0.3);
	transition: transform 0.2s ease;
}

.is-style-video a:hover img {
	transform: scale(1.03);
}

.is-style-video a:hover::after {
	transform: translate(-50%, -50%) scale(1.08);
}

.ekitab-video-frame {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* Liste « étapes » : numéros dans des pastilles. */
ol.is-style-steps {
	list-style: none;
	padding-inline-start: 0;
	counter-reset: ekitab-step;
	--ekitab-steps-gap: var(--wp--preset--spacing--40);
	display: grid;
	gap: var(--ekitab-steps-gap);
	/* Autant de colonnes que d'étapes (4 au plus sur grand écran), moins si la place manque. */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

ol.is-style-steps > li {
	counter-increment: ekitab-step;
	position: relative;
	margin: 0;
	padding: 3.5rem var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	border-radius: 20px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
}

ol.is-style-steps > li::before {
	content: counter(ekitab-step);
	position: absolute;
	top: var(--wp--preset--spacing--40);
	left: var(--wp--preset--spacing--40);
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 599px) {
	ol.is-style-steps {
		gap: var(--wp--preset--spacing--30);
	}

	ol.is-style-steps > li {
		padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) 3.75rem;
	}

	ol.is-style-steps > li::before {
		top: var(--wp--preset--spacing--30);
		left: var(--wp--preset--spacing--30);
	}
}

ol.is-style-steps > li:last-child::before {
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--contrast);
}

/* Citation « témoignage ». */
.wp-block-quote.is-style-testimonial {
	position: relative;
	margin: 0;
	height: 100%;
	padding: var(--wp--preset--spacing--50);
	padding-top: calc(var(--wp--preset--spacing--50) + 1.5rem);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--soft);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.65;
}

.wp-block-quote.is-style-testimonial::before {
	content: "“";
	position: absolute;
	top: 0.6rem;
	left: var(--wp--preset--spacing--50);
	font-size: 4rem;
	line-height: 1;
	font-weight: 700;
	color: var(--wp--preset--color--sky);
}

.wp-block-quote.is-style-testimonial cite {
	display: block;
	margin-top: var(--wp--preset--spacing--30);
	font-style: normal;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

/* ---------- Composants de page de vente (classes additionnelles) ---------- */

/* Les sections pleine largeur d'une page de vente se touchent. */
.ekitab-vente .wp-block-post-content > .alignfull {
	margin-block: 0;
}

/* Surtitre centré. */
.is-style-eyebrow.has-text-align-center {
	margin-inline: auto;
}

/* Une carte garde ses couleurs, même posée sur une section foncée. */
.is-style-card {
	color: var(--wp--preset--color--contrast);
}

.is-style-card :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--contrast);
}

.is-style-card a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--primary);
}

.is-style-card .wp-element-button:not(.is-style-outline *) {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.is-style-card .wp-element-button:not(.is-style-outline *):hover {
	background-color: var(--wp--preset--color--primary-dark);
}

.is-style-card .is-style-eyebrow {
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary-dark);
}

/* Bouton pleine largeur. */
.wp-block-button.is-full,
.wp-block-button.is-full .wp-block-button__link {
	width: 100%;
	text-align: center;
}

/* Prix dans une offre. */
.ekitab-price {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--wp--preset--color--contrast);
}

/* Cartes d'une grille : image en tête, texte dessous. */
.ekitab-grid > .is-style-card {
	height: 100%;
}

.ekitab-grid > .is-style-card > .wp-block-image:is(:first-child, .ekitab-badge + *) {
	margin: calc(-1 * var(--wp--preset--spacing--50)) calc(-1 * var(--wp--preset--spacing--50)) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--primary-soft);
	border-radius: 20px 20px 0 0;
	overflow: hidden;
}

.ekitab-grid > .is-style-card > .wp-block-image:is(:first-child, .ekitab-badge + *) img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	padding: var(--wp--preset--spacing--30);
}

.ekitab-grid > .is-style-card > .wp-block-image.is-cover:is(:first-child, .ekitab-badge + *) img {
	object-fit: cover;
	padding: 0;
}

/* Petite carte « point » (problème, bénéfice) : pastille de couleur en tête. */
.ekitab-point::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 0.4rem;
	margin-bottom: var(--wp--preset--spacing--30);
	border-radius: 999px;
	background: var(--wp--preset--color--sun);
}

.ekitab-point.is-coral::before {
	background: var(--wp--preset--color--coral);
}

.ekitab-point.is-blue::before {
	background: var(--wp--preset--color--sky);
}

/* Sceau de garantie. */
.ekitab-seal {
	display: grid;
	place-items: center;
	width: 8.5rem;
	height: 8.5rem;
	margin-inline: auto;
	border-radius: 50%;
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 0 0 8px var(--wp--preset--color--sun-soft);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
}

.ekitab-seal strong {
	display: block;
	font-size: 2.6rem;
	font-weight: 700;
	letter-spacing: -0.04em;
}

/* FAQ : blocs « Détails » natifs (sans JavaScript). */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-details summary {
	position: relative;
	padding-inline-end: 2.5rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 1.75rem;
	height: 1.75rem;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--wp--preset--color--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231e66e0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center / 55% no-repeat;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.wp-block-details > :not(summary) {
	color: var(--wp--preset--color--contrast-muted);
}

/* ---------- Halo derrière un visuel (classe additionnelle « ekitab-halo ») ---------- */

.ekitab-halo {
	position: relative;
	isolation: isolate;
}

.ekitab-halo::before,
.ekitab-halo::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}

/* Grand disque bleu ciel. */
.ekitab-halo::before {
	width: min(88%, 480px);
	aspect-ratio: 1;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle at 30% 30%, #fff 0, var(--wp--preset--color--primary-soft) 45%, rgb(59 163 248 / 0.35) 100%);
}

/* Petite pastille soleil. */
.ekitab-halo::after {
	width: min(16%, 84px);
	aspect-ratio: 1;
	right: 8%;
	top: 6%;
	background: var(--wp--preset--color--sun);
	box-shadow: 0 10px 24px rgb(255 200 61 / 0.45);
}

/* ---------- Accroche de page de vente ---------- */

.ekitab-hero {
	background-image: linear-gradient(180deg, var(--wp--preset--color--base-alt) 0%, var(--wp--preset--color--base) 100%);
}

@media (max-width: 781px) {
	.ekitab-hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.ekitab-hero .wp-block-button,
	.ekitab-hero .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.ekitab-hero .is-style-book img {
		max-width: min(320px, 80vw);
	}
}

/* Accueil : titre d'une famille de livres (au-dessus de sa rangée de cartes). */
.ekitab-famille {
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--40);
}

/* ---------- En-tête ---------- */

.ekitab-header .wp-block-site-title {
	font-size: 1.625rem;
	line-height: 1;
}

/* Logo provisoire : le « e » en bleu ciel, en attendant le vrai logo. */
.ekitab-header .wp-block-site-title a {
	display: inline-block;
}

.ekitab-header .wp-block-site-title a::first-letter {
	color: var(--wp--preset--color--sky);
}

.ekitab-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.ekitab-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* Sous-menu « Apprendre l'arabe » : petite carte sous le lien (ordinateur), liste en retrait (menu mobile). */
.ekitab-header .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	box-shadow: 0 14px 34px rgba(15, 30, 61, 0.12);
	min-width: 15rem;
	padding: 0.4rem;
}

.ekitab-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: 10px;
	padding: 0.6rem 0.8rem;
}

.ekitab-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background-color: var(--wp--preset--color--tint, #eef4fd);
}

.ekitab-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0;
	box-shadow: none;
	padding: 0.4rem 0 0 1rem;
}

.ekitab-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

@media (max-width: 599px) {
	.ekitab-header .ekitab-header__account {
		display: none;
	}
}

/* Boutons compacts (en-tête). */
.wp-block-button.is-small .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
	padding: 0.6em 1.25em;
	box-shadow: none;
}

.wp-block-button.is-small.is-style-outline .wp-block-button__link {
	padding: calc(0.6em - 2px) calc(1.25em - 2px);
}

/* ---------- Pied de page ---------- */

.ekitab-footer {
	border-top: 1px solid rgb(255 255 255 / 0.08);
}

/* Appel final : halo pour le détacher du pied de page, de la même couleur. */
.ekitab-final {
	background-image:
		radial-gradient(40rem 22rem at 15% 50%, rgb(59 163 248 / 0.22), transparent 70%),
		radial-gradient(30rem 18rem at 90% 0%, rgb(255 200 61 / 0.12), transparent 70%) !important;
}

.ekitab-footer .wp-block-site-title a {
	display: inline-block;
}

.ekitab-footer .wp-block-site-title a::first-letter {
	color: var(--wp--preset--color--sky);
}

.ekitab-footer .wp-block-navigation {
	font-weight: 300;
}

.ekitab-footer .ekitab-footer__title {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sun);
}

/* ---------- Accessibilité ---------- */

.screen-reader-text:not(:focus) {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* =====================================================================
   Page de vente : composants de conversion (v0.4)
   ===================================================================== */

/* Titres équilibrés, paragraphes sans veuve. */
:where(h1, h2, h3) {
	text-wrap: balance;
}

:where(p, li) {
	text-wrap: pretty;
}

/* Sections de vente : rythme vertical régulier entre surtitre, titre et chapô. */
.ekitab-vente section > .is-style-eyebrow + :is(h1, h2) {
	margin-top: var(--wp--preset--spacing--30);
}

.ekitab-lead {
	max-width: 62ch;
	margin-inline: auto !important;
}

/* ---------- Icônes ---------- */

/* Pastille d'icône en tête de carte. */
.ekitab-icon::before {
	content: "";
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: var(--wp--preset--spacing--30);
	border-radius: 16px;
	background: var(--wp--preset--color--primary-soft) var(--ekitab-icon) center / 1.6rem no-repeat;
}

.ekitab-icon.is-sun::before {
	background-color: var(--wp--preset--color--sun-soft);
}

.ekitab-icon.is-coral::before {
	background-color: #ffe6de;
}

/* Élément de réassurance : icône + texte sur une ligne. */
.ekitab-trust {
	display: flex;
	align-items: center;
	gap: 0.65em;
	margin: 0;
	font-weight: 500;
	line-height: 1.3;
}

.ekitab-trust::before {
	content: "";
	flex: none;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 12px;
	background: var(--wp--preset--color--base) var(--ekitab-icon) center / 1.25rem no-repeat;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
}

.ekitab-trustbar {
	padding-block: var(--wp--preset--spacing--40);
	border-block: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base);
}

.ekitab-trustbar > .wp-block-group {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

@media (max-width: 599px) {
	.ekitab-trustbar > .wp-block-group {
		grid-template-columns: 1fr 1fr;
	}

	.ekitab-trust {
		align-items: flex-start;
		font-size: var(--wp--preset--font-size--x-small);
	}

	.ekitab-trust::before {
		width: 2rem;
		height: 2rem;
		border-radius: 10px;
		background-size: 1rem;
	}
}

/* ---------- Accroche ---------- */

.ekitab-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60rem 30rem at 100% 0%, rgb(59 163 248 / 0.16), transparent 60%),
		radial-gradient(40rem 24rem at 0% 100%, rgb(255 200 61 / 0.12), transparent 60%),
		linear-gradient(180deg, var(--wp--preset--color--base-alt) 0%, var(--wp--preset--color--base) 100%);
}

.ekitab-hero h1 {
	font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.4rem);
}

.ekitab-hero .wp-block-buttons {
	align-items: center;
}

/* Bouton d'achat principal : flèche qui avance au survol. */
.ekitab-cta .wp-block-button__link::after {
	content: "";
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	margin-inline-start: 0.55em;
	vertical-align: -0.17em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.ekitab-cta .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.ekitab-cta .wp-block-button__link {
	font-size: 1.125rem;
	padding: 1em 1.8em;
}

/* Mini-témoignage sous l'appel à l'action. */
.ekitab-mini-quote {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	max-width: 30rem;
	margin-top: var(--wp--preset--spacing--40) !important;
	padding: 0.75rem 1rem 0.75rem 0.75rem;
	border-radius: 16px;
	background: rgb(255 255 255 / 0.75);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	backdrop-filter: blur(6px);
}

.ekitab-mini-quote > * {
	margin: 0 !important;
}

.ekitab-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wp--preset--color--sky), var(--wp--preset--color--primary));
	color: var(--wp--preset--color--base);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1;
}

.ekitab-avatar.is-sun {
	background: linear-gradient(135deg, var(--wp--preset--color--sun), #ffad33);
	color: var(--wp--preset--color--contrast);
}

.ekitab-avatar.is-coral {
	background: linear-gradient(135deg, #ff9b7d, var(--wp--preset--color--coral));
}

.ekitab-mini-quote p:last-child {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

/* Étiquettes flottantes autour du livre. */
.ekitab-chips {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ekitab-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0 !important;
	padding: 0.55em 0.95em 0.55em 0.6em;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--soft);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	white-space: nowrap;
}

.ekitab-chip::before {
	content: "";
	width: 1.7em;
	height: 1.7em;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-soft) var(--ekitab-icon) center / 60% no-repeat;
}

.ekitab-chip.is-pos-1 { top: 8%; left: -2%; }
.ekitab-chip.is-pos-2 { top: 46%; right: -4%; }
.ekitab-chip.is-pos-3 { bottom: 8%; left: 4%; }

@media (max-width: 781px) {
	.ekitab-chips {
		position: static;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem;
		margin-top: var(--wp--preset--spacing--30);
	}

	.ekitab-chip {
		position: static;
		padding: 0.45em 0.8em 0.45em 0.45em;
		font-size: 0.75rem;
	}
}

@media (max-width: 599px) {
	/* Boutons d'achat : tiennent sur une ligne, même dans une carte. */
	.ekitab-cta .wp-block-button__link {
		font-size: 1rem;
		padding: 0.95em 1.1em;
	}

	.is-style-card {
		padding-inline: 1.25rem;
	}

	.ekitab-final .wp-block-buttons,
	.ekitab-final .wp-block-button,
	.ekitab-final .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	/* Boutons pleine largeur dans les sections de vente. */
	.ekitab-sample .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.ekitab-sample .wp-block-button,
	.ekitab-sample .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.ekitab-testimonial.is-featured > .ekitab-testimonial__text {
		font-size: var(--wp--preset--font-size--medium);
	}
}

/* ---------- Comparatif avant / après ---------- */

.ekitab-compare > .is-style-card {
	height: 100%;
}

.ekitab-compare .is-bad {
	background: #fbfcfe;
	box-shadow: none;
}

.ekitab-compare .is-good {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary), var(--wp--preset--shadow--lifted);
}

.ekitab-compare h3 {
	font-size: var(--wp--preset--font-size--medium);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ekitab-compare .is-bad h3 {
	color: var(--wp--preset--color--contrast-muted);
}

.ekitab-compare .is-good h3 {
	color: var(--wp--preset--color--primary);
}

/* Liste « croix » (ce qui ne va pas). */
.is-style-cross {
	list-style: none;
	padding-inline-start: 0;
	color: var(--wp--preset--color--contrast-muted);
}

.is-style-cross > li {
	position: relative;
	padding-inline-start: 1.9em;
}

.is-style-cross > li + li {
	margin-top: 0.6em;
}

.is-style-cross > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.22em;
	width: 1.3em;
	height: 1.3em;
	border-radius: 50%;
	background: #ffe6de url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23e2553a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.is-style-check > li + li,
.is-style-cross > li + li {
	margin-top: 0.6em;
}

/* ---------- Encadré « Le saviez-vous ? » ---------- */

.ekitab-callout {
	position: relative;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) calc(var(--wp--preset--spacing--40) + 3.25rem);
	border-radius: 18px;
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.ekitab-callout::before {
	content: "";
	position: absolute;
	top: var(--wp--preset--spacing--40);
	left: var(--wp--preset--spacing--40);
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 12px;
	background: var(--wp--preset--color--sun-soft) var(--ekitab-icon) center / 1.25rem no-repeat;
}

.ekitab-callout > * {
	margin-block: 0 !important;
}

.ekitab-callout > * + * {
	margin-top: 0.35em !important;
}

.ekitab-callout strong {
	color: var(--wp--preset--color--contrast);
}

/* ---------- Grilles de cartes ---------- */

.ekitab-grid > .is-style-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
	.ekitab-grid > .is-style-card:hover {
		transform: translateY(-4px);
		box-shadow: var(--wp--preset--shadow--lifted);
	}
}

.ekitab-grid > .is-style-card h3 {
	font-size: var(--wp--preset--font-size--large);
}

.ekitab-grid > .is-style-card > :last-child {
	margin-bottom: 0;
}

/* Pastille « Offert », « Gratuit »… en haut d'une carte. */
.ekitab-badge {
	display: inline-block;
	width: fit-content;
	padding: 0.3em 0.8em;
	border-radius: 999px;
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ekitab-grid > .is-style-card.has-badge {
	position: relative;
}

.ekitab-grid > .is-style-card.has-badge > .ekitab-badge {
	position: absolute;
	z-index: 1;
	top: var(--wp--preset--spacing--30);
	right: var(--wp--preset--spacing--30);
	margin: 0;
}

/* ---------- Témoignages (cartes « ekitab-testimonial ») ---------- */

.ekitab-testimonial {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-top: calc(var(--wp--preset--spacing--50) + 1.75rem) !important;
}

.ekitab-testimonial::before {
	content: "\201C";
	position: absolute;
	top: 0.4rem;
	left: var(--wp--preset--spacing--50);
	font-size: 4.5rem;
	line-height: 1;
	font-weight: 700;
	color: var(--wp--preset--color--sky);
}

.ekitab-testimonial > .ekitab-testimonial__text {
	flex: 1;
	margin: 0;
}

.ekitab-testimonial.is-featured {
	grid-column: 1 / -1;
	background: linear-gradient(135deg, var(--wp--preset--color--base) 55%, var(--wp--preset--color--primary-soft)) !important;
}

.ekitab-testimonial.is-featured > .ekitab-testimonial__text {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	max-width: 58ch;
}

.ekitab-person {
	display: flex !important;
	align-items: center;
	gap: 0.75rem;
	margin-top: var(--wp--preset--spacing--40) !important;
}

.ekitab-person > * {
	margin: 0 !important;
}

.ekitab-person__name {
	font-weight: 600;
	line-height: 1.25;
}

.ekitab-source {
	display: block;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-muted);
}

/* ---------- Offre ---------- */

.ekitab-offer-card {
	position: relative;
	padding-top: calc(var(--wp--preset--spacing--50) + 1rem) !important;
	overflow: hidden;
	box-shadow: 0 30px 60px rgb(15 30 61 / 0.25) !important;
}

.ekitab-offer-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: linear-gradient(90deg, var(--wp--preset--color--sky), var(--wp--preset--color--primary), var(--wp--preset--color--sun));
}

.ekitab-price-row {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ekitab-price-row > * {
	margin: 0 !important;
}

.ekitab-price-note {
	padding: 0.3em 0.75em;
	border-radius: 999px;
	background: var(--wp--preset--color--sun-soft);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.ekitab-payments::before {
	content: "";
	display: inline-block;
	width: 1.05em;
	height: 1.05em;
	margin-inline-end: 0.4em;
	vertical-align: -0.18em;
	background: var(--ekitab-icon) center / contain no-repeat;
}

/* ---------- Garantie ---------- */

.ekitab-guarantee {
	background:
		radial-gradient(30rem 16rem at 0% 0%, rgb(255 200 61 / 0.2), transparent 65%),
		var(--wp--preset--color--base) !important;
}

.ekitab-seal {
	position: relative;
	width: 9.5rem;
	height: 9.5rem;
	background: radial-gradient(circle at 35% 30%, #ffe08a, var(--wp--preset--color--sun) 60%);
	box-shadow: 0 0 0 8px var(--wp--preset--color--sun-soft), 0 0 0 9px rgb(255 200 61 / 0.5), 0 18px 40px rgb(255 200 61 / 0.35);
}

/* ---------- Extrait gratuit ---------- */

.ekitab-sample .wp-block-image {
	max-width: 340px;
	margin-inline: auto;
	padding: 12px;
}

.ekitab-sample .wp-block-image img {
	border-radius: 12px;
	box-shadow: var(--wp--preset--shadow--lifted);
	transform: rotate(-2deg);
	transition: transform 0.3s ease;
}

.ekitab-sample .wp-block-image:hover img {
	transform: rotate(0deg) scale(1.02);
}

/* ---------- En-tête des pages de vente ---------- */

.ekitab-header-vente {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(255 255 255 / 0.88);
	backdrop-filter: saturate(1.4) blur(10px);
}

.admin-bar .ekitab-header-vente {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.ekitab-header-vente .ekitab-header-vente__note {
	display: flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	color: var(--wp--preset--color--contrast-muted);
}

.ekitab-header-vente .ekitab-header-vente__note::before {
	content: "";
	width: 1.15em;
	height: 1.15em;
	background: var(--ekitab-icon) center / contain no-repeat;
}

@media (max-width: 781px) {
	.ekitab-header-vente .ekitab-header-vente__note {
		display: none;
	}
}

/* ---------- Barre d'achat collante (voir ekitab-core/assets/js/sticky-cta.js) ---------- */

.ekitab-sticky-cta {
	position: fixed;
	z-index: 60;
	left: 50%;
	bottom: max(0.75rem, env(safe-area-inset-bottom));
	width: min(100% - 1.5rem, 46rem);
	margin: 0 !important;
	padding: 0.6rem 0.6rem 0.6rem 1.25rem !important;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	box-shadow: 0 18px 40px rgb(15 30 61 / 0.35);
	transform: translate(-50%, calc(100% + 2rem));
	visibility: hidden;
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.35s;
}

.ekitab-sticky-cta.is-visible {
	transform: translate(-50%, 0);
	visibility: visible;
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.ekitab-sticky-cta > * {
	margin: 0 !important;
}

.ekitab-sticky-cta .ekitab-sticky-cta__title {
	font-weight: 600;
	line-height: 1.25;
	font-size: var(--wp--preset--font-size--small);
}

.ekitab-sticky-cta .ekitab-sticky-cta__title strong {
	color: var(--wp--preset--color--sun);
}

.ekitab-sticky-cta .wp-block-button__link {
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--contrast);
	box-shadow: none;
	padding: 0.75em 1.4em;
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
}

.ekitab-sticky-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 599px) {
	.ekitab-sticky-cta {
		bottom: 0;
		width: 100%;
		border-radius: 18px 18px 0 0;
		padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)) !important;
	}

	/* Sur mobile : uniquement le bouton, pleine largeur. */
	.ekitab-sticky-cta .ekitab-sticky-cta__title {
		display: none;
	}

	.ekitab-sticky-cta > .wp-block-buttons,
	.ekitab-sticky-cta .wp-block-button,
	.ekitab-sticky-cta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.ekitab-sticky-cta .wp-block-button__link {
		font-size: var(--wp--preset--font-size--medium);
		padding: 0.85em 1em;
	}
}

/* Dans l'éditeur, la barre est affichée à sa place pour pouvoir la modifier. */
.editor-styles-wrapper .ekitab-sticky-cta {
	position: static;
	transform: none;
	visibility: visible;
	margin-inline: auto !important;
}

/* ---------- Icônes ---------- */

/* ICONS:START — généré par tools/icons.py, ne pas modifier à la main. */
.i-bolt { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M13 2 4.5 13.5H11L10 22l8.5-11.5H12z'/></svg>"); }
.i-users { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3.5'/><path d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><circle cx='17' cy='9' r='2.5'/><path d='M16.5 14.2c2.9.3 5 2.4 5 5.8'/></svg>"); }
.i-shield { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 4.5 6v6c0 4.6 3.2 8 7.5 9 4.3-1 7.5-4.4 7.5-9V6z'/><path d='m8.5 12 2.5 2.5 4.5-5'/></svg>"); }
.i-lock { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>"); }
.i-book { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5.5c2.2-1 5.2-1 9 1 3.8-2 6.8-2 9-1v13c-2.2-1-5.2-1-9 1-3.8-2-6.8-2-9-1z'/><path d='M12 6.5v13'/></svg>"); }
.i-chat { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5h16v11H9.5L4 20z'/><path d='M8 9.5h8M8 12.5h5'/></svg>"); }
.i-heart { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.2a4.3 4.3 0 0 1 7.5 2.6C19.5 15.4 12 20 12 20z'/></svg>"); }
.i-pencil { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20l1-4.5L16 4.5l3.5 3.5-11 11z'/><path d='m14 6.5 3.5 3.5'/></svg>"); }
.i-star { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/></svg>"); }
.i-printer { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 9V3h10v6'/><rect x='3' y='9' width='18' height='8' rx='2'/><path d='M7 14h10v7H7z'/></svg>"); }
.i-play { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M10 8.5v7l5.5-3.5z'/></svg>"); }
.i-infinity { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 8.5c-2 0-3.5 1.6-3.5 3.5S5 15.5 7 15.5c3.5 0 6.5-7 10-7 2 0 3.5 1.6 3.5 3.5S19 15.5 17 15.5c-3.5 0-6.5-7-10-7z'/></svg>"); }
.i-gift { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='18' height='4' rx='1'/><path d='M5 12v9h14v-9M12 8v13'/><path d='M12 8C11 5 8 4 7 5.5S8.5 8 12 8zm0 0c1-3 4-4 5-2.5S15.5 8 12 8z'/></svg>"); }
.i-clock { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3.5 2'/></svg>"); }
.i-school { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 9.5 12 4.5l10 5-10 5z'/><path d='M6 11.5v5c3.3 2.2 8.7 2.2 12 0v-5M22 9.5v5'/></svg>"); }
.i-eye { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>"); }
.i-download { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12M7 10l5 5 5-5M4 21h16'/></svg>"); }
.i-trophy { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 4h8v5a4 4 0 0 1-8 0z'/><path d='M8 6H4.5a3 3 0 0 0 3.5 4M16 6h3.5a3 3 0 0 1-3.5 4M12 13v4M8 21h8M9.5 17h5v4h-5z'/></svg>"); }
.i-moon { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/></svg>"); }
.i-check { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7.5'/></svg>"); }
.i-x { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6.5 6.5l11 11M17.5 6.5l-11 11'/></svg>"); }
.i-arrow { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>"); }
.i-calendar { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='5' width='17' height='16' rx='2'/><path d='M3.5 10h17M8 3v4M16 3v4'/></svg>"); }
.i-smile { --ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e66e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8.5 14.5c1.8 2 5.2 2 7 0M9 9.5h.01M15 9.5h.01'/></svg>"); }
/* ICONS:END */

/* =====================================================================
   Phase 4 : page Ramadan et accueil
   ===================================================================== */

/* ---------- Variante « chaude » (Ramadan, enfants) ---------- */

.ekitab-hero.is-warm {
	background:
		radial-gradient(56rem 28rem at 100% 0%, rgb(255 200 61 / 0.22), transparent 60%),
		radial-gradient(40rem 24rem at 0% 100%, rgb(255 122 89 / 0.12), transparent 60%),
		linear-gradient(180deg, #fffaf0 0%, var(--wp--preset--color--base) 100%);
}

.is-warm .ekitab-halo::before {
	background: radial-gradient(circle at 30% 30%, #fff 0, var(--wp--preset--color--sun-soft) 45%, rgb(255 200 61 / 0.45) 100%);
}

.is-warm .ekitab-halo::after {
	background: var(--wp--preset--color--coral);
	box-shadow: 0 10px 24px rgb(255 122 89 / 0.4);
}

/* Bandeau saisonnier (date du prochain Ramadan…). */
.ekitab-season {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	text-align: center;
}

.ekitab-season > * {
	margin: 0 !important;
}

.ekitab-season .ekitab-season__date {
	padding: 0.35em 0.9em;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--sun);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
}

/* Programme en 3 périodes : listes compactes. */
.ekitab-days ul {
	font-size: var(--wp--preset--font-size--small);
}

.ekitab-days .is-style-check > li + li {
	margin-top: 0.4em;
}

.ekitab-days .is-style-eyebrow {
	margin-bottom: 0;
}

/* Étoiles d'avis. */
.ekitab-stars {
	display: inline-block;
	color: var(--wp--preset--color--sun);
	letter-spacing: 0.1em;
	font-size: 1.05em;
	line-height: 1;
}

/* ---------- Vente croisée ---------- */

.ekitab-crosssell {
	border: 2px dashed var(--wp--preset--color--sky) !important;
	box-shadow: none !important;
	background: var(--wp--preset--color--base-alt) !important;
}

.ekitab-crosssell .wp-block-image img {
	max-width: 140px;
	transform: rotate(-4deg);
	filter: drop-shadow(0 10px 18px rgb(15 30 61 / 0.18));
}

/* ---------- Accueil : pile de couvertures ---------- */

.ekitab-stack {
	position: relative;
	min-height: 26rem;
}

.ekitab-stack > .wp-block-image {
	position: absolute;
	margin: 0 !important;
	width: 52%;
}

.ekitab-stack > .wp-block-image img {
	filter: drop-shadow(0 22px 30px rgb(15 30 61 / 0.2)) drop-shadow(0 4px 8px rgb(15 30 61 / 0.08));
}

.ekitab-stack > .wp-block-image:nth-child(1) {
	left: 0;
	top: 12%;
	transform: rotate(-8deg);
	z-index: 1;
}

.ekitab-stack > .wp-block-image:nth-child(2) {
	left: 24%;
	top: 0;
	z-index: 3;
}

.ekitab-stack > .wp-block-image:nth-child(3) {
	right: 0;
	top: 14%;
	transform: rotate(8deg);
	z-index: 2;
}

@media (max-width: 781px) {
	.ekitab-stack {
		min-height: 0;
		aspect-ratio: 1 / 0.82;
		max-width: 26rem;
		margin-inline: auto;
	}
}

/* ---------- Accueil : cartes produit ---------- */

.ekitab-product > .wp-block-image:first-child {
	background: linear-gradient(160deg, var(--wp--preset--color--primary-soft), var(--wp--preset--color--base-alt)) !important;
}

.ekitab-product.is-warm > .wp-block-image:first-child {
	background: linear-gradient(160deg, var(--wp--preset--color--sun-soft), #fff6e8) !important;
}

.ekitab-product .ekitab-price {
	font-size: var(--wp--preset--font-size--x-large);
}

.ekitab-product .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40);
}

/* Carte produit en version large (2 colonnes internes) sur grand écran. */
@media (min-width: 1000px) {
	.ekitab-products .ekitab-product > .wp-block-image:first-child img {
		aspect-ratio: 16 / 10;
	}
}

/* ---------- Accueil : bibliothèque ---------- */

.ekitab-shelf {
	display: flex !important;
	justify-content: center;
	align-items: flex-end;
	gap: var(--wp--preset--spacing--40);
}

.ekitab-shelf > .wp-block-image {
	flex: 0 1 11rem;
	margin: 0 !important;
}

.ekitab-shelf > .wp-block-image img {
	border-radius: 6px;
	filter: drop-shadow(0 16px 22px rgb(15 30 61 / 0.2));
	transition: transform 0.25s ease;
}

.ekitab-shelf > .wp-block-image:hover img {
	transform: translateY(-6px);
}

/* Bandeau « auteurs et éditeurs ». */
.ekitab-partners {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
}

.ekitab-partners > * {
	margin: 0 !important;
}

/* =====================================================================
   Phase 5 : bibliothèque, prix libre, commande
   ===================================================================== */

/* ---------- Fiche livre ---------- */

.ekitab-book__cover img {
	max-width: min(420px, 100%);
	margin-inline: auto;
	display: block;
}

.ekitab-book__title {
	font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
}

.ekitab-book__content {
	color: var(--wp--preset--color--contrast-muted);
}

/* ---------- Formulaire de prix libre ---------- */

.ekitab-pwyw {
	margin-top: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40);
	border-radius: 20px;
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border), var(--wp--preset--shadow--soft);
}

.ekitab-pwyw fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.ekitab-pwyw legend {
	margin-bottom: 0.75rem;
	font-weight: 600;
}

.ekitab-pwyw__choices {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5rem;
}

.ekitab-pwyw__choice {
	position: relative;
	cursor: pointer;
}

.ekitab-pwyw__choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ekitab-pwyw__choice span {
	display: grid;
	place-items: center;
	min-height: 3rem;
	padding: 0.5rem;
	border-radius: 14px;
	background: var(--wp--preset--color--base-alt);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
	transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.ekitab-pwyw__choice:hover span {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--sky);
}

.ekitab-pwyw__choice input:checked + span {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	box-shadow: 0 6px 16px rgb(30 102 224 / 0.25);
}

.ekitab-pwyw__choice input:focus-visible + span {
	outline: 3px solid var(--wp--preset--color--sun);
	outline-offset: 2px;
}

/* Champ « autre montant » : visible uniquement si « Autre » est choisi. */
.ekitab-pwyw__other {
	display: none;
	margin: 0.75rem 0 0;
}

.ekitab-pwyw:has(.is-other input:checked) .ekitab-pwyw__other {
	display: block;
}

.ekitab-pwyw__other label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-muted);
}

.ekitab-pwyw__input {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ekitab-pwyw__input input {
	width: 8rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
}

.ekitab-pwyw__submit {
	width: 100%;
	margin-top: var(--wp--preset--spacing--40);
	cursor: pointer;
	font-size: 1.125rem;
}

.ekitab-pwyw__note {
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-muted);
	text-align: center;
}

@media (max-width: 599px) {
	.ekitab-pwyw__choices {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Messages WooCommerce (montant invalide…) sans la feuille de style Woo. */
.ekitab-book .woocommerce-error,
.ekitab-book .wc-block-components-notice-banner {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: #ffe6de;
	color: #8a2b14;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Bibliothèque : grille de livres ---------- */

.ekitab-library .wp-block-post-template {
	gap: 1.25rem;
}

.ekitab-book-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ekitab-book-card > * {
	margin-block: 0;
}

.ekitab-book-card > * + * {
	margin-top: 0.75rem;
}

.ekitab-book-card .wp-block-post-featured-image {
	margin: calc(-1 * var(--wp--preset--spacing--50)) calc(-1 * var(--wp--preset--spacing--50)) var(--wp--preset--spacing--30) !important;
	padding: var(--wp--preset--spacing--40);
	border-radius: 20px 20px 0 0;
	background: linear-gradient(160deg, var(--wp--preset--color--primary-soft), var(--wp--preset--color--base-alt));
}

.ekitab-book-card .wp-block-post-featured-image img {
	width: 100%;
	max-width: 15rem;
	margin-inline: auto;
	aspect-ratio: 1;
	object-fit: contain;
	filter: drop-shadow(0 16px 22px rgb(15 30 61 / 0.2));
	transition: transform 0.25s ease;
}

.ekitab-book-card:hover .wp-block-post-featured-image img {
	transform: translateY(-4px);
}

.ekitab-book-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
}

.ekitab-book-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.ekitab-book-card .wp-block-post-excerpt {
	flex: 1;
	color: var(--wp--preset--color--contrast-muted);
	font-size: var(--wp--preset--font-size--small);
}

.ekitab-book-card .wp-block-buttons,
.ekitab-book-card .wp-block-button,
.ekitab-book-card .wp-block-button__link {
	width: 100%;
	text-align: center;
}

/* ---------- Page de commande ---------- */

.ekitab-header-commande .ekitab-secure {
	display: flex !important;
	color: var(--wp--preset--color--contrast);
}

.ekitab-checkout__title {
	margin-bottom: 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.ekitab-checkout__trust {
	justify-content: center;
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--50);
}

.ekitab-checkout .wc-block-components-main,
.ekitab-checkout .wp-block-woocommerce-checkout-totals-block {
	padding: var(--wp--preset--spacing--50) !important;
	border-radius: 20px;
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border), var(--wp--preset--shadow--soft);
}

.ekitab-checkout .wc-block-components-sidebar {
	padding-left: var(--wp--preset--spacing--40) !important;
}

.ekitab-checkout .wc-block-components-title,
.ekitab-checkout .wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 650;
	letter-spacing: -0.02em;
}

.ekitab-checkout .wc-block-components-checkout-place-order-button {
	width: 100%;
	min-height: 3.5rem;
	font-size: 1.125rem;
	border-radius: 999px;
}

.ekitab-checkout .wc-block-components-text-input input,
.ekitab-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
.ekitab-checkout .wc-blocks-components-select .wc-blocks-components-select__select {
	border-radius: 12px !important;
}

.ekitab-checkout .wc-block-components-order-summary-item__image img {
	border-radius: 6px;
}

@media (max-width: 781px) {
	.ekitab-checkout .wc-block-components-sidebar {
		padding-left: 0 !important;
	}

	.ekitab-checkout .wc-block-components-main,
	.ekitab-checkout .wp-block-woocommerce-checkout-totals-block {
		padding: var(--wp--preset--spacing--40) !important;
	}
}

/* ---------- Confirmation de commande ---------- */

.ekitab-thanks__status {
	margin-block: 0.5rem var(--wp--preset--spacing--50);
	font-weight: 650;
	letter-spacing: -0.02em;
}

.ekitab-thanks > .is-style-card + .is-style-card,
.ekitab-thanks > .wp-block-woocommerce-order-confirmation-downloads-wrapper + .is-style-card {
	margin-top: var(--wp--preset--spacing--40);
}

/* Le bloc Woo des téléchargements ne reçoit pas la classe de style : on l'habille en carte. */
.ekitab-thanks .wp-block-woocommerce-order-confirmation-downloads-wrapper {
	padding: var(--wp--preset--spacing--50);
	border-radius: 20px;
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border), var(--wp--preset--shadow--soft);
}

.ekitab-thanks__heading {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.ekitab-thanks .wc-block-order-confirmation-downloads table {
	width: 100%;
	border-collapse: collapse;
}

.ekitab-thanks .wc-block-order-confirmation-downloads :is(th, td) {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
	font-size: var(--wp--preset--font-size--small);
}

.ekitab-dl__name {
	display: block;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.ekitab-dl__product {
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-muted);
}

.ekitab-dl__button {
	display: inline-block;
	padding: 0.6em 1.3em !important;
	font-size: var(--wp--preset--font-size--small) !important;
	white-space: nowrap;
	box-shadow: none !important;
}

:is(.ekitab-thanks, .woocommerce-MyAccount-content) :is(td, th).download-file {
	text-align: right !important;
}

/* Récapitulatif : pas de description produit tronquée, seulement le nom et la participation. */
.ekitab-checkout .wc-block-components-product-metadata__description {
	display: none;
}

/* Titres en arabe : sens de lecture détecté automatiquement (droite à gauche). */
.wp-block-post-title,
.ekitab-dl__name,
.wc-block-components-product-name {
	unicode-bidi: plaintext;
}

/* Champs du formulaire de commande : interligne compact (l'interligne du thème
   faisait chevaucher la valeur et l'étiquette flottante). */
.ekitab-checkout .wc-block-components-text-input input,
.ekitab-checkout .wc-block-components-combobox input,
.ekitab-checkout .wc-blocks-components-select__select {
	line-height: 1.2 !important;
}

@media (max-width: 599px) {
	.ekitab-checkout__trust {
		font-size: var(--wp--preset--font-size--x-small);
		gap: 0.4em 1em;
	}
}

/* ---------- Pages de texte (légales, contact) ---------- */

.ekitab-page .wp-block-post-content h2 {
	margin-top: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.02em;
}

.ekitab-page .wp-block-post-content :where(p, li) {
	color: var(--wp--preset--color--contrast-muted);
}

.ekitab-page .wp-block-post-content strong {
	color: var(--wp--preset--color--contrast);
}

/* ---------- Blog : liste des articles ---------- */

/* Même écart que celui supposé par la grille de WordPress (1.25rem), sinon la 3e colonne passe à la ligne. */
.ekitab-posts .wp-block-post-template {
	gap: 1.25rem;
}

.ekitab-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ekitab-post-card > * {
	margin-block: 0;
}

.ekitab-post-card > * + * {
	margin-top: 0.75rem;
}

.ekitab-post-card .wp-block-post-featured-image {
	margin: calc(-1 * var(--wp--preset--spacing--50)) calc(-1 * var(--wp--preset--spacing--50)) var(--wp--preset--spacing--30) !important;
	border-radius: 20px 20px 0 0;
	overflow: hidden;
	background: var(--wp--preset--color--primary-soft);
}

.ekitab-post-card .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}

.ekitab-post-card__cat {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.01em;
}

.ekitab-post-card__cat a {
	position: relative;
	z-index: 1;
	color: var(--wp--preset--color--primary-dark);
	text-decoration: none;
}

.ekitab-post-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	letter-spacing: -0.02em;
}

/* Toute la carte est cliquable (lien du titre étendu). */
.ekitab-post-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.ekitab-post-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 20px;
}

.ekitab-post-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--contrast-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.ekitab-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.ekitab-post-card .ekitab-post-meta {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
}

@media (hover: hover) {
	.ekitab-post-card:hover {
		transform: translateY(-4px);
		box-shadow: var(--wp--preset--shadow--lifted);
	}

	.ekitab-post-card:hover .wp-block-post-featured-image img {
		transform: scale(1.03);
	}

	.ekitab-post-card:hover .wp-block-post-title {
		color: var(--wp--preset--color--primary);
	}
}

/* Date · temps de lecture. */
.ekitab-post-meta {
	gap: 0.25em 0 !important;
	color: var(--wp--preset--color--contrast-muted);
	font-size: var(--wp--preset--font-size--x-small);
}

.ekitab-post-meta > * {
	margin: 0;
}

.ekitab-post-meta > * + *::before {
	content: "·";
	margin-inline: 0.6em;
}

.ekitab-posts .wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
	gap: 0.5rem;
	font-weight: 600;
}

.ekitab-blog .ekitab-hero .is-style-eyebrow a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Blog : article ---------- */

.ekitab-article__kicker {
	gap: 0.5rem !important;
}

.ekitab-article__kicker > * {
	margin: 0;
}

.ekitab-article__kicker a {
	color: inherit;
	text-decoration: none;
}

.is-style-eyebrow.is-warm {
	background: var(--wp--preset--color--sun-soft);
	color: var(--wp--preset--color--contrast);
}

.ekitab-article .wp-block-post-title {
	margin-top: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.12;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.ekitab-article__header .ekitab-post-meta {
	margin-top: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
}

.ekitab-article__cover {
	margin-top: var(--wp--preset--spacing--50) !important;
	margin-bottom: var(--wp--preset--spacing--50) !important;
}

.ekitab-article__cover img {
	border-radius: 24px;
	box-shadow: var(--wp--preset--shadow--soft);
}

.ekitab-article__content {
	font-size: 1.125rem;
	line-height: 1.75;
}

.ekitab-article__content > :where(p, ul, ol) {
	color: #2a3a57;
}

.ekitab-article__content > * + * {
	margin-block-start: 1.15em;
}

.ekitab-article__content h2 {
	margin-top: var(--wp--preset--spacing--60) !important;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.2;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.ekitab-article__content h3 {
	margin-top: var(--wp--preset--spacing--50) !important;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.ekitab-article__content :where(h2, h3) + * {
	margin-top: 0.6em !important;
}

.ekitab-article__content .ekitab-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: var(--wp--preset--color--contrast);
}

.ekitab-article__content a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.ekitab-article__content .ekitab-callout {
	font-size: var(--wp--preset--font-size--medium);
}

.ekitab-article__content .ekitab-callout ul {
	padding-left: 0;
}

/* Citation d'un hadith ou d'un verset : arabe puis traduction. */
.ekitab-hadith.wp-block-quote {
	margin-inline: 0;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	border-radius: 0 18px 18px 0;
	background: var(--wp--preset--color--base-alt);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.65;
}

.ekitab-hadith > p {
	margin: 0;
	color: var(--wp--preset--color--contrast);
}

.ekitab-hadith > p + p {
	margin-top: 0.75em;
}

.ekitab-hadith .ekitab-ar {
	font-family: var(--wp--preset--font-family--arabic);
	font-size: 1.375rem;
	line-height: 2;
	text-align: right;
	color: var(--wp--preset--color--primary-dark);
}

.ekitab-hadith cite {
	display: block;
	margin-top: 0.75em;
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
	color: var(--wp--preset--color--contrast-muted);
}

.ekitab-article__content .wp-block-details {
	font-size: var(--wp--preset--font-size--medium);
}

/* Fin d'article : les méthodes. */
.ekitab-article__offers {
	max-width: 900px;
	margin-inline: auto !important;
}

.ekitab-article__offers > .is-style-card {
	display: flex;
	flex-direction: column;
}

.ekitab-article__offers > .is-style-card > .wp-block-buttons {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
}

.ekitab-article__back a {
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 599px) {
	.ekitab-article__content {
		font-size: 1.0625rem;
	}

	.ekitab-hadith.wp-block-quote {
		padding-left: var(--wp--preset--spacing--40);
	}
}

.ekitab-post-meta .wp-block-post-time-to-read::after {
	content: " de lecture";
}

.ekitab-article__offers > .is-style-card > .wp-block-image:first-child img {
	aspect-ratio: 16 / 9;
}

@media (max-width: 599px) {
	/* Une seule ligne « date · temps de lecture » sur téléphone. */
	.ekitab-article__header .ekitab-post-meta > p:first-child {
		display: none;
	}

	.ekitab-article__header .ekitab-post-meta > p:first-child + *::before {
		content: none;
	}
}

/* ---------- Habillage « rose » (pages de vente féminines, ex. planner du Ramadan) ----------
   La page contient un bloc repère .ekitab-theme-rose : toute la page (en-tête compris) passe alors
   du bleu e-Kitab à une palette rose, terracotta et prune, avec des titres en Abhaya Libre. */

@font-face {
	font-family: "Abhaya Libre";
	src: url("assets/fonts/abhaya-libre-latin-600.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}

.ekitab-theme-rose {
	display: none;
}

body:has(.ekitab-theme-rose) {
	--wp--preset--color--primary: #b25e46;
	--wp--preset--color--primary-dark: #96493a;
	--wp--preset--color--primary-soft: #f7e6e1;
	--wp--preset--color--sky: #d99a8b;
	--wp--preset--color--contrast: #4a3340;
	--wp--preset--color--contrast-muted: #7a6470;
	--wp--preset--color--base-alt: #fbf6f3;
	--wp--preset--color--border: #ecd9d3;
	--wp--preset--color--sun: #c9a45c;
	--wp--preset--color--sun-soft: #f6ecd6;
	--wp--preset--color--coral: #a8687f;
}

body:has(.ekitab-theme-rose) :where(h1, h2, h3):not(.wp-block-site-title) {
	font-family: "Abhaya Libre", Georgia, serif;
	font-weight: 600;
	letter-spacing: 0;
}

body:has(.ekitab-theme-rose) :where(h1) {
	font-size: clamp(2.7rem, 5.6vw, 4.2rem);
	line-height: 1.04;
}

body:has(.ekitab-theme-rose) :where(h2) {
	font-size: clamp(2.1rem, 3.8vw, 3rem);
	line-height: 1.1;
}

body:has(.ekitab-theme-rose) :where(h3) {
	font-size: 1.55rem;
	line-height: 1.2;
}

body:has(.ekitab-theme-rose) :where(h1, h2, h3) em {
	font-style: italic;
	background-image: linear-gradient(transparent 72%, rgb(201 164 92 / 0.4) 72%, rgb(201 164 92 / 0.4) 92%, transparent 92%);
}

body:has(.ekitab-theme-rose) :where(.is-style-section-navy, .is-style-section-blue) :where(h1, h2, h3) em {
	color: #f3d9a4;
	background-image: none;
}

.ekitab-hero.is-rose {
	background:
		radial-gradient(56rem 28rem at 100% 0%, rgb(232 196 188 / 0.6), transparent 60%),
		radial-gradient(40rem 24rem at 0% 100%, rgb(201 164 92 / 0.16), transparent 60%),
		linear-gradient(180deg, #fbf6f3 0%, var(--wp--preset--color--base) 100%);
}

.is-rose .ekitab-halo::before {
	background: radial-gradient(circle at 30% 30%, #fff 0, #f7e6e1 45%, rgb(232 196 188 / 0.75) 100%);
}

.is-rose .ekitab-halo::after {
	background: #c9a45c;
	box-shadow: 0 10px 24px rgb(201 164 92 / 0.4);
}

body:has(.ekitab-theme-rose) .is-style-book img {
	filter: drop-shadow(0 22px 30px rgb(74 51 64 / 0.2)) drop-shadow(0 4px 8px rgb(74 51 64 / 0.08));
}

/* Icônes de l'habillage rose : mêmes dessins, trait terracotta (copie générée des règles bleues). */
body:has(.ekitab-theme-rose) .is-style-video a::after {
	content: "";
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	width: 84px;
	height: 84px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--wp--preset--color--base) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b25e46' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") 56% 50% / 42% no-repeat;
	box-shadow: 0 0 0 10px rgb(255 255 255 / 0.3), 0 12px 30px rgb(15 30 61 / 0.3);
	transition: transform 0.2s ease;
}

body:has(.ekitab-theme-rose) .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 1.75rem;
	height: 1.75rem;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--wp--preset--color--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b25e46' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center / 55% no-repeat;
	transition: transform 0.2s ease;
}

body:has(.ekitab-theme-rose) .i-bolt {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M13 2 4.5 13.5H11L10 22l8.5-11.5H12z'/></svg>");
}

body:has(.ekitab-theme-rose) .i-users {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3.5'/><path d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><circle cx='17' cy='9' r='2.5'/><path d='M16.5 14.2c2.9.3 5 2.4 5 5.8'/></svg>");
}

body:has(.ekitab-theme-rose) .i-shield {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 4.5 6v6c0 4.6 3.2 8 7.5 9 4.3-1 7.5-4.4 7.5-9V6z'/><path d='m8.5 12 2.5 2.5 4.5-5'/></svg>");
}

body:has(.ekitab-theme-rose) .i-lock {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
}

body:has(.ekitab-theme-rose) .i-book {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5.5c2.2-1 5.2-1 9 1 3.8-2 6.8-2 9-1v13c-2.2-1-5.2-1-9 1-3.8-2-6.8-2-9-1z'/><path d='M12 6.5v13'/></svg>");
}

body:has(.ekitab-theme-rose) .i-chat {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5h16v11H9.5L4 20z'/><path d='M8 9.5h8M8 12.5h5'/></svg>");
}

body:has(.ekitab-theme-rose) .i-heart {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.2a4.3 4.3 0 0 1 7.5 2.6C19.5 15.4 12 20 12 20z'/></svg>");
}

body:has(.ekitab-theme-rose) .i-pencil {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20l1-4.5L16 4.5l3.5 3.5-11 11z'/><path d='m14 6.5 3.5 3.5'/></svg>");
}

body:has(.ekitab-theme-rose) .i-star {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/></svg>");
}

body:has(.ekitab-theme-rose) .i-printer {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 9V3h10v6'/><rect x='3' y='9' width='18' height='8' rx='2'/><path d='M7 14h10v7H7z'/></svg>");
}

body:has(.ekitab-theme-rose) .i-play {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M10 8.5v7l5.5-3.5z'/></svg>");
}

body:has(.ekitab-theme-rose) .i-infinity {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 8.5c-2 0-3.5 1.6-3.5 3.5S5 15.5 7 15.5c3.5 0 6.5-7 10-7 2 0 3.5 1.6 3.5 3.5S19 15.5 17 15.5c-3.5 0-6.5-7-10-7z'/></svg>");
}

body:has(.ekitab-theme-rose) .i-gift {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='18' height='4' rx='1'/><path d='M5 12v9h14v-9M12 8v13'/><path d='M12 8C11 5 8 4 7 5.5S8.5 8 12 8zm0 0c1-3 4-4 5-2.5S15.5 8 12 8z'/></svg>");
}

body:has(.ekitab-theme-rose) .i-clock {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3.5 2'/></svg>");
}

body:has(.ekitab-theme-rose) .i-school {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 9.5 12 4.5l10 5-10 5z'/><path d='M6 11.5v5c3.3 2.2 8.7 2.2 12 0v-5M22 9.5v5'/></svg>");
}

body:has(.ekitab-theme-rose) .i-eye {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>");
}

body:has(.ekitab-theme-rose) .i-download {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12M7 10l5 5 5-5M4 21h16'/></svg>");
}

body:has(.ekitab-theme-rose) .i-trophy {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 4h8v5a4 4 0 0 1-8 0z'/><path d='M8 6H4.5a3 3 0 0 0 3.5 4M16 6h3.5a3 3 0 0 1-3.5 4M12 13v4M8 21h8M9.5 17h5v4h-5z'/></svg>");
}

body:has(.ekitab-theme-rose) .i-moon {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/></svg>");
}

body:has(.ekitab-theme-rose) .i-check {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7.5'/></svg>");
}

body:has(.ekitab-theme-rose) .i-x {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6.5 6.5l11 11M17.5 6.5l-11 11'/></svg>");
}

body:has(.ekitab-theme-rose) .i-arrow {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
}

body:has(.ekitab-theme-rose) .i-calendar {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='5' width='17' height='16' rx='2'/><path d='M3.5 10h17M8 3v4M16 3v4'/></svg>");
}

body:has(.ekitab-theme-rose) .i-smile {
	--ekitab-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b25e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8.5 14.5c1.8 2 5.2 2 7 0M9 9.5h.01M15 9.5h.01'/></svg>");
}

