/*
Theme Name: Cerveau Bis
Template: oniti-base
Description: Thème enfant du site Cerveau Bis, sur le thème parent Oniti Base.
Author: Oniti
Version: 0.1.0
Text Domain: cerveau-bis
*/

/*
 * CSS propre au site, repris de la maquette pivot (docs/maquette/maquette.src.html).
 * Classes préfixées cerveau-bis-. Valeurs : tokens de theme.json, proportions nommées
 * (--wp--custom--proportion--…) et valeurs de texte nommées (--wp--custom--texte--…).
 * Les sélecteurs de titres et de boutons ont au moins une classe et un élément : les styles
 * de theme.json sont écrits en :root :where(…).
 */

:root {
	/* Sur-titres : corail foncé sur fond clair (4,58:1), corail sur fond encre (style « sombre »). */
	--cerveau-bis-accent: var(--wp--preset--color--corail-fonce);
	--cerveau-bis-ombre: 0 var(--wp--custom--proportion--apercu-ombre-y) var(--wp--custom--proportion--apercu-ombre-flou) color-mix(in srgb, var(--wp--custom--couleur--texte-titre) 14%, transparent);
	/* Carte cliquable : effet de survol du parent, aux mesures de la maquette. */
	--oniti-carte-survol-ombre: var(--cerveau-bis-ombre);
	--oniti-carte-survol-decalage: var(--wp--custom--proportion--survol-decalage);
}

body { overflow-wrap: break-word; }
:root :is(h1, h2, h3) { text-wrap: balance; }
@media (width < 600px) {
	:root h1 { line-height: 1.04; }
	:root h2 { line-height: 1.1; }
}
:root :is(.has-p-xl-font-size, .has-p-s-font-size, .has-p-xs-font-size) { line-height: 1.45; }
:root :is(.has-h-4-font-size, .has-h-5-font-size) { line-height: 1.2; }
/* Symboles (SVG sans dimensions) : leur taille vient du CSS de chaque section. */
.wp-block-image img[src$=".svg"] { display: block; }

/* Sections pleine largeur : chacune porte ses marges, pas d'écart entre elles. */
.wp-block-post-content > .alignfull { margin-block: 0; }

/* ---------- Styles de blocs ---------- */

/* Sombre : fond encre, titres blancs, texte lilas. Les rôles sont redéfinis localement. */
.wp-block-group.is-style-sombre {
	--wp--custom--couleur--texte: var(--wp--preset--color--lilas);
	--wp--custom--couleur--texte-titre: var(--wp--preset--color--blanc);
	--wp--custom--couleur--lien: var(--wp--preset--color--blanc);
	--wp--custom--couleur--focus: var(--wp--preset--color--blanc);
	--wp--custom--couleur--fond: var(--wp--preset--color--encre);
	--wp--custom--couleur--bordure: color-mix(in srgb, var(--wp--preset--color--blanc) 16%, transparent);
	--cerveau-bis-accent: var(--wp--preset--color--corail);
	background: var(--wp--preset--color--encre);
	color: var(--wp--preset--color--lilas);
}
/* Un groupe sombre qui n'est pas une section est une carte. */
.wp-block-group.is-style-sombre:not(.alignfull) {
	display: flex;
	flex-direction: column;
	padding: var(--wp--custom--proportion--carte-prix-marge);
	border-radius: var(--wp--custom--rayon);
}

p.is-style-sur-titre {
	color: var(--cerveau-bis-accent);
	font-size: var(--wp--custom--texte--sur-titre-taille);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Bulle de conversation : blanche et bordée ; encre et à droite dans un aperçu. */
p.is-style-bulle {
	width: fit-content;
	padding: var(--wp--custom--proportion--bulle-claire-v) var(--wp--custom--proportion--bulle-claire-h);
	border: 1px solid var(--wp--custom--couleur--bordure);
	border-radius: var(--wp--custom--proportion--rayon-moyen) var(--wp--custom--proportion--rayon-moyen) var(--wp--custom--proportion--rayon-moyen) var(--wp--custom--proportion--rayon-pointe);
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
	font-size: var(--wp--preset--font-size--p-s);
	line-height: 1.2;
}
.is-style-apercu p.is-style-bulle {
	max-width: 80%;
	margin-inline-start: auto;
	padding: var(--wp--custom--proportion--bulle-v) var(--wp--custom--proportion--bulle-h);
	border: 0;
	border-radius: var(--wp--custom--proportion--rayon-moyen) var(--wp--custom--proportion--rayon-moyen) var(--wp--custom--proportion--rayon-pointe) var(--wp--custom--proportion--rayon-moyen);
	background: var(--wp--preset--color--encre);
	color: var(--wp--preset--color--blanc);
	font-size: var(--wp--custom--texte--interface-taille);
}

p.is-style-pastille {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--wp--custom--proportion--pastille);
	height: var(--wp--custom--proportion--pastille);
	border-radius: 50%;
	background: var(--wp--preset--color--encre);
	color: var(--wp--preset--color--blanc);
	font-size: var(--wp--custom--texte--libelle-taille);
	font-weight: 600;
}

/* Grand chiffre des étapes : corail sur crème, 3,16:1 pour 56 px et plus (seuil 3:1). */
p.is-style-chiffre {
	color: var(--wp--preset--color--corail);
	font-size: var(--wp--custom--texte--chiffre-taille);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

/* Aperçu : carte blanche ombrée et ses deux ronds décoratifs, glissés derrière elle. */
.wp-block-group.is-style-apercu {
	position: relative;
	padding: var(--wp--custom--proportion--apercu-marge);
	border: 1px solid var(--wp--custom--couleur--bordure);
	border-radius: var(--wp--custom--rayon);
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--cerveau-bis-ombre);
	line-height: 1.2;
}
.wp-block-group.is-style-apercu::before,
.wp-block-group.is-style-apercu::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.wp-block-group.is-style-apercu::before { width: var(--wp--custom--proportion--rond-plein); height: var(--wp--custom--proportion--rond-plein); right: var(--wp--custom--proportion--rond-plein-droite); top: var(--wp--custom--proportion--rond-plein-haut); background: var(--wp--preset--color--corail); }
.wp-block-group.is-style-apercu::after { width: var(--wp--custom--proportion--rond-anneau); height: var(--wp--custom--proportion--rond-anneau); left: var(--wp--custom--proportion--rond-anneau-gauche); bottom: var(--wp--custom--proportion--rond-anneau-bas); border: var(--wp--custom--proportion--rond-anneau-trait) solid var(--wp--preset--color--encre); }
.wp-block-group.is-style-apercu > * + * { margin-block-start: var(--wp--custom--proportion--apercu-ecart); }
.wp-block-group.is-style-apercu :is(.has-p-xs-font-size, .has-p-s-font-size) { line-height: inherit; }
/* La section devient un contexte d'empilement : les ronds passent au-dessus de son fond, sous
   la carte ; ce qui dépasse de l'écran est coupé (aucun défilement horizontal). */
.wp-block-group.alignfull:has(.is-style-apercu) { isolation: isolate; overflow-x: clip; }

/* Garantie : filet supérieur et puce corail. */
.wp-block-group.is-style-garantie {
	position: relative;
	margin-block-start: 0;
	padding-block: var(--wp--custom--proportion--garantie-v);
	padding-inline-start: calc(var(--wp--custom--proportion--garantie-puce) + var(--wp--custom--proportion--garantie-ecart));
	border-top: 1px solid var(--wp--custom--couleur--bordure);
}
.wp-block-group.is-style-garantie::before { content: ""; position: absolute; left: 0; top: calc(var(--wp--custom--proportion--garantie-v) + var(--wp--custom--proportion--garantie-puce-haut)); width: var(--wp--custom--proportion--garantie-puce); height: var(--wp--custom--proportion--garantie-puce); border-radius: 50%; background: var(--wp--preset--color--corail); }
.wp-block-group.is-style-garantie > * + * { margin-block-start: var(--wp--custom--proportion--garantie-texte-haut); }

/* Ligne de licence : pleine ; en pointillés avec la classe cerveau-bis-disponible (l'état est
   aussi écrit en toutes lettres, RGAA 3.1). */
.wp-block-group.is-style-ligne-licence {
	gap: var(--wp--preset--spacing--s);
	padding: var(--wp--custom--proportion--ligne-licence-v) var(--wp--custom--proportion--ligne-licence-h);
	border: 1.5px solid var(--wp--preset--color--encre);
	border-radius: var(--wp--custom--proportion--rayon-petit);
	background: var(--wp--preset--color--encre);
	color: var(--wp--preset--color--lilas);
	font-size: var(--wp--preset--font-size--p-xs);
	line-height: 1.2;
}
.wp-block-group.is-style-ligne-licence strong { color: var(--wp--preset--color--blanc); font-size: var(--wp--custom--texte--interface-taille); font-weight: 600; }
.wp-block-group.is-style-ligne-licence.cerveau-bis-disponible { border-style: dashed; background: var(--wp--preset--color--blanc); color: var(--wp--preset--color--ardoise); }
.wp-block-group.is-style-ligne-licence.cerveau-bis-disponible strong { color: var(--wp--preset--color--encre); }

/* Étiquette (style du parent) : pastille corail. */
p.is-style-etiquette {
	padding: var(--wp--custom--proportion--etiquette-v) var(--wp--custom--proportion--etiquette-h);
	border-radius: 999px;
	background: var(--wp--preset--color--corail);
	color: var(--wp--preset--color--encre);
	font-size: var(--wp--custom--texte--etiquette-taille);
	font-weight: 600;
	line-height: 1.5;
}

/* Carte (style du parent) : blanche et bordée sur fond crème ; crème et sans bord dans une
   section qui a un fond. */
.wp-block-group:is(.is-style-carte, .is-style-carte-cliquable) {
	display: flex;
	flex-direction: column;
	padding: var(--wp--custom--proportion--carte-marge);
	border-color: var(--wp--custom--couleur--bordure);
	border-radius: var(--wp--custom--rayon);
	background: var(--wp--preset--color--blanc);
}
.wp-block-group.has-background .wp-block-group.is-style-carte { border: 0; border-radius: var(--wp--custom--proportion--rayon-moyen); background: var(--wp--preset--color--creme); }
.oniti-carte-lien a { color: var(--wp--custom--couleur--texte-titre); font-weight: 600; text-decoration: none; }

/* Boutons. Classe interne du cœur (__link) : c'est elle qui porte le fond, comme dans le parent. */
.wp-block-button.is-style-encre .wp-block-button__link { background: var(--wp--preset--color--encre); color: var(--wp--preset--color--blanc); }
.wp-block-button.is-style-encre .wp-block-button__link:hover { background: var(--wp--preset--color--ardoise); color: var(--wp--preset--color--blanc); }
/* Bouton « Lien » du parent : souligné d'un trait épais. */
.wp-block-button.is-style-lien .wp-block-button__link { padding: 0 0 2px; border-bottom: 2px solid currentColor; font-size: var(--wp--preset--font-size--p-l); text-decoration: none; }
.wp-block-button.is-style-lien .wp-block-button__link:hover { border-bottom-color: transparent; }
.wp-block-post-content .wp-block-buttons { gap: var(--wp--custom--proportion--bandeau-pile); }
/* Téléphone : boutons empilés sur toute la largeur, le lien centré. */
@media (width < 600px) {
	.wp-block-post-content .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.wp-block-post-content .wp-block-buttons > .wp-block-button { width: 100%; }
	.wp-block-post-content .wp-block-buttons .wp-block-button__link { width: 100%; }
	.wp-block-post-content .wp-block-buttons > .wp-block-button.is-style-lien { width: auto; align-self: center; }
	.wp-block-post-content .wp-block-buttons > .wp-block-button.is-style-lien .wp-block-button__link { width: auto; }
}

/* Listes : puces corail. */
ul.wp-block-list { display: flex; flex-direction: column; gap: var(--wp--custom--proportion--liste-ecart); padding: 0; list-style: none; }
ul.wp-block-list li { position: relative; padding-left: var(--wp--custom--proportion--liste-retrait); color: var(--wp--custom--couleur--texte-titre); line-height: 1.45; }
ul.wp-block-list li::before { content: ""; position: absolute; left: 0; top: var(--wp--custom--proportion--liste-puce); width: var(--wp--custom--proportion--liste-puce); height: var(--wp--custom--proportion--liste-puce); border-radius: 50%; background: var(--wp--preset--color--corail); }

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

.wp-block-group.cerveau-bis-entete-rang { min-height: var(--wp--custom--proportion--entete-hauteur); gap: var(--wp--preset--spacing--m); }
.wp-block-group.cerveau-bis-entete-droite { gap: var(--wp--custom--proportion--menu-ecart); }
.cerveau-bis-logo .wp-block-site-logo img { width: var(--wp--custom--proportion--logo-symbole); height: var(--wp--custom--proportion--logo-symbole); }
.wp-block-site-title.cerveau-bis-logo,
.cerveau-bis-logo .wp-block-site-title { font-family: var(--wp--preset--font-family--titres); font-size: var(--wp--custom--texte--logo-taille); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; text-transform: lowercase; white-space: nowrap; }
.wp-block-site-title.cerveau-bis-logo a,
.cerveau-bis-logo .wp-block-site-title a { color: var(--wp--custom--couleur--texte-titre); text-decoration: none; }
/* Bouton « Essayer » : petit. */
.cerveau-bis-entete .wp-block-button .wp-block-button__link { padding: var(--wp--custom--proportion--bouton-petit-v) var(--wp--custom--proportion--bouton-petit-h); font-size: var(--wp--custom--texte--bouton-petit-taille); }
.cerveau-bis-entete .wp-block-navigation { gap: var(--wp--custom--proportion--menu-ecart); color: var(--wp--custom--couleur--texte-titre); font-size: var(--wp--custom--texte--fixe-taille); line-height: 1.2; }
/* Classes internes du bloc Navigation : la liste reprend l'écart, le libellé porte le trait
   (corail sur la page courante). */
.cerveau-bis-entete .wp-block-navigation .wp-block-navigation__container { gap: var(--wp--custom--proportion--menu-ecart); }
.cerveau-bis-entete .wp-block-navigation .wp-block-navigation-item__label { padding-bottom: 2px; border-bottom: 2px solid transparent; }
.cerveau-bis-entete .wp-block-navigation a:hover { text-decoration: none; }
.cerveau-bis-entete .wp-block-navigation a:hover .wp-block-navigation-item__label { border-bottom-color: currentColor; }
.cerveau-bis-entete .wp-block-navigation a[aria-current="page"] .wp-block-navigation-item__label { border-bottom-color: var(--wp--preset--color--corail); }
/* Dernière entrée (« Se connecter ») : discrète, couleur du texte courant. */
.cerveau-bis-entete .wp-block-navigation .wp-block-navigation-item:last-child > a { color: var(--wp--custom--couleur--texte); }
/* Panneau du menu ouvert : aux couleurs du site (le cœur le met en blanc et noir). */
.cerveau-bis-entete .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--wp--custom--couleur--fond); color: var(--wp--custom--couleur--texte-titre); }
/* Menu ouvert : liens alignés à gauche (le cœur reprend l'alignement à droite du bureau). */
.cerveau-bis-entete .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) { --navigation-layout-justification-setting: flex-start; align-items: flex-start; }
/* Bouton du menu : cible de 44 px (classe interne du bloc Navigation). */
.cerveau-bis-entete .wp-block-navigation .wp-block-navigation__responsive-container-open { align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; margin-inline: calc((var(--wp--custom--proportion--burger-largeur) - 2.75rem) / 2); }
.cerveau-bis-entete .wp-block-navigation .wp-block-navigation__responsive-container-open svg { width: calc(1.7 * var(--wp--custom--proportion--burger-largeur)); height: calc(1.7 * var(--wp--custom--proportion--burger-largeur)); } /* les barres de l'icône du cœur occupent 14/24 de sa largeur */
/* Sous 1024 px (custom.menu.burger) : « Essayer », puis les trois barres, comme sur les planches. */
@media (width < 1024px) {
	.cerveau-bis-entete-droite .wp-block-navigation { order: 1; }
}

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

.wp-block-group.cerveau-bis-pied { padding-block: var(--wp--custom--proportion--pied-v); }
.wp-block-group.cerveau-bis-pied-rang { gap: var(--wp--custom--proportion--pied-ecart); }
.cerveau-bis-pied .wp-block-site-title { display: flex; align-items: center; gap: var(--wp--preset--spacing--xs); font-size: var(--wp--custom--texte--logo-pied-taille); }
/* Symbole à anneau blanc : décoratif, doublé par le nom du site. */
.cerveau-bis-pied .wp-block-site-title::before { content: ""; flex-shrink: 0; width: var(--wp--custom--proportion--logo-pied-symbole); height: var(--wp--custom--proportion--logo-pied-symbole); background: url(assets/logo-clair.svg) center / contain no-repeat; }
.cerveau-bis-pied .wp-block-navigation { gap: var(--wp--custom--proportion--pied-liens-rang) var(--wp--custom--proportion--pied-liens-ecart); font-size: var(--wp--custom--texte--libelle-taille); line-height: 1.2; }
.cerveau-bis-pied .wp-block-navigation .wp-block-navigation__container { gap: var(--wp--custom--proportion--pied-liens-rang) var(--wp--custom--proportion--pied-liens-ecart); }
/* Chaque lien occupe une ligne de texte courant, comme sur la maquette (classe interne). */
.cerveau-bis-pied .wp-block-navigation .wp-block-navigation-item { min-height: calc(1.5 * var(--wp--preset--font-size--p)); }
.cerveau-bis-pied .wp-block-navigation a { color: var(--wp--custom--couleur--texte); }
.cerveau-bis-pied .wp-block-navigation a:hover { text-decoration: underline; }
@media (width < 782px) {
	.wp-block-group.cerveau-bis-pied-rang { flex-direction: column; align-items: flex-start; }
}

/* ---------- Accueil ---------- */

.wp-block-group.cerveau-bis-bandeau { padding-block: var(--wp--custom--proportion--bandeau-haut) var(--wp--custom--proportion--bandeau-bas); }
.cerveau-bis-bandeau > .wp-block-columns { gap: var(--wp--custom--proportion--bandeau-ecart); margin-block: 0; }
.cerveau-bis-bandeau .wp-block-column:first-child > * + * { margin-block-start: var(--wp--custom--proportion--bandeau-pile); }
@media (width >= 782px) {
	.cerveau-bis-bandeau > .wp-block-columns { min-height: var(--wp--custom--proportion--bandeau-hauteur); }
}
.wp-block-group.cerveau-bis-reponse { gap: var(--wp--custom--proportion--reponse-ecart); font-size: var(--wp--custom--texte--libelle-taille); }
.cerveau-bis-reponse .wp-block-image { flex-shrink: 0; }
.cerveau-bis-reponse .wp-block-image img { width: var(--wp--custom--proportion--reponse-symbole); height: var(--wp--custom--proportion--reponse-symbole); }
.wp-block-group.cerveau-bis-sujet { gap: var(--wp--preset--spacing--s); padding: var(--wp--custom--proportion--sujet-v) var(--wp--custom--proportion--sujet-h); border-radius: var(--wp--custom--proportion--rayon-petit); background: var(--wp--preset--color--creme); }
.cerveau-bis-sujet > .wp-block-group { flex: 1; min-width: 0; }
.cerveau-bis-sujet > .wp-block-group > * + * { margin-block-start: var(--wp--custom--proportion--sujet-detail-haut); }
.cerveau-bis-sujet strong { color: var(--wp--preset--color--encre); font-size: var(--wp--custom--texte--interface-taille); font-weight: 600; }

.cerveau-bis-atouts > .wp-block-group > * + *,
.cerveau-bis-tarifs-accueil > .wp-block-group > * + * { margin-block-start: var(--wp--custom--proportion--titre-cartes-ecart); }
.cerveau-bis-atouts h2 { max-width: var(--wp--custom--proportion--atouts-titre-largeur); }
.cerveau-bis-atouts .wp-block-image img { width: var(--wp--custom--proportion--symbole); height: var(--wp--custom--proportion--symbole); }
.cerveau-bis-etapes p.is-style-bulle { margin-block-start: calc(var(--wp--preset--spacing--s) + var(--wp--custom--proportion--etape-bulle-haut)); }

.wp-block-group.cerveau-bis-confiance { padding-block: var(--wp--custom--proportion--bande-confiance); }
.cerveau-bis-confiance > .wp-block-columns { gap: var(--wp--custom--proportion--colonnes-ecart); margin-block: 0; }
.cerveau-bis-confiance h2 { font-size: var(--wp--custom--texte--confiance-h-2-taille); }
.cerveau-bis-confiance .wp-block-column:first-child > * + *,
.cerveau-bis-plusieurs .wp-block-column:first-child > * + * { margin-block-start: var(--wp--custom--proportion--colonne-pile); }

/* Prix : rangée alignée sur la ligne de base. */
.wp-block-group.cerveau-bis-prix-rang { align-items: baseline; gap: var(--wp--custom--proportion--prix-ecart); }
.cerveau-bis-prix { color: var(--wp--custom--couleur--texte-titre); font-size: var(--wp--custom--texte--prix-taille); font-weight: 600; line-height: 0.95; letter-spacing: -0.05em; white-space: nowrap; }
.cerveau-bis-prix-unite { font-size: var(--wp--custom--texte--prix-unite-taille); line-height: 1.3; }
.wp-block-group.cerveau-bis-prix-unite > * { display: block; margin-block: 0; }
.cerveau-bis-tarifs-accueil .cerveau-bis-prix { font-size: var(--wp--custom--texte--prix-accueil-taille); }
.cerveau-bis-tarifs-accueil .cerveau-bis-prix-unite { font-size: var(--wp--custom--texte--fixe-taille); }
.cerveau-bis-tarifs-accueil .wp-block-group:is(.is-style-sombre, .is-style-carte-cliquable) { padding: var(--wp--custom--proportion--carte-prix-marge); }
.cerveau-bis-tarifs-accueil .wp-block-group:is(.is-style-sombre, .is-style-carte-cliquable) > * + * { margin-block-start: var(--wp--custom--proportion--carte-prix-ecart); }
.cerveau-bis-tarifs-accueil ul.wp-block-list { gap: var(--wp--custom--proportion--carte-prix-ecart); }
/* Dernier bloc d'une carte de prix (bouton, lien) : calé en bas, les cartes d'une rangée ayant
   la même hauteur. */
.wp-block-group:is(.is-style-sombre, .is-style-carte-cliquable) > :is(.wp-block-buttons, .oniti-carte-lien):last-child { margin-block-start: auto; padding-top: calc(var(--wp--custom--proportion--carte-prix-ecart) + var(--wp--custom--proportion--bouton-carte-haut)); }

/* ---------- Appel final (motif synchronisé) ---------- */

.wp-block-group.cerveau-bis-appel-final-rang { gap: var(--wp--custom--proportion--appel-final-ecart); }
.cerveau-bis-appel-final h2 { font-size: var(--wp--custom--texte--appel-final-taille); line-height: 1.02; letter-spacing: -0.04em; }
.cerveau-bis-appel-final .wp-block-button .wp-block-button__link { padding: var(--wp--custom--proportion--bouton-grand-v) var(--wp--custom--proportion--bouton-grand-h); font-size: var(--wp--custom--texte--bouton-grand-taille); }
.cerveau-bis-appel-final .wp-block-buttons { flex-shrink: 0; }
@media (width >= 600px) {
	.wp-block-group.cerveau-bis-appel-final-rang { min-height: var(--wp--custom--proportion--appel-final-hauteur); }
}
@media (width < 600px) {
	.cerveau-bis-appel-final h2 { line-height: 1.04; }
	.wp-block-group.cerveau-bis-appel-final-rang { flex-direction: column; align-items: stretch; }
}

/* ---------- Tarifs ---------- */

.wp-block-group.cerveau-bis-intro { padding-block: var(--wp--custom--proportion--intro-haut) var(--wp--custom--proportion--intro-bas); }
.cerveau-bis-intro > .wp-block-group > * + * { margin-block-start: var(--wp--custom--proportion--intro-ecart); }
.cerveau-bis-intro h1, .cerveau-bis-page-simple h1, .cerveau-bis-introuvable h1 { font-size: var(--wp--custom--texte--tarifs-h-1-taille); }
.cerveau-bis-intro .has-p-xl-font-size { max-width: var(--wp--custom--proportion--intro-chapo-largeur); }
.cerveau-bis-intro .wp-block-group.cerveau-bis-rythme { gap: var(--wp--preset--spacing--xs); margin-block-start: calc(var(--wp--custom--proportion--intro-ecart) + var(--wp--custom--proportion--interrupteur-haut)); }
@media (width >= 600px) {
	.cerveau-bis-intro > .wp-block-group { text-align: center; }
	.cerveau-bis-intro .has-p-xl-font-size { margin-inline: auto; }
	.cerveau-bis-intro .wp-block-group.cerveau-bis-rythme { justify-content: center; }
}
/* Interrupteur d'oniti-core, en barre à deux segments : le segment actif est encre, la piste
   et sa pastille (décoratives) sont retirées. Classes de la bibliothèque (README du bloc). */
.cerveau-bis-rythme .oniti-switch {
	--oniti-switch-gap: 0px;
	--oniti-switch-padding: var(--wp--custom--proportion--interrupteur-marge);
	--oniti-switch-radius: 999px;
	--oniti-switch-background: var(--wp--preset--color--blanc);
	--oniti-switch-label-color: var(--wp--preset--color--encre);
	--oniti-switch-label-color-selected: var(--wp--preset--color--blanc);
}
.cerveau-bis-rythme .oniti-switch__fieldset { border: 1px solid var(--wp--custom--couleur--bordure); }
.cerveau-bis-rythme .oniti-switch__track { display: none; }
.cerveau-bis-rythme .oniti-switch__option { padding-inline: var(--wp--custom--proportion--interrupteur-h); border-radius: 999px; font-size: var(--wp--custom--texte--bouton-petit-taille); font-weight: 600; line-height: 1.2; white-space: nowrap; }
.cerveau-bis-rythme .oniti-switch:not(.is-second) .oniti-switch__option--first,
.cerveau-bis-rythme .oniti-switch.is-second .oniti-switch__option--second { background: var(--wp--preset--color--encre); }
/* Focus : sur le segment, à la couleur du rôle (le libellé actif est blanc sur encre). */
.cerveau-bis-rythme .oniti-switch__input:focus-visible + .oniti-switch__label { outline: none; }
.cerveau-bis-rythme .oniti-switch__option:has(:focus-visible) { outline: 2px solid var(--wp--custom--couleur--focus); outline-offset: 2px; }

.wp-block-group.cerveau-bis-offres { padding-block: 0 var(--wp--custom--proportion--bande-tarifs); }
.cerveau-bis-offres > .wp-block-columns { gap: var(--wp--preset--spacing--m); margin-block: 0; }
.cerveau-bis-offres .wp-block-column { display: flex; flex-direction: column; }
/* Base auto, sans rétrécir : une carte ne rogne jamais son texte (RGAA 10.12). */
.cerveau-bis-offres .wp-block-column > .wp-block-group:is(.is-style-sombre, .is-style-carte) { flex: 1 0 auto; }
.cerveau-bis-offres .wp-block-group.is-style-sombre { padding: var(--wp--custom--proportion--licence-marge); }
.cerveau-bis-offres .wp-block-group.is-style-sombre > * + *,
.cerveau-bis-offres .wp-block-group.is-style-sombre > .oniti-switch-zone > :first-child { margin-block-start: var(--wp--custom--proportion--licence-ecart); }
.cerveau-bis-offres .wp-block-group.is-style-sombre > .wp-block-buttons:last-child { padding-top: calc(var(--wp--custom--proportion--licence-ecart) + var(--wp--custom--proportion--bouton-carte-haut)); }
.wp-block-group.cerveau-bis-licence-titre { gap: var(--wp--custom--proportion--prix-ecart); }
.cerveau-bis-licence-titre .wp-block-image { flex-shrink: 0; }
.cerveau-bis-licence-titre .wp-block-image img { width: var(--wp--custom--proportion--licence-symbole); height: var(--wp--custom--proportion--licence-symbole); }
.cerveau-bis-mention { padding: var(--wp--custom--proportion--mention-v) var(--wp--custom--proportion--mention-h); border-radius: var(--wp--custom--proportion--rayon-petit); background: color-mix(in srgb, var(--wp--preset--color--blanc) 8%, transparent); color: var(--wp--custom--couleur--texte-titre); font-size: var(--wp--custom--texte--mention-taille); line-height: 1.45; }
.cerveau-bis-mention strong { font-weight: 600; }
.cerveau-bis-offres h2.cerveau-bis-options-libelle { margin-block-start: var(--wp--custom--proportion--options-libelle-haut); padding-left: var(--wp--custom--proportion--options-libelle-retrait); color: var(--wp--custom--couleur--texte); font-size: var(--wp--custom--texte--libelle-taille); font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.cerveau-bis-offres .is-style-carte p { font-size: var(--wp--custom--texte--fixe-taille); }
.cerveau-bis-offres .is-style-carte .wp-block-group.cerveau-bis-prix-rang { margin-block-start: auto; padding-top: var(--wp--preset--spacing--s); gap: var(--wp--preset--spacing--xs); }
.cerveau-bis-offres .is-style-carte .cerveau-bis-prix { font-size: var(--wp--custom--texte--prix-option-taille); line-height: 1; letter-spacing: -0.03em; }
.cerveau-bis-offres .is-style-carte .cerveau-bis-prix-unite { font-size: var(--wp--preset--font-size--p-s); }

.wp-block-group:is(.cerveau-bis-plusieurs, .cerveau-bis-faq) { padding-block: var(--wp--custom--proportion--bande-tarifs); }
.cerveau-bis-plusieurs > .wp-block-columns { gap: var(--wp--custom--proportion--plusieurs-ecart); margin-block: 0; }
.cerveau-bis-plusieurs .wp-block-column:last-child > * + * { margin-block-start: var(--wp--custom--proportion--ligne-licence-ecart); }
.cerveau-bis-plusieurs .wp-block-column:last-child > .wp-block-group.cerveau-bis-exemple { margin-block-start: calc(var(--wp--custom--proportion--ligne-licence-ecart) + var(--wp--custom--proportion--exemple-haut)); padding: var(--wp--custom--proportion--exemple-marge); font-size: var(--wp--preset--font-size--p-xs); line-height: 1.2; }
.wp-block-group.cerveau-bis-exemple > * + * { margin-block-start: var(--wp--custom--proportion--liste-ecart); }
.cerveau-bis-exemple > .wp-block-group { gap: var(--wp--preset--spacing--s); color: var(--wp--preset--color--encre); font-size: var(--wp--custom--texte--interface-taille); font-weight: 600; }

.cerveau-bis-faq > .wp-block-group > * + * { margin-block-start: var(--wp--custom--proportion--faq-ecart); }
.cerveau-bis-faq .wp-block-group.is-layout-grid { gap: var(--wp--custom--proportion--faq-rang) var(--wp--custom--proportion--faq-colonne); }

/* ---------- Pages en colonne étroite : attente, contact, légales, page introuvable ---------- */

.wp-block-group.cerveau-bis-page-simple { padding-block: var(--wp--custom--proportion--intro-haut) var(--wp--preset--spacing--xxl); }
.cerveau-bis-page-simple h2 { margin-block-start: calc(2 * var(--wp--preset--spacing--m)); font-size: var(--wp--preset--font-size--h-3); line-height: 1.15; letter-spacing: -0.02em; }
.cerveau-bis-page-simple p a { text-underline-offset: 3px; }
.cerveau-bis-page-simple > .wp-block-group.is-style-apercu { margin-block-start: calc(var(--wp--preset--spacing--m) + var(--wp--preset--spacing--l)); }
@media (width < 600px) {
	.cerveau-bis-suite .wp-block-buttons > .wp-block-button.is-style-lien { align-self: flex-start; }
}

/* Formulaire d'oniti-core (custom properties et classes de la bibliothèque). */
.oniti-form {
	--oniti-form-gap: var(--wp--preset--spacing--m);
	--oniti-form-label-gap: var(--wp--preset--spacing--xs);
	--oniti-form-input-padding: var(--wp--custom--proportion--champ-v) var(--wp--custom--proportion--champ-h);
	--oniti-form-input-border: 1px solid var(--wp--custom--couleur--texte);
	--oniti-form-input-radius: var(--wp--custom--proportion--rayon-petit);
	--oniti-form-input-background: var(--wp--preset--color--blanc);
}
.oniti-form :is(.oniti-form__libelle, .oniti-form__option label) { color: var(--wp--custom--couleur--texte-titre); }
.oniti-form .oniti-form__libelle { font-size: var(--wp--custom--texte--fixe-taille); }
.oniti-form input:not([type="checkbox"], [type="radio"]) { color: var(--wp--custom--couleur--texte-titre); font-size: var(--wp--custom--texte--fixe-taille); }
.oniti-form :is(.oniti-form__aide, .oniti-form__legende-requis) { font-size: var(--wp--preset--font-size--p-xs); line-height: 1.45; }
.oniti-form .oniti-form__option { gap: var(--wp--preset--spacing--s); }
/* En bloc : l'astérisque reste à la suite du texte (en flex, il partait à droite). */
.oniti-form .oniti-form__option label { display: block; align-content: center; font-size: var(--wp--preset--font-size--p-s); line-height: 1.45; }
.oniti-form .oniti-form__option input { width: var(--wp--custom--proportion--case); height: var(--wp--custom--proportion--case); accent-color: var(--wp--preset--color--encre); }
.oniti-form .oniti-form__message--succes { padding: var(--wp--custom--proportion--mention-v) var(--wp--custom--proportion--mention-h); border: 0; border-radius: var(--wp--custom--proportion--rayon-petit); background: var(--wp--preset--color--creme); color: var(--wp--preset--color--encre); font-weight: 600; }
@media (width < 600px) {
	.oniti-form .oniti-form__envoyer { width: 100%; }
}
