/**
 * Habillage du modèle d'article.
 *
 * Principe : la mise en page repose sur ce fichier, pas sur le CSS que génère
 * Elementor par page. Une page reste donc correctement disposée même si son CSS
 * généré est absent ou périmé — c'est ce qui faisait auparavant retomber toute
 * la page en colonne.
 *
 * Trois précautions rendent l'override fiable :
 *  - la feuille est chargée APRÈS elementor-frontend (dépendance déclarée) ;
 *  - les règles redéfinissent les variables --display / --flex-direction / --gap
 *    qu'Elementor lit lui-même ;
 *  - les sélecteurs sont préfixés par « body », ce qui les place à (0,2,1) :
 *    au-dessus des règles du thème, mais EN DESSOUS du CSS que génère Elementor
 *    par élément (.elementor-123 .elementor-element-abc, soit 0,3,0). Vos propres
 *    réglages dans Elementor l'emportent donc toujours sur ce fichier. C'est la
 *    raison pour laquelle aucun !important n'est utilisé ici.
 *
 * La décoration (fonds, arrondis, couleurs, tailles de police) est portée en
 * priorité par les réglages Elementor du modèle, pas par ce fichier : voir
 * class-template-blueprint.php.
 *
 * Aucune police n'est imposée : tout hérite du thème, pour que l'article se
 * fonde naturellement dans le reste du site.
 */

:root {
	--ebb-ink-deep: #10306f;
	--ebb-ink: #1544a8;
	--ebb-royal: #0c39ad;
	--ebb-pink: #ff5c9f;
	--ebb-pink-deep: #ef4a8d;
	--ebb-pink-soft: #fce7f0;
	--ebb-blue-soft: #edf1fb;
	--ebb-paper: #ffffff;
	--ebb-text: #3a4a78;
	--ebb-muted: #7c89ae;
	--ebb-line: #e2e8f7;

	--ebb-radius: 26px;
	--ebb-radius-sm: 16px;
	--ebb-radius-xs: 10px;
	--ebb-shell: 1120px;
}

/* ------------------------------------------------- Ossature des conteneurs */

/* Centrage des bandeaux de premier niveau.
   La LARGEUR vient des réglages Elementor (1120 px, 100 % en tablette/mobile) ;
   ce fichier ne fait que centrer. Les marges sont écrites en longhand, avec des
   valeurs simples : ni min(), ni calc(), ni variable. Une seule de ces fonctions
   qui échoue à l'analyse fait tomber toute la déclaration, et le bandeau repart
   en pleine page — c'est exactement ce qui s'est produit en 2.2.0. */
body .elementor .ebb-hero,
body .elementor .ebb-body-row,
body .elementor .ebb-products,
body .elementor .ebb-cta,
body .elementor .ebb-related {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/* Les widgets sont espacés par le gap du conteneur, pas par leur marge. */
body .elementor .ebb-body > .elementor-widget,
body .elementor .ebb-hero-panel > .elementor-widget,
body .elementor .ebb-sidebar > .elementor-widget,
body .elementor .ebb-cta-text-col > .elementor-widget {
	margin-block-end: 0;
	width: 100%;
}

/* ---------------------------------------------------------------- Bandeau */

body .elementor .ebb-hero {
	--display: flex;
	--flex-direction: row;
	--align-items: stretch;
	--gap: 0px;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0;
	border-radius: var(--ebb-radius);
	overflow: hidden;
	margin-top: 34px;
}

body .elementor .ebb-hero-media {
	--width: 46%;
	flex: 0 0 46%;
	min-width: 0;
	background: var(--ebb-pink-soft);
	overflow: hidden;
}

body .elementor .ebb-hero-media > .elementor-widget-image,
body .elementor .ebb-hero-media .ebb-hero-image .elementor-widget-container,
body .elementor .ebb-hero-media .ebb-hero-image figure {
	height: 100%;
	margin: 0;
}

body .elementor .ebb-hero-media .ebb-hero-image img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

body .elementor .ebb-hero-panel {
	--display: flex;
	--flex-direction: column;
	--justify-content: center;
	--width: 54%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 54%;
	min-width: 0;
	background: var(--ebb-blue-soft);
	padding: 42px 46px;
	gap: 13px;
}

body .elementor .ebb-hero-title .elementor-heading-title {
	color: var(--ebb-ink);
	font-size: clamp(1.75rem, 3vw, 2.45rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 2px 0 0;
	text-wrap: balance;
}

/* Le trait rose sous le titre, repris de la maquette. */
body .elementor .ebb-hero-title .elementor-heading-title::after {
	content: "";
	display: block;
	width: 132px;
	height: 5px;
	border-radius: 3px;
	background: var(--ebb-pink);
	margin-top: 9px;
}

body .elementor .ebb-hero-intro .elementor-widget-container {
	color: var(--ebb-ink-deep);
	font-size: 0.95rem;
	line-height: 1.7;
	max-width: 46ch;
}

body .elementor .ebb-hero-intro p:last-child,
body .elementor .ebb-note p:last-child,
body .elementor .ebb-quote p:last-child,
body .elementor .ebb-cta-text p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------ Fil d'Ariane */

body .ebb-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ebb-muted);
}

body .ebb-breadcrumb a {
	color: var(--ebb-muted);
	text-decoration: none;
}

body .ebb-breadcrumb a:hover,
body .ebb-breadcrumb a:focus-visible {
	color: var(--ebb-ink);
	text-decoration: underline;
}

body .ebb-breadcrumb__current {
	color: var(--ebb-pink);
	font-weight: 700;
}

/* ------------------------------------------------------------ Infos article */

body .ebb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ebb-ink);
}

body .ebb-meta__sep {
	color: var(--ebb-muted);
	opacity: 0.6;
}

/* ------------------------------------------------------------------- Corps */

body .elementor .ebb-body-row {
	--display: flex;
	--flex-direction: row;
	--align-items: flex-start;
	--gap: 40px;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 40px;
	margin-top: 34px;
}

body .elementor .ebb-sidebar {
	--display: flex;
	--flex-direction: column;
	--width: 26%;
	display: flex;
	flex-direction: column;
	flex: 0 0 26%;
	min-width: 0;
	gap: 18px;
	position: sticky;
	top: 62px;
}

body .elementor .ebb-body {
	--display: flex;
	--flex-direction: column;
	--gap: 16px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	gap: 16px;
	color: var(--ebb-text);
}

/* ---------------------------------------------------------------- Sommaire */

body .ebb-toc {
	background: var(--ebb-blue-soft);
	border-radius: var(--ebb-radius-sm);
	padding: 22px 20px 26px;
}

body .ebb-toc.is-sticky {
	position: sticky;
	top: 90px;
}

/* Un sommaire vide ne doit pas laisser un bloc orphelin. */
body .ebb-toc:not(.is-filled) {
	display: none;
}

body .ebb-toc__title {
	margin: 0 0 13px;
	font-weight: 700;
	color: var(--ebb-ink);
	font-size: 1.05rem;
}

body .ebb-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ebb-toc;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body .ebb-toc__list a {
	display: block;
	color: var(--ebb-text);
	text-decoration: none;
	font-size: 0.82rem;
	line-height: 1.4;
}

body .ebb-toc__list a:hover,
body .ebb-toc__list a:focus-visible,
body .ebb-toc__list .is-current > a {
	color: var(--ebb-pink);
}

body .ebb-toc__list .is-current > a {
	font-weight: 700;
}

body .ebb-toc.is-numbered .ebb-toc__list > li {
	counter-increment: ebb-toc;
}

body .ebb-toc.is-numbered .ebb-toc__list > li > a::before {
	content: counter(ebb-toc) ". ";
}

body .ebb-toc__list .ebb-toc__sub {
	padding-left: 14px;
}

/* ------------------------------------------------------------------ Encart */

body .ebb-note .elementor-widget-container {
	background: var(--ebb-pink-soft);
	border-radius: var(--ebb-radius-sm);
	padding: 18px 20px;
	color: var(--ebb-ink-deep);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

/* ---------------------------------------------------- Contenu rédactionnel */

body .elementor .ebb-body .elementor-widget-text-editor {
	font-size: 0.95rem;
	line-height: 1.7;
}

body .elementor .ebb-body .ebb-h2 .elementor-heading-title {
	color: var(--ebb-ink);
	font-size: clamp(1.2rem, 1.8vw, 1.35rem);
	font-weight: 700;
	scroll-margin-top: 100px;
	margin: 10px 0 -4px;
	text-wrap: balance;
}

body .elementor .ebb-body .ebb-h3 .elementor-heading-title {
	color: var(--ebb-ink);
	font-size: 1.08rem;
	font-weight: 600;
	scroll-margin-top: 100px;
}

body .elementor .ebb-body .ebb-list ul {
	margin: 0;
	padding-left: 1.1em;
}

body .elementor .ebb-body .ebb-list li {
	margin-bottom: 6px;
}

body .elementor .ebb-body .ebb-inline-image img {
	width: 100%;
	display: block;
	border-radius: var(--ebb-radius-xs);
	aspect-ratio: 16 / 7;
	object-fit: cover;
}

body .elementor .ebb-body .ebb-inline-image figcaption {
	font-size: 0.78rem;
	color: var(--ebb-muted);
	margin-top: 6px;
}

/* Galerie : les images d'une même rangée du document */
body .elementor .ebb-gallery {
	--display: flex;
	--flex-direction: row;
	--gap: 13px;
	display: flex;
	flex-direction: row;
	gap: 13px;
	width: 100%;
}

body .elementor .ebb-gallery > .elementor-widget {
	flex: 1 1 0;
	min-width: 0;
	margin-block-end: 0;
}

body .elementor .ebb-gallery-item img {
	width: 100%;
	display: block;
	border-radius: var(--ebb-radius-xs);
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Citation mise en avant */
body .ebb-quote .elementor-widget-container {
	position: relative;
	background: var(--ebb-pink-soft);
	border-radius: var(--ebb-radius-sm);
	padding: 26px 62px;
	margin: 6px 0;
	text-align: center;
	color: var(--ebb-ink-deep);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.6;
}

body .ebb-quote .elementor-widget-container::before,
body .ebb-quote .elementor-widget-container::after {
	position: absolute;
	font-size: 3.4rem;
	line-height: 0.7;
	color: var(--ebb-pink);
	opacity: 0.75;
}

body .ebb-quote .elementor-widget-container::before {
	content: "\201C";
	top: 26px;
	left: 22px;
}

body .ebb-quote .elementor-widget-container::after {
	content: "\201D";
	bottom: 2px;
	right: 22px;
}

/* ---------------------------------------------------------------- Produits */

body .elementor .ebb-products {
	--display: flex;
	--flex-direction: column;
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: var(--ebb-pink-soft);
	border-radius: var(--ebb-radius);
	padding: 28px 30px 32px;
	margin-top: 40px;
}

body .elementor .ebb-products-head {
	--display: flex;
	--flex-direction: row;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	width: 100%;
}

body .elementor .ebb-products-head > .e-con {
	flex: 1 1 auto;
	min-width: 0;
}

body .ebb-products-title .elementor-heading-title {
	color: var(--ebb-ink);
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0;
}

body .ebb-products-sub .elementor-widget-container {
	color: var(--ebb-pink-deep);
	font-size: 0.8rem;
	font-weight: 600;
}

body .ebb-products-sub p,
body .ebb-products-link p {
	margin: 3px 0 0;
}

body .ebb-products-link a {
	color: var(--ebb-ink);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

body .ebb-products-link a:hover,
body .ebb-products-link a:focus-visible {
	color: var(--ebb-pink-deep);
}

/* Habillage des cartes produit WooCommerce dans le bandeau rose. */
body .elementor .ebb-products ul.products li.product {
	background: var(--ebb-paper);
	border-radius: var(--ebb-radius-sm);
	padding: 13px;
	box-sizing: border-box;
}

body .elementor .ebb-products ul.products li.product img {
	border-radius: var(--ebb-radius-xs);
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

body .elementor .ebb-products ul.products li.product .woocommerce-loop-product__title {
	color: var(--ebb-ink);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.3;
}

body .elementor .ebb-products ul.products li.product .price {
	color: var(--ebb-ink-deep);
	font-weight: 700;
	font-size: 0.88rem;
}

body .elementor .ebb-products ul.products li.product .button {
	background: var(--ebb-royal);
	color: #fff;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 8px 15px;
}

body .elementor .ebb-products ul.products li.product .button:hover {
	background: var(--ebb-ink-deep);
}

/* --------------------------------------------------------------------- CTA */

body .elementor .ebb-cta {
	--display: flex;
	--flex-direction: row;
	--align-items: center;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 34px;
	background: var(--ebb-royal);
	border-radius: var(--ebb-radius);
	padding: 34px 40px;
	margin-top: 34px;
	color: #fff;
}

body .elementor .ebb-cta-text-col {
	flex: 1 1 55%;
	min-width: 0;
}

body .elementor .ebb-cta-form-col {
	flex: 1 1 45%;
	min-width: 0;
}

body .ebb-cta-title .elementor-heading-title {
	color: #fff;
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	font-weight: 700;
	margin: 0 0 7px;
	text-wrap: balance;
}

body .ebb-cta-text .elementor-widget-container,
body .ebb-cta-form .elementor-widget-container {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.85rem;
	line-height: 1.6;
}

body .elementor .ebb-cta .ebb-cta-placeholder {
	border: 1px dashed rgba(255, 255, 255, 0.45);
	border-radius: var(--ebb-radius-sm);
	padding: 16px;
	text-align: center;
	margin: 0;
}

/* ------------------------------------------------------ Articles similaires */

body .elementor .ebb-related {
	--display: flex;
	--flex-direction: column;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 44px;
	margin-bottom: 40px;
}

body .ebb-related-title .elementor-heading-title {
	color: var(--ebb-ink);
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0;
}

body .ebb-related-grid {
	display: grid;
	grid-template-columns: repeat(var(--ebb-cols, 3), minmax(0, 1fr));
	gap: 20px;
}

body .ebb-card-post {
	display: flex;
	gap: 13px;
	align-items: stretch;
	background: var(--ebb-paper);
	border: 1px solid var(--ebb-line);
	border-radius: var(--ebb-radius-sm);
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
	.ebb-card-post {
		transition: none;
	}
}

body .ebb-card-post:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(18, 60, 143, 0.11);
}

body .ebb-card-post__media {
	flex: 0 0 38%;
	display: block;
	background: var(--ebb-pink-soft);
}

body .ebb-card-post__media img,
body .ebb-card-post__placeholder {
	width: 100%;
	height: 100%;
	min-height: 96px;
	object-fit: cover;
	display: block;
}

body .ebb-card-post__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 13px 14px 13px 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

body .ebb-card-post__title {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.3;
	font-weight: 700;
}

body .ebb-card-post__title a {
	color: var(--ebb-ink);
	text-decoration: none;
}

body .ebb-card-post__title a:hover,
body .ebb-card-post__title a:focus-visible {
	color: var(--ebb-pink);
}

body .ebb-card-post__meta {
	margin: 0;
	font-size: 0.7rem;
	color: var(--ebb-muted);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

body .ebb-card-post__link {
	margin-top: auto;
	font-size: 0.73rem;
	font-weight: 700;
	color: var(--ebb-pink-deep);
	text-decoration: none;
}

body .ebb-card-post__link:hover,
body .ebb-card-post__link:focus-visible {
	text-decoration: underline;
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
	.ebb-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.elementor .ebb-hero,
	.elementor .ebb-body-row,
	.elementor .ebb-cta {
		--flex-direction: column;
		flex-direction: column;
	}

	.elementor .ebb-hero-media,
	.elementor .ebb-hero-panel,
	.elementor .ebb-sidebar,
	.elementor .ebb-cta-text-col,
	.elementor .ebb-cta-form-col {
		flex: 1 1 auto;
		width: 100%;
	}

	.elementor .ebb-sidebar {
		position: static;
	}

	.ebb-toc.is-sticky {
		position: static;
	}

	.ebb-related-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 620px) {
	.elementor .ebb-hero-panel {
		padding: 28px 24px;
	}

	.elementor .ebb-gallery {
		flex-wrap: wrap;
	}

	.elementor .ebb-gallery > .elementor-widget {
		flex: 1 1 45%;
	}

	.ebb-quote .elementor-widget-container {
		padding: 24px 34px;
	}

	.elementor .ebb-products,
	.elementor .ebb-cta {
		padding: 22px 20px;
		border-radius: var(--ebb-radius-sm);
	}
}

/* Gouttières sur petit écran. La largeur passe à 100 % via les réglages
   responsive d'Elementor ; il ne reste qu'à écarter le contenu des bords. */
@media (max-width: 1160px) {
	body .elementor .ebb-hero,
	body .elementor .ebb-body-row,
	body .elementor .ebb-products,
	body .elementor .ebb-cta,
	body .elementor .ebb-related {
		margin-left: 20px;
		margin-right: 20px;
	}
}
