/* Beemagik — base, boutons, utilitaires. Source : maquette lestudio4 (style.css v58). */

:root {
	--bm-rose: #F6C1CC;
	--bm-rose-50: #FCEFF2;
	--bm-rose-100: #F9DDE3;
	--bm-rose-deep: #B9566F;
	--bm-rose-bouton: #F9A7B6;
	--bm-rose-clair: #FBC7D4;
	--bm-vert-50: #EEF8F3;
	--bm-vert-bouton: #88C4A9;
	--bm-vert-clair: #BEE3D3;
	--bm-vert-deep: #3D7563;
	--bm-encre: #3A2F33;
	--bm-muted: #76676C;
	--bm-filet: #ECE2E4;
	--bm-creme: #FBF8F5;
	--bm-sable: #F1EBE3;
	--bm-r: 18px;
	--bm-ombre: 0 10px 30px rgba(58, 47, 51, .08);
	--bm-titres: Outfit, system-ui, sans-serif;
	--bm-focus: 0 0 0 3px #fff, 0 0 0 5px var(--bm-encre);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

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

/* Dans la maquette, surtitres, pastilles et numéros sont des div ou des span, sans marge.
   Ici ce sont des paragraphes : ils ne prennent pas la marge basse des paragraphes. */
p:where(:not(.bm-eyebrow, .bm-tag, .bm-min, .bm-n, .bm-pill, .bm-zone-badge)) {
	margin: 0 0 1em;
}

p:where(.bm-eyebrow, .bm-tag, .bm-min, .bm-n, .bm-pill, .bm-zone-badge) {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 .5em;
}

/* Focus clavier visible : absent de la maquette, ajouté pour l'accessibilité. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid transparent;
	outline-offset: 2px;
	box-shadow: var(--bm-focus);
	border-radius: 6px;
}

/* Utilitaires */
.bm-eyebrow {
	font-family: var(--bm-titres);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.bm-muted {
	color: var(--bm-muted);
}

.bm-small {
	font-size: 13.5px;
}

.bm-lead {
	font-size: 19px;
	max-width: 760px;
}

.bm-center {
	text-align: center;
}

.bm-mt {
	margin-top: 26px;
}

/* Boutons : .btn de la maquette, porté sur le bloc Bouton. */
.wp-block-button__link,
.bm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--bm-titres);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	border-radius: 999px;
	padding: 14px 24px;
	cursor: pointer;
	background: var(--bm-rose-bouton);
	color: var(--bm-encre);
	transition: transform .15s, box-shadow .15s, background .15s;
}

.wp-block-button__link:hover,
.bm-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
	color: var(--bm-encre);
}

.wp-block-button.is-style-bm-vert .wp-block-button__link,
.bm-btn--vert {
	background: var(--bm-vert-bouton);
	color: var(--bm-encre);
}

.wp-block-button.is-style-bm-ghost .wp-block-button__link,
.bm-btn--ghost {
	background: #fff;
	color: var(--bm-encre);
	border: 1.5px solid var(--bm-filet);
}

.wp-block-button.is-style-bm-sombre .wp-block-button__link,
.bm-btn--sombre {
	background: var(--bm-encre);
	color: #fff;
}

.wp-block-button.bm-btn-sm .wp-block-button__link,
.bm-btn--sm {
	padding: 11px 18px;
	font-size: 13.5px;
}

/* Sections */
.bm-sec {
	padding-top: 72px;
	padding-bottom: 72px;
}

.bm-sec--alt {
	background: #fff;
}

/* Liens externes (inc/liens.php) : icône « flèche sortant d'un carré », dessinée par un masque
 * pour prendre la couleur du lien. En ligne : elle suit le texte, y compris dans les liens
 * en display:block du pied de page et dans les boutons (inline-flex). */
.bm-ext__icone {
	display: inline-block;
	flex: none;
	width: .75em;
	height: .75em;
	margin-left: .3em;
	vertical-align: baseline;
	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='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7'/%3E%3Cpath d='M21 3 11 13'/%3E%3Cpath d='M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7'/%3E%3Cpath d='M21 3 11 13'/%3E%3Cpath d='M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (forced-colors: active) {
	.bm-ext__icone {
		forced-color-adjust: none;
		background: LinkText;
	}
}

/* Texte réservé aux lecteurs d'écran : définition standard de WordPress, reprise ici
 * pour ne pas dépendre de la feuille commune du cœur. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--bm-encre);
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.wp-block-button__link,
	.bm-btn {
		transition: none;
	}

	.wp-block-button__link:hover,
	.bm-btn:hover {
		transform: none;
	}
}
