/*
Theme Name: Boethic
Theme URI: https://boethic.com/
Author: Boethic
Description: Thème bloc sur mesure pour le blog Boethic — décoration durable et engagée. Léger, accessible, pensé pour le référencement (SEO) et les moteurs IA (GEO).
Version: 0.7.11
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boethic
Tags: blog, block-themes, full-site-editing, two-columns, right-sidebar, wide-blocks, accessibility-ready
*/

/* ==========================================================================
   Les réglages (couleurs, typo, espacements) vivent dans theme.json.
   Ce fichier ne contient que ce que theme.json ne sait pas exprimer.
   ========================================================================== */

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

.boethic-skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--texte);
	color: var(--wp--preset--color--blanc);
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 4px 4px;
}

.boethic-skip-link:focus {
	top: 0;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--sarcelle);
	outline-offset: 2px;
}

.has-sauge-fonce-background-color :where(a, button):focus-visible,
.has-brique-background-color :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--blanc);
}

/* Bandes vert sauge (#819881) : texte et contours de focus couleur « encre » (5,1:1 ; le blanc
   n'y atteint que 3,1:1). */
.has-sauge-background-color :where(a, button, input):focus-visible {
	outline-color: var(--wp--preset--color--encre);
}

#contenu:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

img {
	max-width: 100%;
	height: auto;
}

/* ---------- Barre supérieure ---------- */

.boethic-topbar {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
}

.boethic-topbar .wp-block-search__input {
	min-width: 9rem;
	padding: 0.35rem 0.6rem;
	border: 1px solid rgb(34 34 34 / 0.6);
	background: transparent;
	color: var(--wp--preset--color--encre);
	font-size: inherit;
}

.boethic-topbar .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--encre);
}

.boethic-topbar .wp-block-search__button {
	margin-left: 0;
	padding: 0.35rem;
	background: transparent;
	color: var(--wp--preset--color--encre);
	border: 1px solid rgb(34 34 34 / 0.6);
	border-left: 0;
}

.boethic-topbar .wp-block-navigation-item__content {
	padding: 0.25rem 0;
}

/* Réseaux sociaux tout à gauche, puis le champ « Rechercher » (comme l'ancien site) ;
   les liens et boutons restent à droite. */
.boethic-topbar .is-layout-flex > .boethic-topbar__search {
	margin: 0 auto 0 3rem;
}

.boethic-topbar .boethic-topbar__search .wp-block-search__input {
	width: 11rem;
	min-width: 0;
	padding: 0.35rem 0.25rem;
	border: 0;
	border-bottom: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--encre);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.02em;
	text-align: center;
}

.boethic-topbar .boethic-topbar__search .wp-block-search__input:hover,
.boethic-topbar .boethic-topbar__search .wp-block-search__input:focus {
	border-bottom-color: rgb(34 34 34 / 0.7);
}

.boethic-topbar .boethic-topbar__search .wp-block-search__input:focus-visible {
	outline: 2px solid var(--wp--preset--color--encre);
	outline-offset: 2px;
}

.boethic-topbar .boethic-topbar__search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--encre);
	opacity: 1;
}

.boethic-topbar__ctas .wp-block-button__link {
	padding: 0.85rem 1.25rem;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: 0;
}

/* ---------- En-tête : logo texte centré, rubriques sur une ligne en dessous ---------- */

.boethic-branding {
	text-align: center;
}

/* Logo (SVG du thème) : centré, ~140 px de haut sur ordinateur. */
.boethic-logo {
	display: inline-block;
	line-height: 0;
	border-radius: 4px;
}

.boethic-logo img {
	display: block;
	width: auto;
	height: clamp(96px, 60px + 5.5vw, 150px);
}

.boethic-logo:focus-visible {
	outline: 2px solid var(--wp--preset--color--sarcelle);
	outline-offset: 4px;
}

nav.boethic-mainnav {
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--fond);
}

/* Une seule ligne, jamais d'empilement au-delà du point de bascule du menu mobile. */
.boethic-mainnav .wp-block-navigation__container {
	flex-wrap: nowrap;
	justify-content: center;
	gap: 0 clamp(1rem, 3.2vw, 3rem);
}

.boethic-mainnav .wp-block-navigation-item__content {
	font-size: clamp(0.75rem, 0.65rem + 0.35vw, 0.875rem);
	font-weight: 600;
	letter-spacing: 0.12em;
	white-space: nowrap;
	text-transform: uppercase;
	color: var(--wp--preset--color--texte);
	text-decoration: none;
	padding-block: 0.35rem;
	border-bottom: 2px solid transparent;
}

.boethic-mainnav .wp-block-navigation-item__content:hover,
.boethic-mainnav [aria-current="page"] {
	color: var(--wp--preset--color--or-fonce);
	border-bottom-color: var(--wp--preset--color--sable);
}

@media (max-width: 599px) {
	.boethic-masthead {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}

	.boethic-masthead > * {
		margin: 0 !important;
	}

	.boethic-branding {
		text-align: left;
	}

	.boethic-logo img {
		height: 72px;
	}

	nav.boethic-mainnav {
		padding-top: 0;
		border-top: 0;
	}

	.boethic-mainnav .wp-block-navigation__container {
		flex-wrap: wrap;
	}
}

@media (max-width: 781px) {
	/* Sur mobile, la barre supérieure reste accessible : elle passe sur deux lignes. */
	.boethic-topbar > .wp-block-group {
		justify-content: center !important;
	}

	.boethic-topbar__links .wp-block-navigation__container {
		justify-content: center;
		gap: 0.25rem 1rem;
	}

	/* Mobile : barre centrée comme avant (icônes, puis recherche, chacune sur sa ligne). */
	.boethic-topbar .boethic-social {
		flex-basis: 100%;
		justify-content: center;
		margin-inline-end: 0;
	}

	.boethic-topbar .is-layout-flex > .boethic-topbar__search {
		flex-basis: 100%;
		margin: 0;
		display: flex;
		justify-content: center;
	}
}

/* Menu mobile (surcouche) */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
	padding-block: 0.5rem;
}

/* Mobile (sous le point de bascule du menu, 600 px) : la barre verte du haut disparaît,
   son contenu est repris dans le menu (pattern boethic/main-nav, éléments « __mobile »).
   Sur ordinateur, ces éléments ne sont jamais affichés (display: none, donc ni vus ni lus). */
@media (min-width: 600px) {
	.boethic-mainnav .boethic-mainnav__mobile,
	/* Le bloc Réseaux sociaux est placé par WordPress dans un <li> d'une seconde liste :
	   on masque cette liste entière, sinon elle crée un écart dans la ligne des rubriques. */
	.boethic-mainnav .wp-block-navigation__container:has(> li > .boethic-mainnav__mobile) {
		display: none !important;
	}
}

@media (max-width: 599px) {
	.boethic-topbar {
		display: none;
	}

	.boethic-mainnav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		gap: 0.25rem;
	}

	/* Liens secondaires : plus petits que les rubriques, séparés par un filet. */
	.boethic-mainnav .is-menu-open .boethic-mainnav__secondaire--premier {
		margin-top: var(--wp--preset--spacing--30);
		padding-top: var(--wp--preset--spacing--30);
		border-top: 1px solid var(--wp--preset--color--fond);
	}

	.boethic-mainnav .is-menu-open .boethic-mainnav__secondaire .wp-block-navigation-item__content {
		font-size: var(--wp--preset--font-size--small);
		font-weight: 400;
		letter-spacing: 0.08em;
		padding-block: 0.4rem;
	}

	/* Déco Pro et La boutique : mêmes boutons que dans la barre du haut. */
	.boethic-mainnav .is-menu-open .boethic-mainnav__bouton {
		margin-top: var(--wp--preset--spacing--20);
	}

	.boethic-mainnav .is-menu-open .boethic-mainnav__bouton--pro {
		margin-top: var(--wp--preset--spacing--30);
	}

	.boethic-mainnav .is-menu-open .boethic-mainnav__bouton .wp-block-navigation-item__content {
		display: inline-block;
		min-width: 12rem;
		padding: 0.85rem 1.25rem;
		font-size: var(--wp--preset--font-size--x-small);
		letter-spacing: 0.12em;
		text-align: center;
		border: 0;
	}

	.boethic-mainnav .is-menu-open .boethic-mainnav__bouton--pro .wp-block-navigation-item__content {
		background-color: var(--wp--preset--color--sable);
		color: var(--wp--preset--color--texte);
	}

	.boethic-mainnav .is-menu-open .boethic-mainnav__bouton--boutique .wp-block-navigation-item__content {
		background-color: var(--wp--preset--color--brique);
		color: var(--wp--preset--color--blanc);
	}

	.boethic-mainnav .is-menu-open .boethic-mainnav__bouton .wp-block-navigation-item__content:hover,
	.boethic-mainnav .is-menu-open .boethic-mainnav__bouton .wp-block-navigation-item__content:focus-visible {
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}

	/* Champ « Rechercher » */
	.boethic-mainnav .is-menu-open .boethic-mainnav__search {
		width: min(100%, 18rem);
		margin-top: var(--wp--preset--spacing--40);
	}

	.boethic-mainnav .boethic-mainnav__search .wp-block-search__inside-wrapper {
		border: 1px solid var(--wp--preset--color--texte-doux);
		padding: 0;
	}

	.boethic-mainnav .boethic-mainnav__search .wp-block-search__input {
		border: 0;
		padding: 0.6rem 0.75rem;
		font-size: var(--wp--preset--font-size--small);
		color: var(--wp--preset--color--texte);
		background: transparent;
	}

	.boethic-mainnav .boethic-mainnav__search .wp-block-search__button {
		margin: 0;
		padding: 0.5rem 0.75rem;
		border: 0;
		background: transparent;
		color: var(--wp--preset--color--sarcelle);
	}

	.boethic-mainnav .boethic-mainnav__search .wp-block-search__input:focus-visible,
	.boethic-mainnav .boethic-mainnav__search .wp-block-search__button:focus-visible {
		outline: 2px solid var(--wp--preset--color--sarcelle);
		outline-offset: 2px;
	}

	/* Réseaux sociaux */
	.boethic-mainnav .is-menu-open .boethic-mainnav__social {
		margin-top: var(--wp--preset--spacing--40);
		justify-content: center;
	}
}

/* ---------- Titres de section (sur-titre + titre, casse normale) ---------- */

.boethic-section-head {
	text-align: center;
}

.boethic-eyebrow {
	margin: 0 !important;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.boethic-section-title {
	margin-top: 0.35rem !important;
	font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem) !important;
	letter-spacing: -0.01em;
}

/* Petite étiquette en capitales (ex. « Qui a écrit cet article ? »). */
.boethic-label {
	margin: 0;
	font-family: var(--wp--preset--font-family--gaultier);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* ---------- Police Gaultier : lisibilité ---------- */

/* Gaultier a une petite hauteur d'x (≈ 0,39 contre ≈ 0,5 pour les polices système) :
   à taille égale, le texte paraît ~20 % plus petit. font-size-adjust aligne la hauteur d'x
   des textes sur 0,46 (taille perçue proche de l'ancienne police, repli Georgia compris).
   Les titres gardent leur taille d'origine (déjà grands). */
body,
button,
input,
select,
textarea {
	font-size-adjust: 0.46;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

:is(h1, h2, h3, h4, h5, h6, .wp-block-post-title, .wp-block-site-title, .boethic-section-title) {
	font-size-adjust: none;
}

/* ---------- Rayons communs ---------- */

:root {
	--boethic-radius: 18px;
	--boethic-radius-sm: 12px;
}

.boethic-rounded {
	border-radius: var(--boethic-radius);
}

/* ---------- Emplacements d'images vides ---------- */

.boethic-placeholder {
	position: relative;
	overflow: hidden;
	background-color: #DCE3DA;
}

/* Pictogramme « image » discret au centre de l'emplacement. */
.boethic-placeholder::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 44px;
	height: 36px;
	transform: translate(-50%, -50%);
	border: 2px solid var(--wp--preset--color--sauge);
	border-radius: 6px;
	background:
		radial-gradient(circle at 30% 35%, var(--wp--preset--color--sauge) 0 4px, transparent 5px),
		linear-gradient(135deg, transparent 55%, var(--wp--preset--color--sauge) 55% 60%, transparent 60%);
	opacity: 0.6;
}

.boethic-placeholder--video::after {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 3px solid var(--wp--preset--color--sable);
	background: conic-gradient(from 60deg at 42% 50%, var(--wp--preset--color--sable) 0 60deg, transparent 60deg);
	opacity: 1;
}

/* Carte avec image à la une : l'emplacement vide (fond + pictogramme) disparaît derrière l'image.
   Sans image, le bloc « Image mise en avant » ne produit rien et l'emplacement reste visible. */
.boethic-placeholder:has(> .wp-block-post-featured-image img) {
	background-color: transparent;
}

.boethic-placeholder:has(> .wp-block-post-featured-image img)::after {
	content: none;
}

.boethic-ratio-16-9 { aspect-ratio: 16 / 9; }

/* ---------- Vidéo « façade » (chargée au clic, voir assets/js/video.js) ---------- */

.boethic-video {
	position: relative;
	overflow: hidden;
	background-color: var(--wp--preset--color--sauge-fonce);
}

.boethic-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	/* Remonte légèrement le bouton pour le centrer dans l'anneau visible sur l'image de la vidéo. */
	padding-bottom: 4.2%;
	color: var(--wp--preset--color--blanc);
	text-decoration: none;
}

/* Image de la vidéo (servie par le thème) + voile sombre pour la lisibilité du bouton et du texte. */
.boethic-video__poster,
.boethic-video__poster img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.boethic-video__poster img,
img.boethic-video__poster {
	object-fit: cover;
}

/* Vidéos des contenus : bouton centré (le décalage ci-dessus ne vaut que pour l'image de l'accueil). */
.boethic-video--contenu .boethic-video__play {
	padding-bottom: 0;
}

.boethic-video__play::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(rgb(0 0 0 / 0.15), rgb(0 0 0 / 0.3));
	transition: background-color 0.2s ease;
}

.boethic-video__play:hover::before {
	background-color: rgb(0 0 0 / 0.08);
}

.boethic-video__icon {
	z-index: 2;
}

.boethic-video__icon {
	position: relative;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--sable);
	box-shadow: 0 4px 18px rgb(0 0 0 / 0.35);
	transition: transform 0.2s ease;
}

/* Triangle « lecture ». */
.boethic-video__icon::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 13px 0 13px 21px;
	border-color: transparent transparent transparent var(--wp--preset--color--texte);
}

/* Libellé lu par les lecteurs d'écran, masqué visuellement (seul le bouton rond est affiché). */
.boethic-video__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.boethic-video__play:hover .boethic-video__icon,
.boethic-video__play:focus-visible .boethic-video__icon {
	transform: scale(1.08);
}

.boethic-video__play:focus-visible {
	outline: 3px solid var(--wp--preset--color--sable);
	outline-offset: -6px;
	border-radius: var(--boethic-radius);
}

.boethic-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.boethic-video__icon,
	.boethic-video__play::before { transition: none; }
}

.boethic-ratio-3-2 { aspect-ratio: 3 / 2; }
.boethic-ratio-4-3 { aspect-ratio: 4 / 3; }
.boethic-ratio-1-1 { aspect-ratio: 1 / 1; }

/* ---------- Bandeau d'accueil (photo du salon + encadré de citation en vrai texte) ---------- */

.boethic-hero-wrap > * {
	margin-block: 0 !important;
}

.boethic-hero {
	position: relative;
	container-type: inline-size;
}

.boethic-hero__photo {
	margin: 0;
}

.boethic-hero picture {
	display: block;
}

.boethic-hero img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 1;
	border-radius: var(--boethic-radius);
}

/* Encadré clair (v0.7.9) : polices de la boîte de texte Canva de Cécile.
   Marque : Montserrat SemiBold (OFL). Accroche : Trebuchet MS Bold Italic. Manifeste : Trebuchet MS
   Italic centré. Trebuchet MS (Microsoft) n'est pas embarquée : police du système (Windows, macOS,
   iOS), sinon Fira Sans Italic / Bold Italic (OFL, auto-hébergée, mise à l'échelle par size-adjust).
   Signature : Lato Regular (OFL, renommée « Boethic Signature »), à droite, plus petite.
   Texte brun bordeaux sur fond crème mesuré sur l'ancienne bannière (contraste ≈ 14:1). */
.boethic-hero__encadre {
	box-sizing: border-box;
	text-align: center;
	font-family: var(--wp--preset--font-family--trebuchet);
	color: var(--wp--preset--color--brun);
	background-color: var(--wp--preset--color--creme);
}

.boethic-hero__encadre p {
	margin: 0;
}

.boethic-hero__marque {
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.55em;
	padding-left: 0.55em; /* compense l'espacement après la dernière lettre */
	font-size: 1.1em;
	line-height: 1.2;
}

.boethic-hero__quote {
	margin: 1em 0 0 !important;
	padding: 0;
	border: 0;
}

.boethic-hero__quote p {
	font-style: italic;
	font-weight: 400;
	font-size: 1.09em;
	line-height: 1.76;
	text-wrap: balance; /* lignes équilibrées, pas de mot seul en fin de citation */
}

.boethic-hero__accroche,
.boethic-hero__bienvenue {
	display: block;
}

.boethic-hero__accroche {
	font-weight: 700;
	font-size: 1.06em;
	margin-bottom: 0.2em;
}

.boethic-hero__bienvenue {
	margin-top: 0.2em;
	font-size: 1.06em;
}

.boethic-hero__signature {
	margin-top: 0.72em !important;
	font-family: var(--wp--preset--font-family--signature);
	font-weight: 400;
	font-size: 0.93em;
	line-height: 1.44;
	text-align: right;
}

.boethic-hero__signature span {
	display: block;
}

/* Ordinateur et tablette : encadré posé sur le mur vide à gauche, taille proportionnelle à la photo. */
@media (min-width: 768px) {
	.boethic-hero__encadre {
		position: absolute;
		left: 3cqw;
		top: 50%;
		transform: translateY(-50%);
		width: 31cqw;
		padding: 2.05cqw 2.05cqw;
		font-size: clamp(0.6875rem, 1.3cqw, 1rem);
	}
}

/* Mobile : photo entière, encadré en dessous. */
@media (max-width: 767px) {
	.boethic-hero__encadre {
		margin-top: 1rem !important;
		padding: 1.5rem 1.25rem;
		border-radius: var(--boethic-radius);
		font-size: 0.875rem;
	}
}

/* ---------- Accueil : Pour un autre demain (texte de Cécile, blocs courts) ---------- */

.boethic-demain {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--60);
	line-height: 1.75;
}

.boethic-demain > *,
.boethic-demain__intro > *,
.boethic-demain__texte > *,
.boethic-demain__conclusion > * {
	margin-block: 0 !important;
}

.boethic-demain__intro,
.boethic-demain__texte,
.boethic-demain__conclusion {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.boethic-demain h3 {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.25;
	overflow-wrap: break-word;
}

/* Bloc : texte + image côte à côte, alternés ; empilés (image au-dessus) sous 782 px. */
.boethic-demain__bloc {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: center;
}

.boethic-demain__bloc--inverse {
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.boethic-demain__bloc--inverse > .boethic-demain__media {
	order: -1;
}

/* Emplacement d'image : image du bloc (voir boethic_accueil_image()) recadrée au format de
   l'emplacement, ou aplat neutre (aucune icône) s'il n'y en a pas. */
.boethic-demain__media {
	overflow: hidden;
	aspect-ratio: 1 / 1;
	width: 100%;
	border-radius: var(--boethic-radius-sm);
	background-color: var(--wp--preset--color--fond);
}

.boethic-demain__media picture {
	display: block;
	height: 100%;
}

.boethic-demain__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 781px) {
	.boethic-demain__bloc,
	.boethic-demain__bloc--inverse {
		grid-template-columns: minmax(0, 1fr);
	}

	.boethic-demain__media {
		order: -1;
		aspect-ratio: 3 / 2;
	}

	/* Photos du thème (carrées) : recadrage 3/2 qui garde la lampe (--boethic-cadrage, voir functions.php). */
	.boethic-demain__media img {
		object-position: 50% var(--boethic-cadrage, 50%);
	}
}

.boethic-demain__exergue {
	padding-left: 1rem;
	border-left: 3px solid var(--wp--preset--color--sable);
}

.boethic-demain__liste {
	padding-left: 1.25rem;
}

.boethic-demain__liste li + li {
	margin-top: 0.375rem;
}

.boethic-demain__lien a {
	font-weight: 600;
	color: var(--wp--preset--color--sarcelle);
	text-underline-offset: 0.2em;
}

.boethic-demain__lien a:first-child::after {
	content: " →" / "";
}

.boethic-demain__conclusion {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--boethic-radius-sm);
	background-color: var(--wp--preset--color--sable-clair);
	text-align: center;
}

.boethic-demain__signature {
	color: var(--wp--preset--color--or-fonce);
}

/* « En savoir plus » / « Réduire » (v0.7.6) : <details> natif (clavier, état annoncé par les lecteurs
   d'écran, contenu présent dans le HTML). Le résumé reste au-dessus du contenu : à la fermeture, la page
   ne bouge pas et le focus reste sur le bouton. */
.boethic-demain__suite > summary {
	display: block;
	width: fit-content;
	margin-inline: auto;
	padding: 0.6rem 1.4rem;
	border-radius: 999px;
	background-color: var(--wp--preset--color--sable);
	color: var(--wp--preset--color--texte);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.boethic-demain__suite > summary::-webkit-details-marker {
	display: none;
}

.boethic-demain__suite > summary::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-inline-start: 0.6em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-0.2em) rotate(45deg);
	transition: transform 0.2s ease;
}

.boethic-demain__suite[open] > summary::after {
	transform: translateY(0.05em) rotate(-135deg);
}

.boethic-demain__suite > summary:hover {
	background-color: var(--wp--preset--color--sarcelle);
	color: var(--wp--preset--color--blanc);
}

.boethic-demain__suite > summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--sarcelle);
	outline-offset: 3px;
}

.boethic-demain__reduire,
.boethic-demain__suite[open] .boethic-demain__ouvrir {
	display: none;
}

.boethic-demain__suite[open] .boethic-demain__reduire {
	display: inline;
}

/* Contenu déroulé : même rythme vertical que le reste de la section. */
.boethic-demain__suite > :not(summary) {
	margin-block: var(--wp--preset--spacing--60) 0 !important;
}

/* Ouverture fluide quand le navigateur sait animer une hauteur « auto » (Chrome, Edge récents) ;
   ailleurs, ouverture instantanée. */
@supports (interpolate-size: allow-keywords) {
	.boethic-demain__suite {
		interpolate-size: allow-keywords;
	}

	.boethic-demain__suite::details-content {
		block-size: 0;
		overflow: hidden;
		transition: block-size 0.45s ease, content-visibility 0.45s allow-discrete;
	}

	.boethic-demain__suite[open]::details-content {
		block-size: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.boethic-demain__suite::details-content,
	.boethic-demain__suite > summary,
	.boethic-demain__suite > summary::after {
		transition: none;
	}
}

/* Conclusion : photo 1 (salon, lampadaire) en tête de la carte, format 3/2. */
.boethic-demain__conclusion > .boethic-demain__media {
	aspect-ratio: 3 / 2;
}

.boethic-demain__conclusion > .boethic-demain__media img {
	object-position: 50% var(--boethic-cadrage, 50%);
}

/* ---------- Grilles de cartes : 3 colonnes, 2 sur tablette, 1 sur mobile ---------- */

.boethic-grid .wp-block-post-template.is-layout-grid,
.boethic-products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.boethic-products > * {
	margin: 0 !important;
}

@media (max-width: 1023px) {
	.boethic-grid .wp-block-post-template.is-layout-grid,
	.boethic-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.boethic-grid .wp-block-post-template.is-layout-grid,
	.boethic-products {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Cartes d'articles : sans cadre, sans ombre, sans fond ---------- */

.boethic-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.boethic-card > * {
	margin: 0 !important;
}

.boethic-card__media {
	position: relative;
	margin-bottom: 1.1rem !important;
	border-radius: var(--boethic-radius);
}

.boethic-card__media .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
}

.boethic-card__media .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.boethic-card:hover .boethic-card__media img {
	transform: scale(1.03);
}

/* Date · rubrique : petite ligne au-dessus du titre (les liens de rubrique restent cliquables). */
.boethic-card__meta {
	position: relative;
	z-index: 3;
	margin-bottom: 0.5rem !important;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--texte-doux);
}

.boethic-card__meta > * {
	margin: 0 !important;
}

.boethic-card__date + .boethic-terms::before {
	content: "·";
	margin-right: 0.4rem;
	color: var(--wp--preset--color--texte-doux);
}

.boethic-card__date {
	font-size: inherit;
}

.boethic-card__title {
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem) !important;
	line-height: 1.3;
}

.boethic-card__title a {
	color: var(--wp--preset--color--texte);
	text-decoration: none;
}

/* Toute la carte est cliquable : le lien du titre s'étend sur la carte entière. */
.boethic-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.boethic-card:hover .boethic-card__title a,
.boethic-card__title a:focus-visible {
	color: var(--wp--preset--color--sarcelle);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.boethic-card__excerpt {
	margin-top: 0.5rem !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--texte-doux);
}

/* Extrait limité à deux lignes. */
.boethic-card__excerpt .wp-block-post-excerpt__excerpt,
p.boethic-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin: 0;
}

.boethic-card .wp-block-post-excerpt__more-text {
	display: none;
}

.boethic-terms {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.boethic-terms a {
	color: var(--wp--preset--color--sarcelle);
	text-decoration: none;
}

.boethic-terms a:hover {
	text-decoration: underline;
}

/* ---------- En-tête des listes (rubriques, blog) ---------- */

.boethic-intro {
	color: var(--wp--preset--color--texte-doux);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
}

.boethic-intro > * {
	margin-block: 0.5rem 0;
}

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

.boethic-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	/* 14 px (lisibilité). */
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--texte-doux);
}

.boethic-breadcrumb li + li::before {
	content: "/";
	margin-right: 0.5rem;
	color: var(--wp--preset--color--sauge);
}

.boethic-breadcrumb a {
	color: var(--wp--preset--color--texte-doux);
	text-decoration: none;
}

.boethic-breadcrumb a:hover {
	color: var(--wp--preset--color--sarcelle);
	text-decoration: underline;
}

.boethic-breadcrumb--left ol {
	justify-content: flex-start;
}

/* ---------- Article et page : une colonne de lecture ---------- */

.boethic-article__title {
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem) !important;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.boethic-article__header .boethic-breadcrumb {
	margin-bottom: var(--wp--preset--spacing--30);
}

.boethic-post-meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--texte-doux);
}

.boethic-post-meta__sep {
	margin-inline: 0.4rem;
}

.boethic-article__image img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
	border-radius: var(--boethic-radius);
}

.boethic-article .wp-block-post-content,
.boethic-page .wp-block-post-content {
	font-size: 1.0625rem;
	line-height: 1.8;
}

.boethic-article .wp-block-post-content > * + h2 {
	margin-top: var(--wp--preset--spacing--60);
}

.boethic-article .wp-block-post-content img,
.boethic-page .wp-block-post-content img {
	border-radius: var(--boethic-radius-sm);
}

.boethic-author-box {
	border-radius: var(--boethic-radius);
}

.boethic-author-box .wp-block-post-author__name {
	font-family: var(--wp--preset--font-family--gaultier);
	font-size: var(--wp--preset--font-size--large);
}

.boethic-related {
	padding-top: var(--wp--preset--spacing--60);
	border-top: 1px solid var(--wp--preset--color--fond);
}

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

/* Les grandes zones s'enchaînent sans marge (sinon une bande blanche apparaît). */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.boethic-footer a {
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}

/* Filet du bas du pied de page : couleur encre adoucie (décor). */
.boethic-footer .boethic-footer__filet {
	opacity: 0.3;
}

.boethic-footer a:hover {
	text-decoration: underline;
}

.boethic-footer h2 {
	letter-spacing: 0.04em;
}

.boethic-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 2;
}

.boethic-footer .boethic-footer__accent a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--sable);
	text-underline-offset: 0.3em;
}

/* ---------- Pagination ---------- */

.wp-block-query-pagination {
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	padding: 0.35rem 0.65rem;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--sarcelle);
	color: var(--wp--preset--color--blanc);
}

/* ---------- Page « Nos rubriques » : grandes tuiles (3 + 2 sur ordinateur, 2 sur tablette, 1 sur mobile) ---------- */

.boethic-rubriques {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.boethic-rubrique {
	position: relative;
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.boethic-rubrique:nth-child(n + 4) {
	grid-column: span 3;
}

.boethic-rubrique__media {
	aspect-ratio: 4 / 3;
	margin-bottom: 0.75rem;
	border-radius: var(--boethic-radius);
}

.boethic-rubrique:nth-child(n + 4) .boethic-rubrique__media {
	aspect-ratio: 16 / 9;
}

.boethic-rubrique__media:has(img) {
	background-color: transparent;
}

.boethic-rubrique__media:has(img)::after {
	content: none;
}

.boethic-rubrique__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.boethic-rubrique:hover .boethic-rubrique__media img {
	transform: scale(1.03);
}

.boethic-rubrique__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.boethic-rubrique__title a {
	color: var(--wp--preset--color--texte);
	text-decoration: none;
}

/* Toute la tuile est cliquable via le lien du titre. */
.boethic-rubrique__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.boethic-rubrique:hover .boethic-rubrique__title a,
.boethic-rubrique__title a:focus-visible {
	color: var(--wp--preset--color--sarcelle);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.boethic-rubrique__desc {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--texte-doux);
}

.boethic-rubrique__count {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--or-fonce);
}

@media (max-width: 1023px) {
	.boethic-rubriques {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.boethic-rubrique,
	.boethic-rubrique:nth-child(n + 4) {
		grid-column: auto;
	}

	.boethic-rubrique:nth-child(n + 4) .boethic-rubrique__media {
		aspect-ratio: 4 / 3;
	}

	/* 5 tuiles : la dernière prend toute la largeur. */
	.boethic-rubrique:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.boethic-rubrique:last-child:nth-child(odd) .boethic-rubrique__media {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 599px) {
	.boethic-rubriques {
		grid-template-columns: minmax(0, 1fr);
	}

	.boethic-rubrique:last-child:nth-child(odd) .boethic-rubrique__media {
		aspect-ratio: 4 / 3;
	}
}

/* ---------- Fond du site : vert pâle + grand mandala en filigrane sur les côtés ---------- */

/* Le mandala (assets/images/boethic-mandala.svg) sert de masque : silhouette blanche très légère,
   fixe, derrière tout le contenu (pointer-events: none). Masqué sous 960 px (pas de marges latérales). */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: var(--wp--preset--color--blanc);
	opacity: 0.45;
	-webkit-mask-image: url("assets/images/boethic-mandala.svg"), url("assets/images/boethic-mandala.svg");
	mask-image: url("assets/images/boethic-mandala.svg"), url("assets/images/boethic-mandala.svg");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: min(62vw, 980px) auto;
	mask-size: min(62vw, 980px) auto;
	-webkit-mask-position: left calc(min(62vw, 980px) * -0.4) center, right calc(min(62vw, 980px) * -0.4) center;
	mask-position: left calc(min(62vw, 980px) * -0.4) center, right calc(min(62vw, 980px) * -0.4) center;
}

@media (max-width: 959px) {
	body::before {
		content: none;
	}
}

/* ---------- Mise en page : colonne principale (~2/3) + colonne de droite (~1/3) ---------- */

.boethic-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	align-items: start;
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1200px + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
	margin: 0 auto !important;
	padding: var(--wp--preset--spacing--50) var(--wp--style--root--padding-right) var(--wp--preset--spacing--60) var(--wp--style--root--padding-left);
}

.boethic-layout > * {
	margin-block: 0 !important;
}

.boethic-layout__main {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
	min-width: 0;
}

.boethic-layout__main > * {
	margin-block: 0 !important;
}

/* Les groupes « contraints » imbriqués ne rajoutent pas la marge latérale du site. */
.boethic-layout .has-global-padding {
	padding-inline: 0;
}

/* Cadre blanc : marge intérieure minimale de 16 px à gauche et à droite (le contenu ne touche
   jamais le bord, surtout en mobile). Sur ordinateur, le centrage du contenu (720 px) donne déjà plus. */
.boethic-layout .boethic-panel.has-global-padding {
	padding-inline: 1rem;
}

.boethic-layout .alignfull,
.boethic-layout .alignwide {
	max-width: 100% !important;
	margin-inline: 0 !important;
}

/* Carte blanche (contenu principal, en-tête de rubrique, blocs de la colonne). */
.boethic-panel,
.boethic-widget {
	box-sizing: border-box;
	background-color: var(--wp--preset--color--blanc);
	border-radius: var(--boethic-radius-sm);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.boethic-panel {
	padding: clamp(1.25rem, 3.5vw, 2.75rem);
}

@media (max-width: 959px) {
	.boethic-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 599px) {
	.boethic-layout {
		padding-top: var(--wp--preset--spacing--40);
	}

	.boethic-panel {
		padding: 1.25rem 1rem;
	}
}

/* Titres de section posés sur le fond vert (accueil : « Les derniers articles »). */
.boethic-layout__main > .boethic-section:not(.boethic-panel) > .boethic-section-head {
	margin-bottom: 0;
}

/* En-tête de rubrique / du blog : titre et description alignés à gauche dans la carte. */
.boethic-listing-panel .boethic-breadcrumb {
	margin-bottom: 0;
}

.boethic-listing-panel .wp-block-query-title,
.boethic-listing-panel h1 {
	margin: 0;
}

.boethic-term-description {
	font-size: 1.0625rem;
}

.boethic-term-description .boethic-video {
	margin-block: var(--wp--preset--spacing--40);
}

/* ---------- Cartes d'articles blanches (listes de la colonne principale) ---------- */

.boethic-grid--cartes .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
}

.boethic-grid--cartes .boethic-card {
	height: 100%;
	overflow: hidden;
	padding-bottom: 1.5rem;
	background-color: var(--wp--preset--color--blanc);
	border-radius: var(--boethic-radius-sm);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.boethic-grid--cartes .boethic-card > :not(.boethic-card__media) {
	padding-inline: 1.25rem;
}

.boethic-grid--cartes .boethic-card__media,
.boethic-grid--cartes .boethic-card__media img {
	border-radius: 0;
}

/* 15 articles par page (comme l'ancien site) : le premier occupe toute la largeur, image à gauche,
   puis 7 rangées de 2 cartes — aucune carte seule en fin de grille. */
@media (min-width: 600px) {
	.boethic-grid--cartes .wp-block-post-template.is-layout-grid > li:first-child:not(:last-child) {
		grid-column: 1 / -1;
	}

	.boethic-grid--cartes .wp-block-post-template > li:first-child:not(:last-child) .boethic-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		column-gap: 0;
		padding-bottom: 0;
	}

	.boethic-grid--cartes .wp-block-post-template > li:first-child:not(:last-child) .boethic-card__media {
		grid-row: 1 / span 3;
		width: 100%;
		height: 100%;
		min-height: 15rem;
		margin: 0;
		overflow: hidden;
		aspect-ratio: auto;
	}

	.boethic-grid--cartes .wp-block-post-template > li:first-child:not(:last-child) .boethic-card__media :is(figure, a, img) {
		width: 100%;
		height: 100%;
		margin: 0;
		aspect-ratio: auto !important;
		object-fit: cover;
	}

	.boethic-grid--cartes .wp-block-post-template > li:first-child:not(:last-child) .boethic-card > :not(.boethic-card__media) {
		grid-column: 2;
		padding-inline: 1.5rem;
	}

	.boethic-grid--cartes .wp-block-post-template > li:first-child:not(:last-child) .boethic-card__meta {
		padding-top: 1.5rem;
	}

	.boethic-grid--cartes .wp-block-post-template > li:first-child:not(:last-child) .boethic-card__excerpt {
		padding-bottom: 1.5rem;
	}
}

@media (max-width: 599px) {
	.boethic-grid--cartes .wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Pagination sur le fond vert. */
.boethic-layout .wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
}

/* Page « Nos rubriques » dans la colonne principale : 2 tuiles par ligne, même écart dans les deux sens. */
.boethic-layout .boethic-rubriques {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50);
}

.boethic-layout .boethic-rubrique,
.boethic-layout .boethic-rubrique:nth-child(n + 4) {
	grid-column: auto;
}

.boethic-layout .boethic-rubrique:nth-child(n + 4) .boethic-rubrique__media {
	aspect-ratio: 4 / 3;
}

.boethic-layout .boethic-rubrique:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.boethic-layout .boethic-rubrique:last-child:nth-child(odd) .boethic-rubrique__media {
	aspect-ratio: 16 / 9;
}

@media (max-width: 599px) {
	.boethic-layout .boethic-rubriques {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Colonne de droite (parts/sidebar.html → patterns/sidebar.php) ---------- */

.boethic-sidebar {
	min-width: 0;
}

.boethic-sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

.boethic-sidebar__inner > * {
	margin: 0 !important;
}

.boethic-widget {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.75rem 1.5rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.75;
}

.boethic-widget > * {
	margin: 0 !important;
}

.boethic-widget__title {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.2;
}

.boethic-widget .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* Photo ronde de Cécile, fin cercle sable. */
.boethic-sidebar__portrait-wrap {
	display: flex;
	justify-content: center;
}

.boethic-sidebar__portrait {
	display: block;
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid var(--wp--preset--color--sable);
	padding: 4px;
	background: var(--wp--preset--color--blanc);
}

.boethic-widget__lead {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

/* Réseaux sociaux : pictogrammes sarcelle dans un fin cercle. */
.boethic-widget__social.wp-block-social-links {
	gap: 0.75rem;
}

.boethic-widget__social .wp-social-link {
	border: 1.5px solid var(--wp--preset--color--sarcelle);
	border-radius: 50%;
}

.boethic-widget__social .wp-social-link a {
	padding: 0.45rem !important;
}

.boethic-widget__social .wp-social-link:hover {
	background-color: var(--wp--preset--color--fond);
}

/* Boutique et catalogues : cartes de couleur, mandala en léger motif. */
.boethic-widget--motif {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 2rem;
}

.boethic-widget--motif::before {
	content: "";
	position: absolute;
	inset: -40% -10%;
	z-index: -1;
	background-color: var(--wp--preset--color--blanc);
	opacity: 0.08;
	-webkit-mask: url("assets/images/boethic-mandala.svg") center / contain no-repeat;
	mask: url("assets/images/boethic-mandala.svg") center / contain no-repeat;
}

.boethic-widget--motif :where(a):focus-visible {
	outline-color: var(--wp--preset--color--blanc);
}

.boethic-widget--motif.has-sauge-background-color :where(a):focus-visible {
	outline-color: var(--wp--preset--color--encre);
}

/* Dernier article : carte compacte. */
.boethic-widget__query .boethic-card {
	gap: 0.75rem;
}

.boethic-widget__query .boethic-card__title {
	font-size: var(--wp--preset--font-size--large);
}

/* Couvertures (guide, article « super-héros ») : image entière, centrée. */
.boethic-sidebar__cover-wrap {
	display: flex;
	justify-content: center;
}

.boethic-sidebar__cover {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	border: 1px solid var(--wp--preset--color--fond);
}

.boethic-widget--heros .wp-block-buttons {
	display: flex;
	justify-content: center;
}

/* Texte réservé aux lecteurs d'écran. */
.screen-reader-text,
.boethic-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Nos produits (accueil) : cartes blanches, lien vers la boutique ---------- */

.boethic-products {
	margin-bottom: 0;
	padding: 0;
	list-style: none;
}

.boethic-section--produits .boethic-products {
	margin-top: var(--wp--preset--spacing--50) !important;
}

.boethic-product {
	overflow: hidden;
	padding-bottom: 1.5rem;
	background-color: var(--wp--preset--color--blanc);
	border-radius: var(--boethic-radius-sm);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
	text-align: center;
}

.boethic-product > :not(.boethic-card__media) {
	padding-inline: 1.25rem;
}

.boethic-product .boethic-card__media {
	overflow: hidden;
	border-radius: 0;
}

.boethic-product .boethic-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.boethic-product:hover .boethic-card__media img {
	transform: scale(1.03);
}

.boethic-product .boethic-card__meta {
	justify-content: center;
	margin: 0 0 0.35rem;
	color: var(--wp--preset--color--brique);
}

.boethic-product .boethic-card__excerpt {
	-webkit-line-clamp: unset;
	line-clamp: unset;
	margin-top: 0.5rem;
}

/* ---------- Pied de page : logo Boethic blanc + label Engagé à Lyon ---------- */

.boethic-footer__logos {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.boethic-footer__logo {
	display: inline-block;
	line-height: 0;
}

/* Même hauteur visuelle pour les deux logos. */
.boethic-footer__logo img,
.boethic-footer__label img {
	display: block;
	width: auto;
	height: 104px;
}

.boethic-footer__label {
	line-height: 0;
}

.boethic-footer__logo:focus-visible {
	outline: 2px solid var(--wp--preset--color--encre);
	outline-offset: 4px;
}

@media (max-width: 599px) {
	.boethic-footer__logos {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}

	.boethic-footer__logo img,
	.boethic-footer__label img {
		height: 96px;
	}
}

/* Réseaux sociaux du pied de page, sous les logos (pattern boethic/reseaux-sociaux). */
.boethic-footer .boethic-social {
	margin-top: var(--wp--preset--spacing--40);
}

/* ---------- Formulaires Jetpack (Contact, Exercez vos droits) ---------- */

.boethic-form.wp-block-jetpack-contact-form {
	gap: 1.25rem;
}

.boethic-form .grunion-field-label {
	margin-bottom: 0.375rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--texte);
}

.boethic-form .grunion-label-required {
	margin-left: 0.25rem;
	font-weight: 400;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--texte-doux);
}

.boethic-form :is(input[type="text"], input[type="email"], textarea, select).grunion-field {
	width: 100%;
	padding: 0.75rem 1rem;
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--texte);
	background-color: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--texte-doux);
	border-radius: var(--boethic-radius-sm);
	box-shadow: none;
	transition: border-color 0.15s ease;
}

.boethic-form textarea.grunion-field {
	min-height: 10rem;
	resize: vertical;
}

.boethic-form :is(input, textarea, select).grunion-field:hover {
	border-color: var(--wp--preset--color--sarcelle);
}

.boethic-form :is(input, textarea, select, button):focus-visible {
	outline: 2px solid var(--wp--preset--color--sarcelle);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--sarcelle);
}

/* Case de consentement RGPD */
.boethic-form .contact-form__checkbox-wrap {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
}

.boethic-form input[type="checkbox"] {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.3rem 0 0;
	accent-color: var(--wp--preset--color--sarcelle);
}

.boethic-form .grunion-field-label.checkbox {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
}

.boethic-form .grunion-field-label a {
	color: var(--wp--preset--color--sarcelle);
}

/* Messages d'erreur : brique (contraste ≥ 4,5:1 sur blanc). */
.boethic-form .contact-form__input-error {
	color: var(--wp--preset--color--brique);
	font-size: 0.875rem;
}

/* Bouton « Envoyer » : sarcelle, texte blanc (≈ 5,6:1). */
.boethic-form .wp-block-button__link {
	padding: 0.875rem 2.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--blanc);
	background-color: var(--wp--preset--color--sarcelle);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.boethic-form .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--sauge-fonce);
	color: var(--wp--preset--color--blanc);
}

/* ---------- Formulaires Brevo (Newsletter, guides) ---------- */

/* Espace entre le texte qui précède et le formulaire. Le CSS personnalisé du formulaire, réglé dans
   l'extension (« [form] { margin: 0 auto } », soit form#sib_signup_form_N), cible un identifiant et
   remet la marge du haut à 0 : seul !important permet de la rétablir. La marge horizontale (centrage)
   n'est pas touchée. */
.sib_signup_form {
	margin-block-start: 1.5rem !important;
}

/* ---------- Boutons dans les contenus (articles, pages, descriptions de rubrique) ---------- */

/* Espacement régulier autour des blocs Boutons (le blockGap de 1,25 rem les collait au texte). */
:is(.wp-block-post-content, .boethic-term-description) :is(.wp-block-buttons, .wp-block-button:not(.wp-block-buttons > .wp-block-button)) {
	margin-block: 2.5rem;
}

:is(.wp-block-post-content, .boethic-term-description) > :is(.wp-block-buttons, .wp-block-button):first-child {
	margin-block-start: 0;
}

:is(.wp-block-post-content, .boethic-term-description) > :is(.wp-block-buttons, .wp-block-button):last-child {
	margin-block-end: 0;
}

/* Titre qui suit un bouton : il ouvre une nouvelle partie, un peu plus d'air encore. */
:is(.wp-block-post-content, .boethic-term-description) :is(.wp-block-buttons, .wp-block-button) + :is(h2, h3, h4) {
	margin-block-start: 3rem;
}

/* ---------- Définition du glossaire (templates/single-mywpglossary.html) ---------- */

.boethic-glossaire__retour {
	margin-top: var(--wp--preset--spacing--50);
	font-weight: 600;
}

/* ---------- Plan du site (plan HTML de SEOPress sur /plan-du-site/, comme l'ancien site) ---------- */

.sp-html-sitemap .sp-wrap-cpt + .sp-wrap-cpt {
	margin-top: var(--wp--preset--spacing--60);
}

.sp-html-sitemap h2.sp-cpt-name {
	margin-bottom: var(--wp--preset--spacing--30);
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--fond);
}

.sp-html-sitemap h3 {
	margin: var(--wp--preset--spacing--50) 0 0.75rem;
	font-size: var(--wp--preset--font-size--large);
}

.sp-html-sitemap h3 a {
	color: var(--wp--preset--color--sarcelle);
	text-decoration: none;
}

.sp-html-sitemap ul {
	margin: 0;
	padding-left: 1.25rem;
	line-height: 1.5;
}

.sp-html-sitemap li {
	margin-block: 0.4rem;
}

.sp-html-sitemap li::marker {
	color: var(--wp--preset--color--sable);
}

/* Sous-pages en retrait (ex. les 2 guides). */
.sp-html-sitemap ul.children {
	margin-top: 0.4rem;
	padding-left: 1.5rem;
}

@media (min-width: 960px) {
	.sp-html-sitemap .sp-wrap-cpt:last-child ul {
		column-count: 2;
		column-gap: var(--wp--preset--spacing--50);
	}

	.sp-html-sitemap li {
		break-inside: avoid;
	}
}
