/* Brigitte Adam : direction « Aplats ». Les couleurs viennent des couleurs globales Elementor quand elles existent. */
.ba-site {
	--ba-vermillon: var(--e-global-color-primary, #D7392B);
	--ba-encre: var(--e-global-color-text, #1C1A17);
	--ba-toile: #F4EFE6;
	--ba-toile-fonce: #E9E2D5;
	--ba-jaune: #F2B705;
	--ba-bleu: #4B55B0;
	--ba-gris: #5B554C;
	--ba-titre: var(--e-global-typography-primary-font-family, "Bricolage Grotesque"), system-ui, sans-serif;
	--ba-texte: var(--e-global-typography-text-font-family, "Instrument Sans"), system-ui, sans-serif;
}
.ba-site { background-color: var(--ba-toile); }
.ba-toile-fond {
	background-color: var(--ba-toile);
	background-image: repeating-linear-gradient(0deg, rgba(28,26,23,.025) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(28,26,23,.025) 0 1px, transparent 1px 3px);
}

/* Boutons */
.ba-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; font-family: var(--ba-texte); }
.ba-btn-plein { background: var(--ba-encre); color: var(--ba-toile) !important; }
.ba-btn-plein:hover { background: var(--ba-vermillon); }

/* Peintures */
.ba-peinture { position: relative; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 40px -18px rgba(28,26,23,.45); transition: transform .25s ease; background: var(--ba-toile-fonce); }
.ba-peinture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-cadre-blanc { border: 6px solid #fff; }
.ba-carte { text-decoration: none; color: var(--ba-encre); display: flex; flex-direction: column; gap: 12px; break-inside: avoid; margin-bottom: 36px; }
.ba-carte:hover .ba-peinture { transform: translateY(-4px); }
.ba-carte-texte { display: flex; flex-direction: column; gap: 6px; }
.ba-carte-titre { margin: 0; font-family: var(--ba-titre); font-weight: 600; font-size: 22px; line-height: 1.15; color: var(--ba-encre); }
.ba-carte-meta { font-size: 15px; color: var(--ba-gris); }
.ba-carte:hover .ba-carte-titre { color: var(--ba-vermillon); }

.ba-pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.ba-pastille-cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; text-decoration: none; line-height: 1.5; }
.ba-rond { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(28,26,23,.25); flex: none; }

/* Grilles */
.ba-grille-oeuvres { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 28px; align-items: start; }
.ba-grille-oeuvres .ba-carte { margin: 0; }
.ba-mur-oeuvres { column-width: 260px; column-gap: 28px; }
.ba-carte[hidden] { display: none; }

/* Vitrine d'accueil */
.ba-vitrine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: center; }
.ba-vitrine a { display: block; }
.ba-vitrine-1 { grid-row: span 2; }
.ba-vitrine a:hover .ba-peinture { transform: translateY(-4px); }
.ba-vitrine img { max-height: 520px; }

/* Catégories */
.ba-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ba-cat { position: relative; min-height: 260px; text-decoration: none; background: var(--fond); color: var(--encre); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform .25s ease; }
.ba-cat:hover { transform: translateY(-4px); }
.ba-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-cat-texte { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; background: var(--fond); }
.ba-cat-nom { font-family: var(--ba-titre); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -0.02em; }
.ba-cat-ex { font-size: 14px; }

/* Galerie */
.ba-galerie-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 32px; }
.ba-galerie-titres { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ba-surtitre { margin: 0; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: #B42A1F; font-weight: 600; }
.ba-galerie-titre { margin: 0; font-family: var(--ba-titre); font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: -0.035em; color: var(--ba-encre); }
.ba-galerie-intro { margin: 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: #3A362F; }
.ba-tri { display: flex; gap: 8px; align-items: center; }
.ba-tri label { font-size: 14px; font-weight: 600; }
.ba-tri select { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ba-encre); background: #fff; font: inherit; font-size: 15px; border-radius: 0; }
.ba-filtres { position: sticky; top: 0; z-index: 3; background: rgba(244,239,230,.96); border-top: 1px solid rgba(28,26,23,.12); border-bottom: 1px solid rgba(28,26,23,.12); padding: 14px 0; margin-bottom: 48px; display: flex; flex-wrap: wrap; gap: 10px; }
.admin-bar .ba-filtres { top: 32px; }
.ba-filtre { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ba-encre); background: #fff; color: var(--ba-encre); text-decoration: none; white-space: nowrap; }
.ba-filtre[aria-current="page"] { background: var(--ba-encre); color: var(--ba-toile); }
.ba-filtre:hover { border-color: var(--ba-vermillon); }
.ba-galerie-vide { font-size: 18px; color: var(--ba-gris); }
@media (max-width: 760px) {
	.ba-filtres { flex-wrap: nowrap; overflow-x: auto; }
	.admin-bar .ba-filtres { top: 0; }
}

/* Fiche œuvre */
.ba-fiche-oeuvre { display: flex; flex-direction: column; gap: 20px; }
.ba-carac { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-top: 2px solid var(--ba-encre); }
.ba-carac div { padding: 14px 0; border-bottom: 1px solid rgba(28,26,23,.2); }
.ba-carac dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ba-gris); font-weight: 600; }
.ba-carac dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.ba-dispo-ligne { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ba-dispo { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1.5px solid currentColor; }
.ba-dispo::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.ba-dispo-disponible { color: #1F7A5A; }
.ba-dispo-reserve { color: #B07A00; }
.ba-dispo-vendu { color: #B42A1F; }
.ba-dispo-collection { color: var(--ba-bleu); }
.ba-prix { font-family: var(--ba-titre); font-size: 24px; font-weight: 600; }

/* Palette */
.ba-palette { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ba-palette-bande { display: flex; height: 44px; overflow: hidden; border-radius: 4px; }
.ba-palette-bande span { flex-basis: 0; }
.ba-palette-noms { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.ba-palette-noms li { display: inline-flex; align-items: center; gap: 8px; }
.ba-palette-noms .ba-rond { width: 16px; height: 16px; }
.ba-palette figcaption { font-size: 14px; color: var(--ba-gris); }

/* Voir sur un mur */
.ba-voir-mur { display: flex; flex-direction: column; gap: 16px; }
.ba-mur { position: relative; aspect-ratio: 16 / 9; background: var(--mur); overflow: hidden; transition: background .3s ease; border: 1px solid rgba(28,26,23,.12); }
.ba-mur-sol { position: absolute; left: 0; right: 0; bottom: 0; background: #B89F7E; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 2px, transparent 2px 14%); }
.ba-mur-canape { position: absolute; left: 50%; transform: translateX(-50%); height: auto; }
.ba-mur-toile { position: absolute; left: 50%; transform: translateX(-50%); object-fit: cover; box-shadow: 4px 10px 18px -6px rgba(0,0,0,.45); }
.ba-mur-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ba-mur-echelle { font-size: 15px; color: var(--ba-gris); }
.ba-mur-couleurs { display: flex; gap: 8px; flex-wrap: wrap; }
.ba-mur-couleur { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(28,26,23,.25); cursor: pointer; padding: 0; }
.ba-mur-couleur[aria-pressed="true"] { border-color: var(--ba-encre); box-shadow: 0 0 0 3px var(--ba-toile), 0 0 0 5px var(--ba-encre); }
.ba-voir-mur .vsmm { --vsmm-fond: var(--ba-encre); --vsmm-texte: var(--ba-toile); --vsmm-rayon: 999px; }

/* Navigation entre œuvres */
.ba-nav-oeuvres { display: flex; justify-content: space-between; gap: 24px; font-weight: 600; font-size: 17px; border-top: 1px solid rgba(28,26,23,.2); padding-top: 24px; }
.ba-nav-oeuvres a { color: var(--ba-encre); text-decoration: none; }
.ba-nav-oeuvres a:hover { color: var(--ba-vermillon); }

/* Expositions */
.ba-expos { display: flex; flex-direction: column; border-top: 2px solid var(--ba-encre); }
.ba-expos-annee { margin: 32px 0 0; font-family: var(--ba-titre); font-weight: 800; font-size: 34px; }
.ba-expo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 28px 0; border-bottom: 1px solid rgba(28,26,23,.2); }
.ba-expo-date { flex: 0 0 240px; display: flex; align-items: center; gap: 14px; font-family: var(--ba-titre); font-weight: 600; font-size: 20px; }
.ba-expo-date .ba-rond { width: 16px; height: 16px; border: 0; }
.ba-expo-texte { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ba-expo-texte h3 { margin: 0; font-size: 22px; font-weight: 600; }
.ba-expo-texte span { font-size: 16px; color: var(--ba-gris); }
.ba-expo-desc { font-size: 16px; }
.ba-expo-statut { font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ba-encre); color: var(--ba-encre); text-decoration: none; }
.ba-expos-vide { font-size: 18px; color: var(--ba-gris); }

/* Décors en aplats (classes posées sur des conteneurs Elementor).
   Elementor utilise déjà ::before des conteneurs pour ses calques de fond : on prend la main avec un sélecteur plus fort. */
.ba-deco-hero, .ba-deco-bio, .ba-deco-rond, .ba-deco-carre { position: relative; overflow: hidden; }
/* Elementor règle le débordement des conteneurs sur « visible » : les aplats sortaient de leur section (et passaient sur l'en-tête). */
body .e-con.ba-deco-hero, body .e-con.ba-deco-bio, body .e-con.ba-deco-rond, body .e-con.ba-deco-carre { --overflow: hidden; overflow: hidden !important; isolation: isolate; }
body .e-con.ba-deco-hero::before, body .e-con.ba-deco-hero::after, body .e-con.ba-deco-bio::before, body .e-con.ba-deco-rond::before, body .e-con.ba-deco-carre::before,
.ba-deco-hero::before, .ba-deco-hero::after, .ba-deco-bio::before, .ba-deco-rond::before, .ba-deco-carre::before {
	content: "" !important; display: block !important; position: absolute !important; opacity: 1 !important; mix-blend-mode: normal !important; pointer-events: none; z-index: 0 !important; inset: auto !important;
}
body .e-con.ba-deco-hero::before, .ba-deco-hero::before { right: -6% !important; top: -10% !important; width: 46% !important; height: 120% !important; background: #6F78C4 !important; transform: rotate(4deg); border-radius: 0 !important; }
body .e-con.ba-deco-hero::after, .ba-deco-hero::after { right: 34% !important; bottom: -14% !important; width: 16% !important; height: 36% !important; background: #C6D82E !important; transform: rotate(-6deg); }
body .e-con.ba-deco-bio::before, .ba-deco-bio::before { left: 0 !important; top: 0 !important; bottom: 0 !important; width: 38% !important; background: #D7392B !important; border-radius: 0 !important; }
body .e-con.ba-deco-rond::before, .ba-deco-rond::before { right: -60px !important; top: -60px !important; width: 260px !important; height: 260px !important; border-radius: 50% !important; background: #F2B705 !important; }
body .e-con.ba-deco-carre::before, .ba-deco-carre::before { left: -80px !important; bottom: -80px !important; width: 320px !important; height: 320px !important; background: #E0336E !important; transform: rotate(12deg); border-radius: 0 !important; }
.ba-deco-hero > *, .ba-deco-bio > *, .ba-deco-rond > *, .ba-deco-carre > * { position: relative; z-index: 1; }
@media (max-width: 1024px) {
	body .e-con.ba-deco-hero::before, .ba-deco-hero::before { width: 80% !important; top: 45% !important; height: 70% !important; }
	body .e-con.ba-deco-hero::after, .ba-deco-hero::after { display: none !important; }
	body .e-con.ba-deco-bio::before, .ba-deco-bio::before { width: 100% !important; height: 38% !important; bottom: auto !important; }
}
.ba-bande-couleurs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: 10px; }
.ba-bande-couleurs span:nth-child(1) { background: #D7392B; }
.ba-bande-couleurs span:nth-child(2) { background: #F2B705; }
.ba-bande-couleurs span:nth-child(3) { background: #6F78C4; }
.ba-bande-couleurs span:nth-child(4) { background: #C6D82E; }
.ba-bande-couleurs span:nth-child(5) { background: #E0336E; }
.ba-bande-couleurs span:nth-child(6) { background: #3FB4DF; }
.ba-logo-clair img { filter: brightness(0) invert(.94); }
.ba-portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border: 10px solid var(--ba-toile); box-sizing: border-box; box-shadow: 0 24px 50px -20px rgba(28,26,23,.5); }
.ba-chiffre .elementor-heading-title { font-variant-numeric: tabular-nums; }

/* FAQ (widget Accordéon / Toggle d'Elementor) */
.ba-faq .elementor-tab-title, .ba-faq summary { font-size: 20px; font-weight: 600; }

/* Parcours (biographie) */
.ba-parcours { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ba-parcours > li { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 26px 0; border-top: 1px solid rgba(28,26,23,.2); }
.ba-parcours-annee { flex: 0 0 160px; font-family: var(--ba-titre); font-weight: 800; font-size: 34px; line-height: 1; }
.ba-parcours ul { flex: 1 1 360px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 18px; line-height: 1.45; }

/* Fiche : photo, histoire, titres de section */
.ba-photo { margin: 0; }
.ba-photo .ba-peinture { background: transparent; }
.ba-photo img { height: auto; object-fit: contain; }
.ba-h2 { margin: 0 0 20px; font-family: var(--ba-titre); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.02em; line-height: 1.05; color: var(--ba-encre); }
.ba-histoire-texte { font-size: 19px; line-height: 1.7; color: #2B2823; max-width: 720px; font-style: italic; }
.ba-histoire-texte p { margin: 0 0 1em; }
.ba-faq details { border-bottom: 1px solid rgba(28,26,23,.25); }
.ba-faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.ba-faq summary::-webkit-details-marker { display: none; }
.ba-faq summary::after { content: "+"; font-family: var(--ba-titre); font-size: 30px; color: var(--ba-vermillon); transition: transform .2s ease; }
.ba-faq details[open] summary::after { transform: rotate(45deg); }
.ba-faq details p { margin: 0 0 22px; font-size: 18px; line-height: 1.65; color: #3A362F; max-width: 640px; }
.ba-faq { border-top: 2px solid var(--ba-encre); }
.ba-expo-texte h3 a { color: inherit; text-decoration: none; } .ba-expo-texte h3 a:hover { color: var(--ba-vermillon); }
.ba-site .screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.ba-fiche-oeuvre + .ba-palette, .ba-fiche-oeuvre ~ .ba-palette { margin-top: 12px; }

/* Blocs côte à côte dans une rangée (Elementor donne 100 % de largeur par défaut aux conteneurs enfants). */
body .e-con.ba-auto { --width: auto; }
@media (max-width: 767px) { body .e-con.ba-auto { --width: 100%; } }

/* Fiche d'une exposition */
.ba-expo-fiche { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.ba-expo-affiche { flex: 0 1 360px; }
.ba-expo-affiche img { display: block; width: 100%; height: auto; box-shadow: 0 18px 40px -18px rgba(28,26,23,.45); }
.ba-expo-infos { flex: 1 1 320px; display: flex; flex-direction: column; gap: 24px; }
.ba-expo-infos .ba-carac { grid-template-columns: 1fr; }
.ba-expo-infos dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ba-gris); }
.ba-expo-infos dd { margin: 4px 0 0; font-family: var(--ba-titre); font-weight: 600; font-size: 22px; }
