/*
Theme Name: Bagatelle Aidance
Theme URI: https://bagatelle-aidance.fr
Author: Premier Degré
Author URI: https://www.premierdegre.tv
Description: Thème sur mesure du site Bagatelle Aidance, l'Observatoire de l'Aidance de la Fondation Bagatelle.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bagatelle-aidance
*/

/* ---------- Bases ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
/* Fondu doux entre les pages (navigateurs récents) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.ba-header { view-transition-name: entete; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks > main { margin-top: 0; }
/* Les sections s'enchaînent sans espace entre elles */
main > .wp-block-post-content,
.wp-block-post-content > .alignfull,
.wp-block-post-content > .ba-section { margin-block: 0 !important; }
a { text-underline-offset: 3px; }

/* Polices décoratives (formats de texte) */
.ba-script, em.s {
	font-family: var(--wp--preset--font-family--script);
	font-style: normal;
	font-weight: 400;
	letter-spacing: -0.01em;
}
.ba-tay {
	font-family: var(--wp--preset--font-family--tay);
	font-weight: 400;
	letter-spacing: 0.03em;
}

/* Surtitre */
.is-style-kicker {
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
}
.is-style-kicker.has-m-font-size { font-size: 16px !important; }

/* Citation manuscrite */
.is-style-citation {
	font-family: var(--wp--preset--font-family--script);
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.2;
	text-align: center;
	max-width: 900px;
	margin-inline: auto !important;
}

/* ---------- Sections ---------- */
.ba-section {
	padding-top: var(--wp--preset--spacing--xl);
	padding-bottom: var(--wp--preset--spacing--xl);
}
.ba-section > * + * { margin-block-start: 22px; }
.ba-section .ba-espace { margin-block-start: 40px !important; }
/* ---------- Espacements repris du Figma ----------
   Base : 22 px entre deux éléments. 54 px après un titre, avant un surtitre
   et avant une grille de cartes. Les valeurs se resserrent sur téléphone. */
.ba-section { --ba-respire: clamp(36px, 4vw, 54px); }
.ba-section > :is(h1, h2) + *,
.ba-section > .is-style-kicker:not(:first-child),
.ba-section > :not(.is-style-kicker) + :is(.ba-grille-cartes, .ba-ronds, .wp-block-columns, .ba-slider) { margin-block-start: var(--ba-respire) !important; }
.ba-section > :not(:first-child).is-style-citation { margin-block-start: clamp(40px, 5vw, 64px) !important; }

/* Sections où le Figma espace davantage les éléments */
.ba-ecart-40 > * + * { margin-block-start: clamp(28px, 3vw, 40px); }
/* Page TACT */
.ba-s-tact-hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(24px, 4vw, 56px); }
.ba-s-artistes { padding-top: clamp(32px, 4vw, 40px); }
.ba-s-artistes > .ba-artistes { margin-block-start: clamp(48px, 6vw, 92px) !important; }

/* Pages Bagatelle Aidance, Entreprises, Nous soutenir : deux colonnes de 529 px séparées de 60 px (Figma) */
@media (min-width: 782px) {
	.ba-titre-encre > .wp-block-columns {
		max-width: 1118px !important;
		margin-left: max(0px, calc((100% - 1158px) / 2)) !important;
		margin-right: auto !important;
		gap: 60px !important;
	}
	.ba-titre-encre > .wp-block-columns > .wp-block-column { flex: 0 0 calc((100% - 60px) / 2) !important; }
	.ba-titre-encre > .wp-block-columns > .wp-block-column > figure + *,
	.ba-titre-encre > .wp-block-columns > .wp-block-column > * + figure { margin-block-start: 40px !important; }
	.ba-titre-encre > .wp-block-columns > .wp-block-column > * + :not(figure) { margin-block-start: 22px; }
}

/* Accueil : chaque section a ses propres marges dans le Figma */
.ba-s-entrees { padding-top: clamp(56px, 8vw, 119px); padding-bottom: clamp(48px, 7vw, 100px); }
.ba-s-entrees > h2 + p { margin-block-start: 8px !important; }
.ba-s-entrees > h2, .ba-s-entrees > h2 + p { text-align: center; }
.ba-s-entrees > .ba-entrees { margin-block-start: clamp(36px, 4vw, 58px) !important; }
.ba-s-tact { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
/* Accueil, bloc TACT : carrousel 782 px, écart 86 px, texte 390 px centré verticalement (Figma). */
@media (min-width: 782px) {
	.ba-s-tact > .wp-block-columns { max-width: 1258px !important; width: 100%; margin-inline: auto !important; gap: clamp(32px, 6vw, 86px) !important; }
	.ba-s-tact > .wp-block-columns > .wp-block-column:first-child { flex: 1 1 782px !important; min-width: 0; }
	.ba-s-tact > .wp-block-columns > .wp-block-column:last-child { flex: 0 1 390px !important; align-self: center; }
}
.ba-s-actus { padding-top: clamp(48px, 5vw, 61px); padding-bottom: clamp(48px, 5vw, 53px); }
.ba-s-actus > .ba-actus-requete { margin-block-start: clamp(36px, 5vw, 67px) !important; }
.ba-s-actus > .wp-block-buttons { margin-block-start: 38px !important; }
.ba-s-temoignages { padding-top: clamp(56px, 7vw, 94px); padding-bottom: clamp(56px, 7vw, 106px); }
.ba-s-temoignages > .ba-temoignages { margin-block-start: clamp(36px, 4vw, 56px) !important; gap: clamp(24px, 4vw, 56px); }
.ba-s-mecenes { padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(56px, 7vw, 90px); }
.ba-s-mecenes > * + * { margin-block-start: clamp(40px, 5vw, 68px) !important; }
.ba-s-mecenes > .ba-logos,
.ba-s-mecenes > .ba-logos + p { margin-block-start: clamp(48px, 6vw, 84px) !important; }
.ba-stat { border-top: 1px solid rgba(255, 255, 255, .45); padding-top: 18px; }
.ba-stat-nombre small { font-size: .5em; letter-spacing: 0; }
.has-blanc-color .is-style-kicker,
.has-blanc-color p { color: inherit; }

/* Titres de section : la partie manuscrite garde la même taille */
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Cartes ---------- */
.is-style-carte,
.ba-carte {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
	border-radius: 18px;
	padding: 24px 22px;
}
.is-style-carte > * + *, .ba-carte > * + * { margin-block-start: 8px; }
.is-style-carte > p + p { margin-block-start: 24px; }
.is-style-carte, .ba-carte { overflow-wrap: break-word; }
.is-style-carte a[href^="mailto:"] { word-break: break-all; }
/* Grilles : 2 colonnes sur tablette, 1 sur téléphone */
@media (max-width: 1023px) {
	.ba-grille-cartes.is-layout-grid:not(.ba-entrees):not(.ba-actus) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
	.ba-grille-cartes.is-layout-grid:not(.ba-entrees):not(.ba-actus) { grid-template-columns: minmax(0, 1fr) !important; }
}
.is-style-carte h3, .ba-carte h3 { margin: 0; }
.is-style-carte .ba-picto, .ba-carte .ba-picto { margin: 0 0 12px; }
.is-style-carte .ba-picto img { width: 28px; height: 28px; }
.ba-grille-cartes { gap: 24px !important; align-items: stretch; }
.ba-grille-cartes > * { height: 100%; margin: 0 !important; }

/* Ronds */
.is-style-rond {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
	border-radius: 50%;
	aspect-ratio: 1;
	width: 311px;
	max-width: 100%;
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 40px 56px;
	margin-inline: auto;
}
.is-style-rond > * { margin: 0 !important; }
.is-style-rond > * + * { margin-top: 8px !important; }
.ba-ronds { gap: 48px !important; justify-content: center; }

/* Images arrondies */
.is-style-arrondi img, .ba-arrondi img { border-radius: 18px; }

/* ---------- Boutons ---------- */
.wp-block-button__link, .wp-element-button {
	transition: transform .18s ease, background-color .18s ease;
	white-space: nowrap;
}
.wp-block-button__link:hover, .wp-element-button:hover { transform: scale(1.05); }
.wp-block-button.is-style-blanc .wp-block-button__link {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
	border: 1px solid var(--wp--preset--color--encre);
}
.wp-block-button.is-style-contour .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--blanc);
}
.wp-block-buttons { gap: 14px; }

/* ---------- En-tête ---------- */
.ba-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--creme);
	box-shadow: 0 2px 12px rgba(61, 41, 20, .06);
	min-height: 96px;
	padding: 0 40px !important;
}
.admin-bar .ba-header { top: 32px; }
.ba-header__logo img { height: 50px; width: auto; display: block; }
.ba-header__menu { gap: 40px !important; }
.ba-header .wp-block-navigation { font-size: 14px; font-weight: 500; gap: 30px; }
.ba-header .wp-block-navigation a:hover { color: var(--wp--preset--color--terracotta); }
.ba-header .wp-block-button__link:hover { transform: none; }
.ba-nav-mobile-only { display: none !important; }

/* Menu burger jusqu'à 1100 px */
@media (max-width: 1099px) {
	.ba-header { min-height: 64px; padding: 0 16px !important; }
	.ba-header__logo img { height: 36px; }
	.ba-header__cta { display: none !important; }
	.ba-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.ba-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
/* Mobile : l'en-tête se cache quand on descend et réapparaît dès qu'on remonte. */
@media (max-width: 1099px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: 0;
		z-index: 100;
		transition: translate .3s ease;
	}
	.ba-header { position: relative; top: auto !important; }
	.ba-entete-cache .wp-site-blocks > header.wp-block-template-part { translate: 0 -110%; }
}
@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
@media (min-width: 783px) and (max-width: 1099px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
}
/* Ordinateur : l'en-tête reste toujours visible en haut de l'écran. */
@media (min-width: 1100px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: 0;
		z-index: 100;
	}
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
	.ba-header { position: relative; top: auto !important; }
}
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--creme) !important;
	color: var(--wp--preset--color--encre) !important;
	padding: 24px 20px !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 64px;
	align-items: stretch !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
	align-items: stretch !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid rgba(43, 42, 40, .12);
	font-size: 22px;
	font-weight: 500;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex !important;
	justify-content: space-between;
	width: 100%;
	padding: 16px 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: "→";
	color: var(--wp--preset--color--terracotta);
}
.wp-block-navigation__responsive-container.is-menu-open .ba-nav-mobile-only { display: flex !important; }
.wp-block-navigation__responsive-container.is-menu-open .ba-nav-cta { border: 0; margin-top: 24px; }
.wp-block-navigation__responsive-container.is-menu-open .ba-nav-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--blanc);
	border-radius: 999px;
	justify-content: center;
	padding: 15px 24px !important;
	font-size: 15px;
	font-weight: 600;
	width: 100%;
	box-sizing: border-box;
	margin-inline: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .ba-nav-cta .wp-block-navigation-item__content::after { content: "  →"; color: inherit; white-space: pre; }
.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }

/* ---------- Pied de page ---------- */
.ba-footer { padding: 60px clamp(20px, 7vw, 100px) 40px !important; }
.ba-footer a { text-decoration: none; }
.ba-footer a:hover { text-decoration: underline; }
.ba-footer__logo img { width: 243px; height: auto; }
.ba-footer__liens { gap: 8px 40px !important; font-size: 15px; }
.ba-footer__sep { flex: 0 0 1px; width: 1px; padding: 0 !important; align-self: stretch; background: rgba(255, 255, 255, .6); min-height: 120px; margin-inline: 40px !important; }
.ba-footer__credit { font-size: 13px; opacity: .85; }
.ba-footer .wp-block-social-links { gap: 18px; }
.ba-footer .wp-block-social-link { background: transparent !important; }
.ba-footer .wp-block-social-link svg { width: 30px; height: 30px; }
@media (max-width: 781px) {
	.ba-footer__sep { flex: 0 0 auto; width: 100%; min-height: 1px; height: 1px; margin-inline: 0 !important; }
	.ba-footer__ligne { flex-direction: column; align-items: flex-start !important; gap: 28px !important; }
}

/* ---------- Accueil : hero ---------- */
.ba-hero { min-height: calc(100vh - 96px); max-height: 900px; }
.ba-hero .wp-block-cover__inner-container { width: 100%; max-width: 1158px; margin-inline: auto; position: static; }
.ba-hero h1 { font-size: var(--wp--preset--font-size--display); line-height: .85; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 28px; }
.ba-hero__italique { font-style: italic; }
.ba-hero__sous { display: inline-block; margin-top: 14px; font-size: 40px; font-weight: 400; line-height: 1.3; }
.ba-hero__pastille {
	display: inline-block;
	background: var(--wp--preset--color--terracotta);
	border-radius: 10px;
	padding: 4px 19px;
	font-size: 20px;
	line-height: 1.4;
}
.ba-hero__pastille .ba-script { font-size: 30px; line-height: 1; }
.ba-hero__bulle {
	position: absolute;
	right: max(40px, calc((100vw - 1440px) / 2 + 66px));
	bottom: 60px;
	width: 337px;
	min-height: 159px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--wp--preset--font-family--script);
	font-size: 26px;
	line-height: 1.15;
	color: var(--wp--preset--color--blanc);
	background: var(--wp--preset--color--sauge);
	padding: 18px 28px;
	border-radius: 10px;
	transform: rotate(-6deg);
	margin: 0 !important;
}
@media (max-width: 1023px) { .ba-hero__bulle { display: none; } }
/* Mobile : photo verticale, titre en haut à gauche, le reste en bas, les visages dégagés au milieu. */
@media (max-width: 781px) {
	.ba-hero {
		min-height: 205vw !important;
		padding-top: 24px !important;
		padding-bottom: 130px !important;
		align-items: stretch !important;
	}
	.ba-hero .wp-block-cover__inner-container { display: flex; flex-direction: column; }
	.ba-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: 0 !important; }
	.ba-hero h1 { margin-top: 0 !important; }
	.ba-hero .wp-block-cover__inner-container > h1 + * { margin-top: auto !important; }
	.ba-hero .wp-block-cover__image-background { object-position: 38% 0 !important; }
	.ba-hero .wp-block-cover__background {
		opacity: 1 !important;
		background: linear-gradient(to bottom, rgba(43, 42, 40, .35) 0%, rgba(43, 42, 40, 0) 22%, rgba(43, 42, 40, 0) 50%, rgba(43, 42, 40, .55) 75%) !important;
	}
}

/* Cartes « À chaque situation » */
.ba-entree {
	border-radius: 22px;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ba-entrees > .ba-entree:nth-child(1) { background-color: #f8e6dc; }
.ba-entrees > .ba-entree:nth-child(2) { background-color: #e4ecf2; }
.ba-entrees > .ba-entree:nth-child(3) { background-color: #ebeee3; }
.ba-entrees > .ba-entree:nth-child(4) { background-color: #e6edef; }
.ba-entree:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(61, 41, 20, .12); }
.ba-entree { padding: 0 !important; }
.ba-entree figure { margin: 0 !important; }
.ba-entree > figure { width: 100%; }
@media (min-width: 782px) {
	/* Comme dans le Figma : 4 cartes sur 1360 px, marges de 40 px */
	.ba-s-entrees > .ba-entrees {
		width: min(1360px, calc(100vw - 80px));
		max-width: none !important;
		margin-left: calc(50% - min(680px, 50vw - 40px)) !important;
		gap: 18px !important;
	}
	.ba-entree { min-height: 452px; }
}
.ba-entree > figure img { width: 100% !important; height: 170px; object-fit: cover; display: block; }
.ba-entree__contenu { padding: 22px 22px 26px !important; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ba-entree__contenu > * { margin: 0 !important; }
.ba-entree .ba-entree__icone img { width: 30px; height: 30px; display: block; }
.ba-entree p { font-size: 15px; color: var(--wp--preset--color--gris); }
.ba-entree h3 { font-size: 21px; font-weight: 600; line-height: 1.15; }
.ba-entree__fleche { margin-top: auto !important; }
.ba-entree__fleche a {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
}
.ba-entree__fleche a::after { content: ""; position: absolute; inset: 0; }

/* Chiffres engagement */
.ba-chiffres { gap: 18px !important; }
/* Section engagement : photo pleine hauteur à gauche */
.ba-engagement-section { padding: 0 !important; }
.ba-engagement-section > .ba-engagement { max-width: none !important; width: 100%; margin: 0 !important; gap: 0 !important; align-items: stretch !important; }
.ba-engagement > .wp-block-column { margin: 0 !important; }
.ba-engagement > .wp-block-column:first-child { position: relative; min-height: 420px; }
.ba-engagement__photo { position: absolute; inset: 0; margin: 0 !important; }
.ba-engagement__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-engagement__texte { padding: 72px clamp(20px, 6vw, 86px) 72px clamp(20px, 5vw, 70px) !important; max-width: 680px; }
.ba-engagement__texte > * + * { margin-block-start: 18px; }
.ba-chiffre { gap: 16px !important; align-items: center; }
.ba-chiffre p { margin: 0; line-height: 1.35; }

/* Statistiques page 01 */
.ba-stat-nombre { font-size: var(--wp--preset--font-size--stat) !important; line-height: 1.1; letter-spacing: -0.05em; margin: 0 !important; }

/* Actualités */
.ba-actu { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.ba-actu__texte { padding: 22px 24px 26px !important; flex: 1; }
.ba-actu__texte > * { margin: 0 0 8px !important; }
.ba-actu h3 { font-size: 19px; }
.ba-actu figure { margin: 0 !important; }
.ba-actu figure img { width: 100%; height: 210px; object-fit: cover; display: block; }
/* Actualités générées depuis les articles */
.ba-actus { list-style: none; padding: 0 !important; margin: 0; }
@media (min-width: 782px) {
	/* Cartes centrées même s'il n'y a qu'une ou deux actualités */
	.ba-actus.is-layout-grid { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 24px !important; }
	.ba-actus.is-layout-grid > li { flex: 0 1 calc((100% - 48px) / 3); }
}
.ba-actus > li { margin: 0 !important; }
/* Une, deux ou trois actualités : toujours centrées, sur ordi comme sur téléphone */
@media (max-width: 781px) {
	.ba-actus > li:first-child { margin-inline-start: auto !important; }
	.ba-actus > li:last-child { margin-inline-end: auto !important; }
}
.ba-actu { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.ba-actu:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(43, 42, 40, .12); }
.ba-actu .wp-block-post-title { font-size: 19px; font-weight: 600; line-height: 1.25; margin: 0 0 8px !important; }
.ba-actu .wp-block-post-title a { color: var(--wp--preset--color--encre); text-decoration: none; }
.ba-actu .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ba-actu .wp-block-post-excerpt { margin: 0 !important; }
.ba-actu .wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--gris); margin: 0 0 8px; }
.ba-actu .wp-block-post-excerpt__more-text { margin: 0; }
.ba-actu .wp-block-post-excerpt__more-link { color: var(--wp--preset--color--terracotta); font-weight: 600; text-decoration: none; }
.ba-actu .wp-block-post-featured-image { margin: auto 0 0 !important; }
.ba-actu .wp-block-post-featured-image img { width: 100%; height: 210px; object-fit: cover; display: block; }
.ba-actu__sans-image { display: flex; align-items: center; justify-content: center; height: 210px; background: var(--wp--preset--color--sable); }
.ba-actu__sans-image img { width: 150px !important; height: auto !important; object-fit: contain !important; filter: brightness(0) saturate(100%) invert(48%) sepia(37%) saturate(722%) hue-rotate(327deg) brightness(91%) contrast(88%); }
.ba-actus-requete .wp-block-query-no-results p { color: inherit; }
.ba-page-actus .wp-block-query-pagination { margin-top: 40px; gap: 16px; font-weight: 600; }
.ba-page-actus .wp-block-query-pagination a { color: inherit; }
.ba-page-actus h1 { color: var(--wp--preset--color--encre); }
/* Page d'un article */
.ba-article { min-height: 50vh; }
.ba-article__retour a { color: var(--wp--preset--color--terracotta); text-decoration: none; }
.ba-article__titre { font-size: clamp(32px, 4vw, 38px); font-weight: 500; line-height: 1.15; }
.ba-article__date { color: var(--wp--preset--color--gris); font-size: 14px; margin-top: 8px !important; }
.ba-article__image { margin-block: 32px !important; }
.ba-article__image .ba-actu__sans-image { height: 320px; border-radius: 18px; }
.ba-article__image img { border-radius: 18px; width: 100%; height: auto; }
.ba-article__contenu { font-size: 17px; }
.ba-article__contenu img { border-radius: 18px; width: 100%; height: auto; }
.ba-article__contenu .ba-actu-texte { font-size: 20px; line-height: 1.5; }
.ba-article__contenu .ba-actu-visuel { margin-top: 32px !important; }
.ba-article__fin { margin-top: 48px !important; }
.ba-lien-fleche a { color: var(--wp--preset--color--terracotta); font-weight: 600; text-decoration: none; }

/* ---------- Défilements en boucle ---------- */
.ba-defile {
	overflow: hidden;
	width: 100vw;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	--duree: 58s;
}
.ba-defile__piste {
	display: flex;
	width: max-content;
	gap: var(--gap, 48px);
	animation: ba-defile var(--duree) linear infinite;
	will-change: transform;
}
.ba-defile.est-hors-ecran .ba-defile__piste { animation-play-state: paused; }
.ba-defile--inverse .ba-defile__piste { animation-direction: reverse; }
@keyframes ba-defile { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - var(--gap, 48px) / 2), 0, 0); } }
@media (prefers-reduced-motion: reduce) {
	.ba-defile__piste { animation: none; }
	.ba-defile { overflow-x: auto; }
}

/* Témoignages */
.ba-temoignages { display: grid; gap: 24px; }
.ba-temoignage {
	width: 470px;
	min-height: 226px;
	background: var(--wp--preset--color--blanc);
	border-radius: 18px;
	padding: 28px 31px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}
.ba-temoignage__guillemet { font-family: var(--wp--preset--font-family--notable); font-size: 46px; line-height: .7; height: 24px; }
.ba-temoignage__texte { font-size: 16px; line-height: 1.5; margin: 0; flex: 1; }
.ba-temoignage__auteur { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.ba-form__requis { color: var(--wp--preset--color--terracotta); }
.ba-temoignage__nom { font-weight: 600; font-size: 14px; line-height: 1.2; }
.ba-temoignage__role { font-size: 13px; color: var(--wp--preset--color--gris); line-height: 1.3; }
@media (max-width: 781px) {
	.ba-temoignage { width: 330px; padding: 22px; }
	.ba-temoignage__texte { font-size: 15px; }
}

/* Logos mécènes */
.ba-logos { --gap: 57px; --duree: 45s; }
.ba-logos .ba-defile__piste { align-items: center; }
.ba-logos img { height: auto; max-height: 82px; width: auto; max-width: 263px; display: block; }
@media (max-width: 781px) { .ba-logos img { max-height: 50px; max-width: 160px; } .ba-logos { --gap: 34px; } }

/* Carrousel TACT */
.ba-carrousel { --gap: 20px; --duree: 45s; width: 100%; margin-left: 0 !important; border-radius: 0; }
.ba-carrousel .ba-defile__piste > * { flex-shrink: 0; }
.ba-carrousel img { width: 433px; max-width: none; height: 433px; object-fit: cover; display: block; }
@media (max-width: 781px) {
	.ba-carrousel { width: 100vw; margin-left: calc(50% - 50vw) !important; }
	.ba-carrousel img { width: 300px; height: 300px; }
}

/* ---------- Page TACT ---------- */
.ba-tact-hero { border-radius: 0; min-height: clamp(270px, 50vw, 698px) !important; }
@media (min-width: 782px) {
	.ba-tact-hero { min-height: 0 !important; aspect-ratio: 1240 / 595 !important; }
	.ba-tact-hero .wp-block-cover__inner-container { align-self: stretch; }
}
.ba-tact-hero .wp-block-cover__inner-container { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; min-height: inherit; padding: 32px 0; }
.ba-tact-hero .ba-logo-tact { grid-row: 2; margin: 0 !important; }
.ba-tact-hero .ba-logo-tact img { width: 200px; }
.ba-tact-hero .ba-logos-partenaires { grid-row: 3; align-self: end; gap: 48px !important; margin: 0 !important; }
.ba-tact-hero .ba-logos-partenaires img { height: 44px; width: auto; }
.ba-tact-titre { font-size: clamp(34px, 5vw, 60px) !important; line-height: 1.05; }
.ba-tact-titre .ba-script { font-size: .55em; line-height: 1.25; display: inline-block; margin-top: 10px; }
.ba-artistes { gap: 24px !important; }
.ba-artiste { position: relative; padding: 0 !important; overflow: hidden; border-radius: 10px !important; }
.ba-artiste h3 a { color: inherit; text-decoration: none; }
.ba-artiste h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.ba-artiste__video { position: relative; margin: 0 !important; }
.ba-artiste__video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ba-artiste__video::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 72px;
	height: 72px;
	transform: translate(-50%, -50%);
	background: url("assets/icons/lecture.svg") center / contain no-repeat;
	transition: transform .18s ease;
}
.ba-artiste:hover .ba-artiste__video::after { transform: translate(-50%, -50%) scale(1.08); }
.ba-artiste__video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.ba-artiste.est-en-lecture h3 a::before,
.ba-artiste.est-en-lecture .ba-artiste__video::after { display: none; }
.ba-artiste.est-en-lecture:hover { transform: none; }
.ba-artiste__texte { padding: 22px 24px 26px !important; }
.ba-artiste h3 { font-family: var(--wp--preset--font-family--tay); font-size: 30px; font-weight: 400; letter-spacing: .03em; line-height: 1.1; text-transform: uppercase; }
.ba-artiste p { font-size: 15px; line-height: 1.45; }

/* ---------- Membres du comité / contact ---------- */
.ba-membre { gap: 24px !important; padding: 8px 24px 8px 8px !important; align-items: center; }
.ba-membre figure { margin: 0 !important; flex-shrink: 0; }
.ba-membre figure img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; display: block; }
.ba-membre__initiales {
	width: 120px; height: 120px; border-radius: 12px; flex-shrink: 0;
	background: var(--wp--preset--color--sable);
	display: flex !important; align-items: center; justify-content: center;
	font-size: 32px; font-weight: 600; color: var(--wp--preset--color--terracotta); margin: 0 !important;
}
.ba-membre p { margin: 0 !important; }
.ba-contact-carte { width: fit-content; max-width: 100%; margin-inline: auto !important; border-radius: 18px !important; }
.ba-contact-carte .is-layout-flex { gap: 0 !important; }

/* ---------- Formats (page Entreprises) ---------- */
.ba-formats { padding: 12px 36px !important; }
.ba-format { gap: 24px !important; padding: 24px 0 !important; align-items: center; border-bottom: 1px solid rgba(43, 42, 40, .12); }
.ba-format:last-child { border-bottom: 0; }
.ba-format .ba-picto-rond { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: rgba(194, 103, 75, .12); display: flex !important; align-items: center; justify-content: center; margin: 0 !important; }
.ba-format .ba-picto-rond img { width: 26px; height: 26px; }
.ba-format h3 { font-size: 18px; margin: 0; }
.ba-format p { margin: 4px 0 0 !important; }

/* ---------- Slider interlocuteurs ---------- */
.ba-slider { position: relative; }
.ba-slider__piste {
	display: flex !important;
	gap: 24px !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
	align-items: stretch !important;
}
.ba-slider__piste::-webkit-scrollbar { display: none; }
.ba-slider__piste > * {
	flex: 0 0 calc((100% - 48px) / 3);
	scroll-snap-align: start;
	margin: 0 !important;
}
.ba-slider__fleche {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	transition: transform .18s ease, opacity .2s;
}
.ba-slider__fleche:hover { transform: translateY(-50%) scale(1.08); }
.ba-slider__fleche[disabled] { opacity: .35; cursor: default; }
.ba-slider__fleche--prec { left: -64px; }
.ba-slider__fleche--suiv { right: -64px; }
@media (max-width: 1299px) { .ba-slider__fleche--prec { left: -12px; } .ba-slider__fleche--suiv { right: -12px; } }
@media (max-width: 781px) {
	.ba-slider__piste > * { flex-basis: 85%; }
	.ba-slider__fleche { display: none; }
}

/* ---------- FAQ ---------- */
.ba-faq { gap: 0 40px !important; }
.ba-faq .wp-block-details { border-bottom: 1px solid rgba(255, 255, 255, .45); padding: 16px 0; margin: 0 !important; }
.ba-faq .wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
}
.ba-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.ba-faq .wp-block-details summary::after {
	content: "+";
	flex: 0 0 25px;
	height: 25px;
	border-radius: 50%;
	border: 1px solid currentColor;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	transition: transform .25s ease;
}
.ba-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.ba-faq .wp-block-details > p { margin: 12px 0 0; }

/* ---------- Formulaire ---------- */
.ba-form {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
	border-radius: 18px;
	padding: 32px;
	max-width: 1118px;
	margin-inline: auto;
}
.ba-form form > * { margin: 0 0 18px; }
.ba-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba-form__row > p { margin: 0; }
.ba-form__field { display: flex; flex-direction: column; gap: 8px; }
.ba-form label { font-size: 13px; font-weight: 600; }
.ba-form input[type=text], .ba-form input[type=email], .ba-form input[type=tel], .ba-form select, .ba-form textarea {
	font: inherit;
	font-size: 14px;
	padding: 14px 16px;
	border: 1px solid rgba(43, 42, 40, .2);
	border-radius: 10px;
	background: var(--wp--preset--color--creme);
	color: var(--wp--preset--color--encre);
	width: 100%;
	box-sizing: border-box;
}
.ba-form input:focus, .ba-form select:focus, .ba-form textarea:focus { outline: 2px solid var(--wp--preset--color--terracotta); outline-offset: 1px; }
.ba-form__consent { display: flex; gap: 12px; align-items: flex-start; }
.ba-form__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--wp--preset--color--terracotta); flex-shrink: 0; }
.ba-form__consent label { font-weight: 400; font-size: 13px; line-height: 1.4; }
.ba-form__note { font-size: 12px; color: var(--wp--preset--color--gris); }
.ba-form__hp { position: absolute !important; left: -9999px; }
.ba-form__error { background: #f8e6dc; color: #8a3a22; padding: 12px 16px; border-radius: 10px; }
.ba-form__confirmation { text-align: center; padding: 60px 20px; }
.ba-form__check { display: block; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--wp--preset--color--sauge); position: relative; }
.ba-form__check::after { content: ""; position: absolute; left: 19px; top: 14px; width: 14px; height: 24px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ba-form__confirmation h2 { font-size: 30px; margin: 0 0 12px; }
.ba-form__close { display: inline-block; margin-top: 12px; padding: 12px 24px; border-radius: 999px; background: var(--wp--preset--color--terracotta); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; }
@media (max-width: 781px) {
	.ba-form { padding: 24px 20px; }
	.ba-form__row { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Mentions et politiques ---------- */
.ba-mentions { gap: 40px 60px !important; }
.ba-mentions a { text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.ba-section { padding-top: 48px; padding-bottom: 48px; }
	.wp-block-columns { gap: 24px !important; }
	.ba-entrees { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px !important; margin-inline: calc(-1 * clamp(20px, 5vw, 141px)) !important; padding-inline: 20px; scrollbar-width: none; }
	.ba-entrees > * { flex: 0 0 270px; scroll-snap-align: start; height: auto !important; }
	.ba-entrees { padding-inline: 20px !important; scroll-padding-inline: 20px; align-items: stretch !important; }
	.ba-actus { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px !important; scrollbar-width: none; }
	.ba-actus > * { flex: 0 0 290px; scroll-snap-align: start; }
	.ba-hero h1 { font-size: 44px; }
	.ba-hero__sous { font-size: 22px; margin-top: 8px; }
	.ba-engagement > .wp-block-column:first-child { min-height: 280px; }
	.ba-engagement__texte { padding: 48px 20px !important; }
	.ba-hero__pastille { font-size: 20px; }
	.is-style-rond { width: 300px; }
	.ba-membre { padding: 8px !important; gap: 16px !important; }
	.ba-membre figure img, .ba-membre__initiales { width: 88px; height: 88px; }
	.ba-formats { padding: 8px 20px !important; }
	.ba-tact-hero .ba-logo-tact img { width: 170px; }
	.ba-tact-hero .ba-logos-partenaires { gap: 24px !important; }
	.ba-tact-hero .ba-logos-partenaires img { height: 24px; }
}
