/*
Theme Name: Bethora
Theme URI: https://bethora.tech
Author: Bethora
Author URI: https://bethora.tech
Description: Thème à blocs sur mesure pour Bethora, agence web & digitale. Page d'accueil construite avec l'éditeur de blocs.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bethora
*/

/*
 * Uniquement ce que les réglages des blocs ne savent pas faire :
 * positionnement absolu, largeurs maximales, icônes et pictos,
 * variantes de boutons, bloc Détails, formulaire Contact Form 7.
 */

:root {
	color-scheme: dark;
	--bth-icone-fond: #1f1a33;
	--bth-visuel: #1b1b20;
	--bth-indice: #6e6e78;
	--bth-survol: #3a3a42;
	--bth-vedette: #1a1530;
	--bth-bento: #1d1838;
	--bth-flottant: rgba(22, 22, 26, 0.92);
	--bth-voile: rgba(255, 255, 255, 0.04);
	--bth-blanc-survol: #ede7ff;
	--bth-filigrane: #16161b;
	--bth-outfit: var(--wp--preset--font-family--outfit);
	--bth-mono: var(--wp--preset--font-family--jetbrains-mono);
	--bth-trait: #1f1f25;
	--bth-contour: #34343c;
	--bth-champ: #2c2c33;
}

/* ---------- Base ---------- */
body {
	-webkit-font-smoothing: antialiased;
}

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

/* En-tête, contenu et pied de page se touchent, comme dans la maquette. */
:root .wp-site-blocks > * {
	margin-block-start: 0;
}

.bth-relatif {
	position: relative;
}

.bth-mw-640 {
	max-width: 640px;
}

.bth-mw-340 {
	max-width: 340px;
}

/* ---------- Logo ---------- */
.bth-logo,
.bth-logo:hover,
.bth-logo:focus {
	display: flex;
	align-items: center;
	color: var(--wp--preset--color--blanc); /* blanc en mode sombre, presque noir en mode clair */
}

.bth-logo svg {
	display: block;
}

/* Mot « bethora. » sur ordinateur, symbole « bo » sur mobile (jamais les deux en même temps). */
.bth-logo__symbole {
	display: none;
}

.bth-logo--pied svg {
	width: 88.3px;
	height: 25.85px;
}

/* ---------- Menu principal ---------- */
.bth-menu,
.bth-menu .wp-block-navigation__container {
	gap: 6px 26px;
}

.bth-menu a:hover,
.bth-menu a:focus {
	color: inherit;
}

/* ---------- Sélecteurs FR / EN et devise (apparence seulement) ---------- */
.bth-pilules {
	display: flex;
	border: 1px solid var(--bth-champ);
	border-radius: 999px;
	padding: 3px;
	font: 500 12px var(--bth-mono);
}

.bth-pilules button,
.bth-pilules a {
	display: block;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--gris);
	border-radius: 999px;
	padding: 6px 10px;
	font: inherit;
	cursor: pointer;
}

.bth-pilules button[aria-pressed="true"],
.bth-pilules a[aria-current="true"] {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--noir);
}

.bth-pilules--devise button {
	padding: 6px 12px;
}

/* ---------- Boutons ---------- */
.wp-block-button.bth-btn-petit .wp-block-button__link {
	font-size: 15px;
	padding: 12px 20px;
}

.wp-block-button.bth-btn-tarif .wp-block-button__link {
	font-size: 15px;
	padding: 13px;
}

.wp-block-button.is-style-contour .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--blanc);
	border: 1px solid var(--bth-contour);
}

.wp-block-button.is-style-blanc .wp-block-button__link {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--noir);
	font-weight: 600;
}

.wp-block-button.is-style-contour-blanc .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--blanc);
	border: 1.5px solid var(--wp--preset--color--blanc);
}

/* Flèche après le texte du bouton principal du héro. */
.wp-block-button.bth-fleche .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.wp-block-button.bth-fleche .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	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' 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Styles de paragraphe ---------- */
.is-style-surtitre {
	font-family: var(--bth-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--violet-texte);
}

.is-style-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	margin: 0;
	background: var(--wp--preset--color--noir);
	border: 1px solid var(--bth-contour);
	border-radius: 999px;
	padding: 5px 11px;
	font: 500 11px var(--bth-mono);
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--gris-clair);
}

.is-style-badge.bth-badge-recommande {
	top: -13px;
	left: 28px;
	background: var(--wp--preset--color--violet);
	border: 0;
	color: #fff;
}

/* ---------- Héro ---------- */
.bth-hero {
	position: relative;
	overflow: hidden;
}

.bth-hero__symbole {
	position: absolute;
	right: -180px;
	top: -60px;
}

.bth-hero__grille {
	align-items: center;
}

.bth-equilibre {
	text-wrap: balance;
}

.bth-chapo {
	max-width: 540px;
	text-wrap: pretty;
}

.bth-hero__visuel {
	position: relative;
}

.bth-carte-devis {
	position: absolute;
	left: -14px;
	bottom: 0;
}

.bth-carte-devis__icone {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--wp--preset--color--violet);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Pictos des cartes ---------- */
.bth-icone {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--bth-icone-fond);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bth-icone--44 {
	width: 44px;
	height: 44px;
	border-radius: 11px;
}

.bth-icone--plein {
	background: var(--wp--preset--color--violet);
}

/* Toute la carte est cliquable, la couleur du lien ne change pas. */
.bth-carte-lien {
	position: relative;
}

.bth-carte-lien a,
.bth-carte-lien a:hover,
.bth-carte-lien a:focus {
	color: inherit;
}

.bth-carte-lien a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* ---------- Services ---------- */
.bth-prix strong {
	font-size: 18px;
	font-weight: 600;
	color: var(--wp--preset--color--blanc);
}

/* ---------- Réalisations ---------- */
.bth-demo__visuel {
	position: relative;
	box-sizing: content-box; /* le ratio 4/3 s'applique sans la bordure, comme dans la maquette */
	aspect-ratio: 4 / 3;
	background: var(--bth-visuel);
}

.bth-demo__capture {
	font: 500 13px var(--bth-mono);
	color: var(--bth-indice);
}

/* ---------- Tarifs ---------- */
.is-style-coches {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.is-style-coches li {
	display: flex;
	gap: 10px;
}

.is-style-coches li::before,
.bth-garanties p::before {
	content: "✓";
	color: var(--wp--preset--color--violet-texte);
}

.bth-garanties p {
	display: flex;
	gap: 8px;
	align-items: center;
}

/* ---------- FAQ (bloc Détails) ---------- */
.bth-faq-item {
	border-bottom: 1px solid var(--wp--preset--color--bordure);
}

.bth-faq-item > summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	font: 500 18px var(--bth-outfit);
	color: var(--wp--preset--color--blanc);
}

.bth-faq-item > summary::-webkit-details-marker {
	display: none;
}

.bth-faq-item > summary::after {
	content: "+";
	font: 300 26px/1 var(--bth-outfit);
	color: var(--wp--preset--color--violet-texte);
}

.bth-faq-item > p {
	max-width: 720px;
}

/* ---------- Formulaire de contact (Contact Form 7) ---------- */
.bth-formulaire .wpcf7-form {
	margin: 0;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: 16px;
	padding: 28px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 16px;
}

.bth-formulaire .wpcf7-form > .hidden-fields-container,
.bth-formulaire .wpcf7-form > div[style*="none"] {
	display: none;
}

.bth-champ {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font: 500 14px var(--bth-outfit);
	color: var(--wp--preset--color--gris-clair);
}

.bth-champ--large,
.bth-consentement,
.bth-envoi {
	grid-column: 1 / -1;
}

.bth-formulaire .wpcf7-form-control-wrap {
	display: block;
}

.bth-formulaire input[type="text"],
.bth-formulaire input[type="email"],
.bth-formulaire input[type="tel"],
.bth-formulaire select,
.bth-formulaire textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	background: var(--wp--preset--color--noir);
	border: 1px solid var(--bth-champ);
	border-radius: 10px;
	padding: 13px 14px;
	color: var(--wp--preset--color--blanc);
	font: 400 15px var(--bth-outfit);
}

.bth-formulaire textarea {
	resize: vertical;
}

.bth-consentement .wpcf7-list-item {
	display: block;
	margin: 0;
}

.bth-consentement label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font: 400 14px/1.5 var(--bth-outfit);
	color: var(--wp--preset--color--gris);
}

.bth-consentement input[type="checkbox"] {
	margin: 3px 3px 3px 4px;
	accent-color: var(--wp--preset--color--violet);
}

.bth-envoi {
	position: relative;
}

.bth-envoi .wpcf7-submit {
	display: block;
	width: 100%;
	margin: 0;
	background: var(--wp--preset--color--violet);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 15px;
	font: 500 16px var(--bth-outfit);
	cursor: pointer;
}

.bth-envoi .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 16px;
	margin: -12px 0 0;
}

.bth-formulaire .wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 0;
	border-radius: 10px;
	color: var(--wp--preset--color--gris-clair);
}

.bth-formulaire .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
}

/* ---------- Pied de page ---------- */
/* auto-fit (et non auto-fill) comme la maquette : la grille de l'éditeur ne propose que auto-fill. */
.wp-block-group.bth-pied__grille {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

/* Le bloc logo garde « span 2 » en mobile, comme la maquette (WordPress le passerait en pleine largeur). */
.wp-block-group.bth-pied__grille > .bth-pied__marque {
	grid-column: span 2;
}

.bth-pied__marque {
	min-width: 0;
}

.bth-reseaux {
	display: flex;
	gap: 10px;
}

.bth-reseaux a {
	width: 40px;
	height: 40px;
	border: 1px solid var(--bth-champ);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--gris-clair);
	font: 600 13px var(--bth-outfit);
}

.bth-reseaux a.bth-reseaux__f {
	font-size: 14px;
}

.bth-reseaux a:hover,
.bth-pied__colonne a,
.bth-pied__colonne a:hover {
	color: var(--wp--preset--color--gris-clair);
}

.bth-pied__bas a,
.bth-pied__bas a:hover {
	color: var(--wp--preset--color--gris-fonce);
}

/* =====================================================================
 * Finitions « site réel » (au-delà de la maquette statique)
 * ===================================================================== */

/* Défilement doux vers les ancres, en tenant compte de l'en-tête fixe. */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

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

/* En-tête fixe en haut de l'écran (sous la barre d'administration si connecté). */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

/* Menu mobile : bouton « menu » à droite, panneau plein écran. */
@media (max-width: 599px) {
	.bth-menu {
		order: 3;
	}

	.bth-logo__mot {
		display: none;
	}

	.bth-logo__symbole {
		display: block;
	}

	/* Barre mobile : logo à gauche, FR / EN au milieu, bouton menu à droite.
	   Le mode clair/sombre et « Réserver » restent dans le panneau du menu. */
	.bth-en-tete > .wp-block-group {
		position: relative;
	}

	.bth-en-tete .bth-en-tete__actions {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.bth-en-tete .bth-en-tete__actions > .bth-theme,
	.bth-en-tete .bth-en-tete__actions > .wp-block-buttons {
		display: none;
	}

	.bth-pilules--panneau {
		display: none !important;
	}
}

.bth-menu .wp-block-navigation__responsive-container-open svg,
.bth-menu .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

.bth-menu .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
}

.bth-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px;
}

.bth-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 22px;
}

/* La taille du menu (15 px) est une classe WordPress en !important : on la remplace dans le panneau seulement. */
.bth-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-size: 24px !important;
	font-weight: 600;
}

/* Survols et focus. */
.wp-block-button__link,
.bth-carte-lien,
.bth-demo__visuel,
.bth-reseaux a,
.bth-pilules button,
.bth-menu a,
.bth-pied__colonne a,
.bth-pied__bas a,
.bth-faq-item > summary::after {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wp-block-button.is-style-contour .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--blanc);
	background: var(--bth-voile);
}

.wp-block-button.is-style-blanc .wp-block-button__link:hover {
	background: var(--bth-blanc-survol);
}

.wp-block-button.is-style-contour-blanc .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.14);
}

.wp-block-button.bth-fleche .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.wp-block-button.bth-fleche .wp-block-button__link::after {
	transition: transform 0.2s ease;
}

.bth-menu a:hover,
.bth-pied__colonne a:hover,
.bth-reseaux a:hover {
	color: var(--wp--preset--color--blanc);
}

.bth-pied__bas a:hover {
	color: var(--wp--preset--color--gris-clair);
}

.bth-reseaux a:hover {
	border-color: var(--bth-contour);
}

.has-surface-background-color.bth-carte-lien:hover {
	border-color: var(--bth-survol) !important;
}

.bth-carte-lien:hover .bth-demo__visuel {
	border-color: var(--bth-survol) !important;
}

.bth-pilules a:not([aria-current="true"]):hover,
.bth-pilules button[aria-pressed="false"]:not(:disabled):hover {
	color: var(--wp--preset--color--blanc);
}

.bth-faq-item > summary:hover {
	color: var(--wp--preset--color--violet-texte);
}

.bth-faq-item[open] > summary::after {
	content: "−";
}

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--violet-texte);
	outline-offset: 2px;
}

/* Sélecteur de langue recopié dans le panneau du menu mobile. */
.bth-pilules--panneau {
	display: none;
	order: 99; /* sous les liens du menu */
	align-self: flex-start;
	margin-top: 36px;
	font-size: 14px;
}

.is-menu-open .bth-pilules--panneau {
	display: flex;
}

.bth-pilules--panneau a {
	padding: 8px 14px;
}

/* Devise indisponible (taux non récupéré). */
.bth-pilules button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Note « montants indicatifs », visible seulement en EUR ou CDF. */
.bth-note-devise {
	max-width: 300px;
	visibility: hidden; /* place réservée : rien ne bouge quand la note apparaît */
}

html[data-devise="EUR"] .bth-note-devise,
html[data-devise="CDF"] .bth-note-devise {
	visibility: visible;
}

.bth-note-devise a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Pages de texte (mentions légales, confidentialité, conditions) ---------- */
.bth-texte {
	color: var(--wp--preset--color--gris-clair);
	font-size: 16px;
	line-height: 1.65;
}

.bth-texte h2 {
	margin-top: 44px !important;
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.bth-texte ul {
	padding-left: 1.2em;
}

.bth-texte li + li {
	margin-top: 6px;
}

.bth-texte a {
	color: var(--wp--preset--color--violet-texte);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bth-texte code {
	font-family: var(--bth-mono);
	font-size: 0.9em;
	color: var(--wp--preset--color--blanc);
}

.bth-consentement a {
	color: var(--wp--preset--color--violet-texte);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Champ piège anti-spam : invisible pour les visiteurs, rempli par les robots. */
.bth-piege {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Menu : section affichée et survol ---------- */
.bth-menu .wp-block-navigation-item__content {
	position: relative;
}

.bth-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--violet);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.bth-menu a.bth-actif,
.bth-menu a.bth-actif:hover {
	color: var(--wp--preset--color--blanc);
}

.bth-menu a:hover::after,
.bth-menu a.bth-actif::after {
	transform: scaleX(1) !important;
}

/* Dans le panneau mobile : trait à gauche plutôt que dessous. */
.bth-menu .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	display: none;
}

.bth-menu .is-menu-open a.bth-actif {
	color: var(--wp--preset--color--violet-texte);
}

/* ---------- Bouton WhatsApp flottant ---------- */
.bth-whatsapp {
	position: fixed;
	right: 24px;
	bottom: 40px;
	z-index: 90;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bth-whatsapp:hover,
.bth-whatsapp:focus-visible {
	transform: scale(1.06);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

/* Appel discret : après 6 s, un léger balancement et un halo toutes les 8 s (arrêté au survol). */
.bth-whatsapp {
	animation: bth-wa-appel 8s ease-in-out 6s infinite;
}

.bth-whatsapp::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
	animation: bth-wa-halo 8s ease-out 6s infinite;
	pointer-events: none;
}

.bth-whatsapp:hover,
.bth-whatsapp:focus-visible,
.bth-whatsapp:hover::after,
.bth-whatsapp:focus-visible::after {
	animation: none;
}

@keyframes bth-wa-appel {
	0%, 80%, 100% { transform: none; }
	83% { transform: rotate(-12deg) scale(1.08); }
	86% { transform: rotate(10deg) scale(1.08); }
	89% { transform: rotate(-6deg) scale(1.05); }
	92% { transform: rotate(4deg) scale(1.02); }
	95% { transform: none; }
}

@keyframes bth-wa-halo {
	0%, 80% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
	100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.bth-whatsapp,
	.bth-whatsapp::after {
		animation: none;
	}
}

@media (max-width: 599px) {
	.bth-whatsapp {
		right: 16px;
		bottom: 32px;
		width: 52px;
		height: 52px;
	}

	.bth-haut {
		right: 20px;
		bottom: 96px;
	}
}

/* ---------- Pages Services et À propos ---------- */
.bth-ariane a {
	color: inherit;
}

.bth-ariane a:hover {
	color: var(--wp--preset--color--blanc);
}

.bth-404 .bth-relatif {
	z-index: 1;
}

/* ---------- Annonces : bandeau et fenêtre ---------- */
.bth-bandeau {
	position: relative;
	z-index: 101;
	background: var(--wp--preset--color--violet);
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	padding: 10px 52px;
	text-align: center;
}

.bth-bandeau__contenu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 16px;
}

.bth-bandeau a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bth-bandeau .bth-bandeau__bouton {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--noir);
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	padding: 5px 14px;
	border-radius: 8px;
	white-space: nowrap;
}

.bth-bandeau__fermer {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.bth-bandeau__fermer:hover {
	background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 599px) {
	.bth-bandeau {
		padding: 10px 44px 10px 16px;
		text-align: left;
	}

	.bth-bandeau__contenu {
		justify-content: flex-start;
	}
}

.bth-modale {
	width: min(480px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 32px 28px 28px;
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: 18px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--blanc);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.bth-modale::backdrop {
	background: rgba(8, 8, 10, 0.72);
	backdrop-filter: blur(3px);
}

.bth-modale__fermer-form {
	position: absolute;
	top: 12px;
	right: 12px;
	margin: 0;
}

.bth-modale__fermer {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--gris-clair);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.bth-modale__fermer:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--blanc);
}

.bth-modale__titre {
	margin: 0 40px 12px 0;
	font-size: 26px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.bth-modale__contenu {
	color: var(--wp--preset--color--gris-clair);
	font-size: 16px;
	line-height: 1.6;
}

.bth-modale__contenu > * + * {
	margin-top: 12px;
}

.bth-modale__contenu img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.bth-modale .bth-modale__bouton {
	display: block;
	margin-top: 22px;
	text-align: center;
}

/* ---------- Blog ---------- */
.bth-filtres {
	align-items: center;
}

.bth-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bth-filtre a,
.bth-categories a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--bth-contour);
	border-radius: 999px;
	color: var(--wp--preset--color--gris-clair);
	font-size: 14px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.bth-filtre a:hover,
.bth-categories a:hover {
	border-color: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--blanc);
}

.bth-filtre--actif a,
.bth-categories .current-cat a {
	background: var(--wp--preset--color--blanc);
	border-color: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--noir);
}

.bth-carte-article {
	overflow: hidden;
	height: 100%;
}

.bth-carte-article .wp-block-post-featured-image {
	margin: 0;
}

.bth-carte-article .wp-block-post-title a {
	color: inherit;
}

.bth-carte-article .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.bth-categorie-article a,
.bth-categorie-article a:hover {
	color: var(--wp--preset--color--violet-texte);
	position: relative;
	z-index: 1;
}

/* Le lien de la carte couvre toute la carte, sauf la catégorie qui garde son propre lien. */
.bth-carte-article .bth-categorie-article a::after {
	content: none;
}

.bth-pagination {
	margin-top: 40px;
	gap: 8px;
	font-size: 15px;
}

.bth-pagination a,
.bth-pagination .current {
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--wp--preset--color--gris-clair);
}

.bth-pagination .current {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--noir);
}

.bth-meta-article > * + *::before {
	content: "·";
	margin-right: 18px;
	color: var(--bth-contour);
}

.bth-meta-article {
	gap: 0 !important;
}

.bth-meta-article > * + * {
	margin-left: 18px;
}

.bth-ariane .wp-block-post-terms a,
.bth-ariane p a {
	color: inherit;
}

.bth-encadre-contact {
	margin-top: 24px !important;
}

.bth-texte .bth-a-retenir {
	margin-top: 32px !important;
}

.bth-recherche {
	margin-left: auto;
	min-width: 240px;
}

.bth-recherche .wp-block-search__inside-wrapper {
	border: 1px solid var(--bth-contour);
	border-radius: 999px;
	padding: 3px 3px 3px 14px;
	background: var(--wp--preset--color--noir);
}

.bth-recherche .wp-block-search__input {
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--blanc);
	font: 400 14px var(--bth-outfit);
	padding: 6px 4px;
}

.bth-recherche .wp-block-search__input:focus {
	outline: none;
}

.bth-recherche .wp-block-search__button {
	margin: 0;
	border-radius: 999px;
	padding: 8px;
	background: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--blanc);
}

.bth-recherche .wp-block-search__button svg {
	fill: currentColor;
	width: 20px;
	height: 20px;
}

@media (max-width: 599px) {
	.bth-recherche {
		margin-left: 0;
		width: 100%;
	}
}

/* ---------- Contenu riche des articles (et des fenêtres d'annonce) ---------- */
.bth-texte h3 {
	margin-top: 32px !important;
	font-size: 20px;
	line-height: 1.3;
}

.bth-texte h4 {
	margin-top: 24px !important;
	font-size: 17px;
	font-weight: 600;
}

.bth-texte strong,
.bth-texte b,
.bth-modale__contenu strong {
	color: var(--wp--preset--color--blanc);
	font-weight: 600;
}

.bth-texte mark:not(.has-inline-color) {
	background: color-mix(in srgb, var(--wp--preset--color--violet) 35%, transparent);
	color: var(--wp--preset--color--blanc);
	padding: 0 3px;
	border-radius: 3px;
}

.bth-texte ol {
	padding-left: 1.4em;
}

.bth-texte ol li::marker,
.bth-texte ul:not(.is-style-coches) li::marker {
	color: var(--wp--preset--color--violet-texte);
}

.bth-texte figure {
	margin-left: 0;
	margin-right: 0;
}

.bth-texte figcaption,
.bth-texte .wp-element-caption {
	margin-top: 10px;
	text-align: center;
}

.bth-texte .wp-block-gallery {
	gap: 12px;
}

.bth-texte video,
.bth-texte .wp-block-embed iframe,
.bth-modale__contenu video {
	width: 100%;
	border-radius: 12px;
}

.bth-texte .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.bth-texte .wp-block-table th,
.bth-texte .wp-block-table td {
	border: 1px solid var(--wp--preset--color--bordure);
	padding: 10px 14px;
	text-align: left;
}

.bth-texte .wp-block-table th,
.bth-texte .wp-block-table thead td {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--blanc);
	font-weight: 600;
}

.bth-texte .wp-block-quote cite,
.bth-texte .wp-block-pullquote cite {
	display: block;
	margin-top: 10px;
}

.bth-texte .wp-block-pullquote {
	text-align: center;
}

.bth-texte .wp-block-separator {
	margin-top: 36px !important;
	margin-bottom: 16px !important;
	border-top-width: 1px;
}

.bth-texte .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--bordure);
	padding: 14px 0;
}

.bth-texte .wp-block-details summary {
	color: var(--wp--preset--color--blanc);
	font-weight: 500;
}

.bth-modale__contenu ul,
.bth-modale__contenu ol {
	padding-left: 1.2em;
}

/* ---------- Vidéos YouTube chargées au clic ---------- */
.bth-video {
	margin: 0;
}

.bth-video__lancer {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: 12px;
	background: radial-gradient(circle at 30% 20%, var(--bth-icone-fond), var(--wp--preset--color--surface) 70%);
	color: var(--wp--preset--color--gris-clair);
	font: 500 14px var(--bth-outfit);
	cursor: pointer;
}

.bth-video__lancer:hover {
	color: var(--wp--preset--color--blanc);
}

.bth-video__icone {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--wp--preset--color--violet);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.bth-video__lancer:hover .bth-video__icone {
	transform: scale(1.06);
}

.bth-video__mention {
	font-size: 12px;
	color: var(--wp--preset--color--gris-fonce);
}

.bth-video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 12px;
}

.bth-texte .wp-block-table thead {
	border-bottom: 0;
}

/* ---------- Bouton « haut de page » (au-dessus de WhatsApp, visible après défilement) ---------- */
.bth-haut {
	position: fixed;
	right: 30px;
	bottom: 108px;
	z-index: 90;
	width: 44px;
	height: 44px;
	border: 1px solid var(--bth-contour);
	border-radius: 50%;
	background: var(--bth-flottant);
	color: var(--wp--preset--color--blanc);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.bth-haut[hidden] {
	display: none;
}

.bth-haut.bth-haut--visible {
	opacity: 1;
	transform: none;
}

.bth-haut:hover {
	border-color: var(--wp--preset--color--violet-texte);
}

/* ---------- Bande d'appel à l'action ---------- */
.bth-cta {
	border-top: 1px solid var(--bth-trait);
}

.bth-cta__texte {
	max-width: 640px;
}

/* Boutons un peu plus compacts dans cette bande. */
.bth-boutons-carres .wp-block-button__link {
	padding: 13px 22px;
	font-size: 15px;
}

/* Icône agenda avant « Réserver 30 min ». */
.wp-block-button.bth-agenda .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.wp-block-button.bth-agenda .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 17px;
	height: 17px;
	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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M9 15l2 2 4-4'/%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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M9 15l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 599px) {
	.bth-cta .bth-boutons-carres,
	.bth-cta .bth-boutons-carres .wp-block-button {
		width: 100%;
	}

	.bth-cta .bth-boutons-carres .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

/* La dernière ligne du pied de page laisse libre la colonne des boutons flottants (WhatsApp, haut de page). */
.bth-pied__bas {
	padding-right: 76px;
}

@media (max-width: 599px) {
	.bth-pied__bas {
		padding-right: 64px;
	}
}

/* ---------- Garanties sous les tarifs ---------- */
.bth-garanties-bloc {
	text-align: center;
}

.bth-garantie-carte {
	max-width: 100%;
	text-align: left;
	background: color-mix(in srgb, var(--wp--preset--color--violet) 6%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--violet) 32%, transparent) !important;
}

.bth-pastille {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--gris-clair);
	font-size: 14px;
}

.bth-pastille--violet {
	background: color-mix(in srgb, var(--wp--preset--color--violet) 14%, transparent);
	color: var(--wp--preset--color--violet-texte);
	font-weight: 500;
}

.bth-pastille--violet::before {
	content: "✓";
}

/* Prix des formules : hauteur de ligne fixe, et taille réduite pour les montants longs (CDF),
   pour que rien ne bouge quand on change de devise. */
.bth-montant {
	line-height: 50px !important;
	white-space: nowrap;
}

html[data-devise="CDF"] .bth-montant {
	font-size: clamp(24px, 2.2vw, 30px) !important;
}

/* Fourchette de prix des formules : « 1 000 $ – 2 000 $ », retour à la ligne possible après le tiret. */
.bth-fourchette {
	font-size: clamp(26px, 2.3vw, 30px);
	line-height: 1.15;
	color: var(--wp--preset--color--blanc);
}

.bth-fourchette .bth-montant {
	line-height: inherit !important;
	font-size: inherit !important;
}

.bth-fourchette__tiret {
	color: var(--wp--preset--color--gris-fonce);
	font-weight: 400;
}

html[data-devise="CDF"] .bth-fourchette {
	font-size: clamp(19px, 1.7vw, 22px);
}

html[data-devise="CDF"] .bth-prix strong {
	white-space: nowrap;
}

/* ---------- Services en bento ---------- */
@media (min-width: 1100px) {
	.wp-block-group.bth-bento {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.bth-bento > :first-child {
		grid-column: span 2;
		grid-row: span 2;
	}

	.bth-bento > :last-child {
		grid-column: span 2;
	}
}

@media (min-width: 600px) and (max-width: 1099px) {
	.wp-block-group.bth-bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bth-bento > :first-child,
	.bth-bento > :last-child {
		grid-column: span 2;
	}
}

/* Grande carte : mise en avant, avec le symbole « bo » en filigrane. */
.bth-bento > :first-child {
	position: relative;
	overflow: hidden;
	isolation: isolate; /* le filigrane reste derrière le texte */
	background: linear-gradient(150deg, var(--bth-bento) 0%, var(--wp--preset--color--surface) 60%) !important;
	border-color: color-mix(in srgb, var(--wp--preset--color--violet) 35%, transparent) !important;
}

.bth-bento > :first-child::before {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -50px;
	width: 300px;
	height: 214px;
	background: color-mix(in srgb, var(--wp--preset--color--violet) 16%, transparent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'%3E%3Cg fill='none' stroke='%23000' stroke-width='15'%3E%3Cpath d='M22 6 V66'/%3E%3Ccircle cx='45' cy='66' r='23'/%3E%3Ccircle cx='95' cy='66' r='23'/%3E%3C/g%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 140 100'%3E%3Cg fill='none' stroke='%23000' stroke-width='15'%3E%3Cpath d='M22 6 V66'/%3E%3Ccircle cx='45' cy='66' r='23'/%3E%3Ccircle cx='95' cy='66' r='23'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
	z-index: -1;
}

@media (min-width: 1100px) {
	.bth-bento > :first-child .wp-block-heading {
		font-size: 28px !important;
		letter-spacing: -0.02em;
	}

	.bth-bento > :first-child > p:first-of-type {
		max-width: 380px;
		font-size: 17px !important;
	}
}

/* ---------- Tarifs : alerte, en-têtes de cartes, mise en avant ---------- */
.bth-alerte {
	width: fit-content;
	max-width: 100%;
	background: linear-gradient(90deg, rgba(240, 82, 82, 0.1), rgba(240, 82, 82, 0.04));
	border-color: rgba(240, 82, 82, 0.3) !important;
}

.bth-alerte__icone {
	flex: none;
}

.bth-icone--formule {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	flex: none;
}

.bth-formule-type {
	font: 500 12px var(--bth-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gris);
}

.bth-formule--vedette .bth-formule-type {
	color: var(--wp--preset--color--violet-texte);
}

.bth-formule--vedette {
	background: linear-gradient(180deg, var(--bth-vedette) 0%, var(--wp--preset--color--surface) 55%) !important;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--violet) 8%, transparent), 0 24px 60px color-mix(in srgb, var(--wp--preset--color--violet) 18%, transparent);
}

.is-style-badge.bth-badge-recommande {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 6px 20px color-mix(in srgb, var(--wp--preset--color--violet) 45%, transparent);
}

.is-style-badge.bth-badge-recommande::before {
	content: "★";
	font-size: 11px;
	letter-spacing: 0;
}

.bth-delai {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bth-delai::before {
	content: "";
	width: 14px;
	height: 14px;
	flex: none;
	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' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%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' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bth-formule-desc {
	padding-bottom: 18px;
	border-bottom: 1px solid var(--wp--preset--color--bordure);
}

/* Bouton blanc avec l'icône WhatsApp (offre Institutionnel). */
.wp-block-button.bth-icone-wa .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.wp-block-button.bth-icone-wa .wp-block-button__link::before {
	content: "";
	width: 17px;
	height: 17px;
	flex: none;
	background: #25d366;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.07-.3-.15-1.26-.46-2.39-1.47-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.6.13-.14.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.61-.92-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48s1.07 2.88 1.21 3.07c.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.7.63.71.22 1.36.19 1.87.12.57-.09 1.76-.72 2-1.41.25-.7.25-1.29.18-1.41-.08-.13-.27-.2-.57-.35M12.05 21.79h-.01a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.68 1.45h.01c6.55 0 11.89-5.34 11.89-11.89a11.82 11.82 0 0 0-3.48-8.41z'/%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'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.07-.3-.15-1.26-.46-2.39-1.47-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.6.13-.14.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.61-.92-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48s1.07 2.88 1.21 3.07c.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.7.63.71.22 1.36.19 1.87.12.57-.09 1.76-.72 2-1.41.25-.7.25-1.29.18-1.41-.08-.13-.27-.2-.57-.35M12.05 21.79h-.01a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.68 1.45h.01c6.55 0 11.89-5.34 11.89-11.89a11.82 11.82 0 0 0-3.48-8.41z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 599px) {
	.bth-alerte {
		justify-content: flex-start !important;
	}
}

/* =====================================================================
 * Mode clair
 * Palette pensée pour le fond blanc (contrastes vérifiés : textes ≥ 4,5:1),
 * et non une simple inversion des couleurs du mode sombre.
 * ===================================================================== */
html[data-theme="light"] {
	color-scheme: light;
	--wp--preset--color--noir: #ffffff;
	--wp--preset--color--surface: #ffffff;
	--wp--preset--color--section: #f6f6f9;
	--wp--preset--color--bordure: #e4e4ea;
	--wp--preset--color--trait: #ececf1;
	--wp--preset--color--violet-texte: var(--wp--custom--accent-clair, #5a2ee6);
	--wp--preset--color--gris: #565663;
	--wp--preset--color--gris-clair: #2c2c35;
	--wp--preset--color--gris-fonce: #6b6b77;
	--wp--preset--color--blanc: #101014;
	--wp--preset--shadow--carte: 0 12px 32px rgba(16, 16, 24, 0.12);
	--wp--preset--shadow--fenetre: 0 24px 60px rgba(16, 16, 24, 0.14);
	--bth-trait: #ececf1;
	--bth-contour: #d6d6de;
	--bth-champ: #dcdce3;
	--bth-icone-fond: #f0ebff;
	--bth-visuel: #f3f3f7;
	--bth-indice: #62626e;
	--bth-survol: #c9c9d3;
	--bth-vedette: #f3eeff;
	--bth-bento: #efe9ff;
	--bth-flottant: rgba(255, 255, 255, 0.95);
	--bth-voile: rgba(16, 16, 20, 0.03);
	--bth-blanc-survol: #2a2a33;
	--bth-filigrane: #f1f1f5;
}

/* Lissage du texte adapté au fond clair, et chapô moins fin. */
html[data-theme="light"] body {
	-webkit-font-smoothing: auto;
}

html[data-theme="light"] .bth-chapo {
	font-weight: 400 !important;
}

/* Les cartes « flottent » légèrement : sur fond blanc, une bordure seule paraît plate. */
html[data-theme="light"] .has-surface-background-color.has-border-color,
html[data-theme="light"] .bth-garantie-carte,
html[data-theme="light"] .bth-formulaire .wpcf7-form {
	box-shadow: 0 1px 2px rgba(16, 16, 24, 0.04), 0 8px 24px rgba(16, 16, 24, 0.05);
}

html[data-theme="light"] .has-surface-background-color.bth-carte-lien:hover {
	box-shadow: 0 1px 2px rgba(16, 16, 24, 0.05), 0 14px 32px rgba(16, 16, 24, 0.09);
}

html[data-theme="light"] .bth-formule--vedette {
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--violet) 7%, transparent), 0 24px 56px color-mix(in srgb, var(--wp--preset--color--violet) 16%, transparent);
}

/* Illustration du navigateur : ombre douce au lieu de l'ombre noire. */
html[data-theme="light"] .bth-fenetre {
	box-shadow: 0 24px 60px rgba(16, 16, 24, 0.16) !important;
}

/* Filigranes et icônes. */
.bth-hero__symbole g {
	stroke: var(--bth-filigrane);
}

.bth-icone svg[stroke="#a58bff"],
.bth-icone--formule svg {
	stroke: var(--wp--preset--color--violet-texte);
}

html[data-theme="light"] .bth-bento > :first-child::before {
	background: color-mix(in srgb, var(--wp--preset--color--violet) 10%, transparent);
}

html[data-theme="light"] .bth-garantie-carte {
	background: #f7f4ff;
	border-color: color-mix(in srgb, var(--wp--preset--color--violet) 22%, transparent) !important;
}

html[data-theme="light"] .bth-pastille--violet {
	background: #efeaff;
}

html[data-theme="light"] .bth-pastille {
	background: #f1f1f5;
}

html[data-theme="light"] .bth-alerte {
	background: linear-gradient(90deg, rgba(240, 82, 82, 0.08), rgba(240, 82, 82, 0.03));
	border-color: rgba(220, 60, 60, 0.28) !important;
}

html[data-theme="light"] .bth-video__lancer {
	background: radial-gradient(circle at 30% 20%, #efe9ff, #f6f6f9 70%);
}

html[data-theme="light"] .bth-modale::backdrop {
	background: rgba(16, 16, 24, 0.45);
}

html[data-theme="light"] .bth-whatsapp,
html[data-theme="light"] .bth-haut {
	box-shadow: 0 8px 24px rgba(16, 16, 24, 0.16);
}

html[data-theme="light"] .bth-texte mark:not(.has-inline-color) {
	background: #e6ddff;
}

/* Changement de mode en douceur (seulement au clic, pas au chargement). */
html.bth-transition-theme,
html.bth-transition-theme * {
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

@media (prefers-reduced-motion: reduce) {
	html.bth-transition-theme,
	html.bth-transition-theme * {
		transition: none !important;
	}
}

/* ---------- Bouton soleil / lune ---------- */
.bth-theme {
	width: 36px;
	height: 36px;
	flex: none;
	border: 1px solid var(--bth-champ);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--gris-clair);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.bth-theme:hover {
	color: var(--wp--preset--color--blanc);
	border-color: var(--wp--preset--color--gris-fonce);
}

.bth-theme__lune {
	display: none;
}

html[data-theme="light"] .bth-theme__soleil {
	display: none;
}

html[data-theme="light"] .bth-theme__lune {
	display: block;
}

.bth-theme--panneau {
	display: none;
	order: 100;
	margin-top: 14px;
	width: 44px;
	height: 44px;
}

.is-menu-open .bth-theme--panneau {
	display: inline-flex;
}

/* =====================================================================
 * Tablette (600 à 1099 px) : iPad portrait et paysage
 * ===================================================================== */
@media (min-width: 600px) and (max-width: 1099px) {

	/* En-tête sur une ligne : logo, réglages et bouton à gauche du ☰ ; liens dans le panneau. */
	.bth-en-tete > .wp-block-group {
		flex-wrap: nowrap;
	}

	.bth-menu {
		order: 3;
	}

	.bth-menu .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.bth-menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	/* Réglages collés au bouton ☰ (WordPress remet les marges des éléments flex à zéro). */
	.bth-en-tete .wp-block-group > .bth-en-tete__actions {
		margin-left: auto !important;
	}

	/* Héro : l'illustration ne s'étire pas sur toute la largeur, et reste centrée. */
	.bth-hero__grille > .bth-hero__visuel {
		width: 100%;
		max-width: 560px;
		justify-self: center;
	}

	/* Méthode et tarifs : 2 × 2, sans carte orpheline. */
	#methode .wp-block-group.is-layout-grid,
	.wp-block-group.bth-formules {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Pied de page : logo et présentation sur toute la largeur, puis 4 colonnes. */
	.wp-block-group.bth-pied__grille {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.wp-block-group.bth-pied__grille > .bth-pied__marque {
		grid-column: 1 / -1;
	}
}

/* Réalisations : 3 colonnes dès 900 px ; en dessous, la première démo en grand puis 2 cartes. */
@media (min-width: 900px) and (max-width: 1099px) {
	#demos .wp-block-group.is-layout-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	#demos .wp-block-group.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#demos .wp-block-group.is-layout-grid > :first-child {
		grid-column: 1 / -1;
	}

	#demos .wp-block-group.is-layout-grid > :first-child .bth-demo__visuel {
		aspect-ratio: 16 / 7;
	}
}

@media (min-width: 1100px) {
	#methode .wp-block-group.is-layout-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Tablette : contact empilé, formulaire en pleine largeur avec 2 colonnes de champs. */
@media (min-width: 600px) and (max-width: 1099px) {
	#contact > .wp-block-group.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.bth-formulaire .wpcf7-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Dès 768 px : les 3 moyens de contact côte à côte. */
@media (min-width: 768px) and (max-width: 1099px) {
	#contact .wp-block-group:has(> .bth-carte-lien) {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Formulaire de contact : version détaillée ---------- */
:root {
	--bth-champ-fond: #1c1c22;
}

html[data-theme="light"] {
	--bth-champ-fond: #f7f7fa;
}

.bth-formulaire .wpcf7-form {
	padding: 36px;
	gap: 22px 20px;
}

.bth-champ,
.bth-champ--tel legend {
	font: 500 12px var(--bth-outfit);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gris);
}

.bth-champ {
	gap: 9px;
}

.bth-champ--tel {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.bth-champ--tel legend {
	padding: 0;
	margin-bottom: 9px;
}

/* Téléphone sur toute la largeur du formulaire : indicatif et numéro lisibles. */
.bth-champ--tel {
	grid-column: 1 / -1;
}

.bth-tel {
	display: grid;
	grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
	gap: 10px;
}

.bth-formulaire input[type="text"],
.bth-formulaire input[type="email"],
.bth-formulaire input[type="tel"],
.bth-formulaire select,
.bth-formulaire textarea {
	background: var(--bth-champ-fond);
	border-color: var(--bth-champ);
	padding: 14px 16px;
	text-transform: none;
	letter-spacing: normal;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bth-formulaire select {
	padding-right: 12px;
	cursor: pointer;
}

.bth-formulaire input::placeholder,
.bth-formulaire textarea::placeholder {
	color: var(--wp--preset--color--gris-fonce);
	opacity: 1;
}

.bth-formulaire input:focus,
.bth-formulaire select:focus,
.bth-formulaire textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--violet);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--violet) 22%, transparent);
}

.bth-consentement label {
	text-transform: none;
	letter-spacing: normal;
}

@media (max-width: 599px) {
	.bth-formulaire .wpcf7-form {
		padding: 24px 20px;
	}

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

/* =====================================================================
 * Héro : trois écrans qui défilent (site vitrine, marketplace, ERP)
 * ===================================================================== */
.bth-ecrans__onglets {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-bottom: 12px;
}

.bth-ecrans__onglets button {
	margin: 0;
	padding: 5px 12px;
	border: 1px solid var(--bth-champ);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--gris);
	font: 500 11px var(--bth-mono);
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bth-ecrans__onglets button:hover {
	color: var(--wp--preset--color--blanc);
}

.bth-ecrans__onglets button[aria-pressed="true"] {
	background: var(--wp--preset--color--violet);
	border-color: var(--wp--preset--color--violet);
	color: #fff;
}

.bth-fenetre {
	background: #16161a;
	border: 1px solid #2a2a31;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.bth-fenetre__barre {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 12px 14px;
	border-bottom: 1px solid #26262c;
}

.bth-fenetre__point {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #3a3a42;
	flex: none;
}

.bth-fenetre__url {
	display: grid;
	margin-left: 12px;
	flex: 1;
	min-width: 0;
	background: #0e0e10;
	border-radius: 6px;
	padding: 6px 12px;
	font: 400 12px var(--bth-mono);
	color: #8c8c96;
}

.bth-ecran-url {
	grid-area: 1 / 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.bth-ecran-url--actif {
	opacity: 1;
}

.bth-ecrans__pile {
	display: grid;
	background: #f4f3f0;
	padding: 22px;
}

.bth-ecran {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}

.bth-ecran--actif {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s;
}

/* Traits dessinés communs */
.bth-l {
	display: block;
	height: 7px;
	border-radius: 3px;
	background: #b9b6c4;
}

.bth-l--logo {
	width: 84px;
	height: 12px;
	background: #0e0e10;
	flex: none;
}

.bth-l--titre {
	height: 15px;
	background: #0e0e10;
}

.bth-l--bouton {
	width: 92px;
	height: 26px;
	border-radius: 999px;
	background: var(--wp--preset--color--violet);
	margin-top: 8px;
}

.bth-l--sombre {
	height: 8px;
	background: #0e0e10;
}

.bth-l--violet {
	height: 8px;
	background: var(--wp--preset--color--violet);
}

.bth-l--chiffre {
	width: 70%;
	height: 14px;
	background: #0e0e10;
}

.bth-l--logo-clair {
	width: 70%;
	height: 10px;
	background: #f4f3f0;
	margin-bottom: 6px;
}

.bth-ligne-haut {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.bth-liens {
	display: flex;
	gap: 10px;
}

.bth-liens .bth-l {
	width: 38px;
	background: #c9c6d6;
}

/* 1. Site vitrine (proportions de l'illustration d'origine) */
.bth-vitrine__hero {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	align-items: center;
}

.bth-pile {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.bth-vitrine__image {
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	background: #ede7ff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bth-trois {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.bth-bloc {
	height: 54px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #e4e2dd;
}

/* 2. Marketplace */
.bth-mp__recherche {
	flex: 1;
	height: 26px;
	display: flex;
	align-items: center;
	padding: 0 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e4e2dd;
}

.bth-mp__panier {
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 50%;
	background: var(--wp--preset--color--violet);
	color: #fff;
	font: 600 11px var(--bth-outfit);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bth-mp__categories {
	display: flex;
	gap: 8px;
}

.bth-mp__puce {
	width: 46px;
	height: 16px;
	border-radius: 999px;
	background: #e9e6f1;
}

.bth-mp__puce--active {
	background: var(--wp--preset--color--violet);
}

.bth-mp__grille {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	flex: 1;
}

.bth-mp__produit {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 7px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e4e2dd;
}

.bth-mp__image {
	aspect-ratio: 2 / 1;
	border-radius: 5px;
	margin-bottom: 2px;
}

.bth-mp__vendeur {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bth-mp__avatar {
	width: 12px;
	height: 12px;
	flex: none;
	border-radius: 50%;
	background: #c9c6d6;
}

/* 3. ERP */
.bth-erp {
	flex-direction: row;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 14px;
}

.bth-erp__menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 10px;
	border-radius: 8px;
	background: #16161a;
}

.bth-erp__lien {
	height: 8px;
	border-radius: 3px;
	background: #3a3a42;
}

.bth-erp__lien--actif {
	background: var(--wp--preset--color--violet);
}

.bth-erp__contenu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.bth-erp__avatar {
	width: 20px;
	height: 20px;
}

.bth-erp__kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.bth-erp__kpi,
.bth-erp__graphique,
.bth-erp__tableau {
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e4e2dd;
}

.bth-erp__kpi {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 10px;
}

.bth-erp__tendance {
	width: 30px;
	height: 6px;
	border-radius: 3px;
	background: #2fb37a;
}

.bth-erp__tendance--baisse {
	background: #e5734a;
}

.bth-erp__graphique {
	flex: 1;
	min-height: 84px;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px 12px 0;
}

.bth-erp__graphique span {
	flex: 1;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(180deg, var(--wp--preset--color--violet), var(--wp--preset--color--violet-texte));
}

.bth-erp__tableau {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 9px 10px;
}

.bth-erp__rangee {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bth-erp__statut {
	width: 34px;
	height: 10px;
	margin-left: auto;
	border-radius: 999px;
	background: #c8efdc;
}

.bth-erp__statut--attente {
	background: #fde5c8;
}

@media (prefers-reduced-motion: reduce) {
	.bth-ecran,
	.bth-ecran--actif,
	.bth-ecran-url {
		transition: none;
		transform: none;
	}
}

@media (max-width: 599px) {
	.bth-ecrans__pile {
		padding: 16px;
	}

	.bth-erp {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 10px;
	}

	.bth-ecrans__onglets {
		justify-content: flex-start;
	}
}

/* Le site vitrine remplit la hauteur commune des trois écrans. */
.bth-vitrine .bth-trois {
	flex: 1;
}

.bth-vitrine .bth-bloc {
	height: auto;
	min-height: 54px;
}

/* =====================================================================
 * Sections modulables et réalisations
 * ===================================================================== */
svg [stroke="#a58bff"], svg[stroke="#a58bff"] { stroke: var(--wp--preset--color--violet-texte); }
svg [fill="#6d3cff"], svg[fill="#6d3cff"] { fill: var(--wp--preset--color--violet); }
svg [stroke="#6d3cff"], svg[stroke="#6d3cff"] { stroke: var(--wp--preset--color--violet); }
.bth-logo__image { display: block; width: auto; height: 36px; max-width: 180px; object-fit: contain; }
.bth-section { scroll-margin-top: 90px; }
.bth-image img { display: block; width: 100%; height: auto; border-radius: 14px; }
.bth-projet { height: 100%; }
.bth-projet .wp-block-post-featured-image { margin: 0; }
.bth-projet .wp-block-post-featured-image img { border-radius: 14px; border: 1px solid var(--wp--preset--color--bordure); transition: transform .25s ease; }
.bth-projet:hover .wp-block-post-featured-image img { transform: translateY(-3px); }
.bth-logos img { max-height: 40px; width: auto; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .bth-projet .wp-block-post-featured-image img { transition: none; } }
.bth-section .wp-block-column > * + * { margin-top: 20px; }
.bth-section > .is-layout-grid:not(.columns-1) { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)) !important; }

.bth-repli-formulaire { padding: 32px; border: 1px solid var(--wp--preset--color--bordure); border-radius: 14px; background: var(--wp--preset--color--surface); display: grid; gap: 16px; }
.bth-repli-formulaire .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Réalisations (accueil) ---------- */
.bth-carte-projet {
	overflow: hidden;
}

.bth-carte-projet .wp-block-post-featured-image {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--bordure);
}

.bth-carte-projet .wp-block-post-featured-image img {
	object-position: top center;
	transition: transform 0.4s ease;
}

.bth-carte-projet:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.bth-carte-projet .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.bth-projet-bientot {
	color: var(--wp--preset--color--gris-fonce);
	font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
	.bth-carte-projet .wp-block-post-featured-image img {
		transition: none;
	}
}

/* ---------- Cartes de même taille (articles, réalisations) ----------
   Chaque carte occupe toute la hauteur de sa ligne ; titre limité à 2 lignes, description à 3,
   le surplus est coupé par « … ». La date ou le lien restent alignés en bas. */
.wp-block-post-template.is-layout-grid > li {
	display: flex;
}

.wp-block-post-template.is-layout-grid > li > .bth-carte-article,
.wp-block-post-template.is-layout-grid > li > .bth-carte-projet,
.wp-block-post-template.is-layout-grid > li > .bth-projet {
	flex: 1 1 auto;
	width: 100%;
	height: auto;
}

.bth-carte-projet {
	height: 100%;
}

.bth-carte-article > .wp-block-group,
.bth-carte-projet > .wp-block-group {
	flex: 1 1 auto;
}

.bth-carte-article .wp-block-post-title,
.bth-carte-projet .wp-block-post-title,
.bth-projet .wp-block-post-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.bth-carte-article .wp-block-post-excerpt__excerpt,
.bth-carte-projet .wp-block-post-excerpt__excerpt,
.bth-projet .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.bth-carte-article .wp-block-post-date,
.bth-carte-projet .bth-projet-lien {
	margin-top: auto !important;
}

/* ---------- Formulaire : précisions facultatives repliées ---------- */
.bth-plus {
	grid-column: 1 / -1;
	border: 1px dashed var(--wp--preset--color--bordure);
	border-radius: 12px;
	padding: 0 18px;
}

.bth-plus > summary {
	cursor: pointer;
	padding: 14px 0;
	font: 500 14px var(--bth-outfit);
	color: var(--wp--preset--color--violet-texte);
	list-style: none;
}

.bth-plus > summary::-webkit-details-marker {
	display: none;
}

.bth-plus > summary::before {
	content: "+ ";
}

.bth-plus[open] > summary::before {
	content: "− ";
}

.bth-plus__grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 16px;
	padding-bottom: 18px;
}

/* ---------- Garanties (section « Clés en main ») ---------- */
.bth-garanties-section {
	background: linear-gradient(150deg, var(--bth-bento) 0%, var(--wp--preset--color--surface) 70%);
	border-color: color-mix(in srgb, var(--wp--preset--color--violet) 35%, transparent) !important;
}

.bth-garantie-titre::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--violet);
	color: #fff;
	font-size: 12px;
	vertical-align: 1px;
}

/* ---------- Simulateur de prix ---------- */
.bth-sim {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 24px;
	align-items: start;
}

.bth-sim__groupe {
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: 16px;
	padding: 22px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--wp--preset--color--surface);
}

.bth-sim__groupe legend {
	font: 600 16px var(--bth-outfit);
	color: var(--wp--preset--color--blanc);
	padding: 0 6px;
}

.bth-sim__types {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.bth-sim__choix input {
	position: absolute;
	opacity: 0;
}

.bth-sim__choix span {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: 10px;
	cursor: pointer;
	font: 500 15px var(--bth-outfit);
	color: var(--wp--preset--color--gris-clair);
}

.bth-sim__choix input:checked + span {
	border-color: var(--wp--preset--color--violet);
	background: color-mix(in srgb, var(--wp--preset--color--violet) 14%, transparent);
	color: var(--wp--preset--color--blanc);
}

.bth-sim__choix input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--violet-texte);
}

.bth-sim__option,
.bth-sim__nombre {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 400 15px var(--bth-outfit);
	color: var(--wp--preset--color--gris-clair);
}

.bth-sim__nombre {
	justify-content: space-between;
}

.bth-sim__nombre input {
	width: 96px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--bth-champ);
	background: transparent;
	color: inherit;
	font: inherit;
}

.bth-sim [hidden] {
	display: none !important;
}

.bth-sim__resultat {
	grid-column: 1 / -1;
	border-radius: 18px;
	padding: 28px;
	background: linear-gradient(150deg, var(--bth-bento) 0%, var(--wp--preset--color--surface) 70%);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--violet) 35%, transparent);
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
}

.bth-sim__titre {
	margin: 0;
	font: 500 13px var(--bth-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--violet-texte);
}

.bth-sim__montant {
	margin: 0;
	font: 700 clamp(30px, 4vw, 44px) var(--bth-outfit);
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--blanc);
}

.bth-sim__note {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--wp--preset--color--gris);
	max-width: 640px;
}

/* ---------- Mobile : aucun débordement horizontal (27/11/2026) ----------
   Le pied de page passe en 2 colonnes (logo sur toute la largeur), et rien ne peut
   faire glisser la page sur le côté (sinon l'en-tête et le bouton WhatsApp se décalent). */
html,
body {
	overflow-x: clip;
}

@media (max-width: 599px) {
	.wp-block-group.bth-pied__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.bth-pied__grille > .bth-pied__marque {
		grid-column: 1 / -1;
	}

	.bth-pied__colonne a {
		overflow-wrap: anywhere;
	}

	.bth-whatsapp {
		right: 20px;
	}
}
