.cms-home .cms-group{display:flex;width:100%;margin:0!important;gap:0;align-items:stretch}.cms-home .cms-group .visuel{flex:1 1 0;min-width:0;margin:0!important;overflow:hidden}.cms-home .cms-group .visuel img{display:block;width:100%;height:100%;object-fit:cover}.cms-home .cms-group:has(.visuel:only-child) .visuel img{height:auto}.cms-home .cms-group .visuel a{display:block;height:100%;overflow:hidden}.cms-home .cms-group .visuel a:hover img{filter:blur(2px)}.cms-gallery figure{position:relative;margin:0}.cms-gallery img{display:block;width:100%;height:auto}.cms-photo-number{position:absolute;bottom:12px;left:12px;font-size:11px;color:white;text-shadow:0 1px 3px #0008}.cms-captions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:30px 0}.cms-captions div{font-size:12px}.cms-captions span{margin-right:10px;color:#777}.cms-captions strong{font-weight:inherit}.cms-captions p{margin:5px 0}.cms-info-section{margin-bottom:22px}.cms-info-section p{white-space:normal}@media(max-width:700px){.cms-captions{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cms-home .cms-group .visuel a:hover img{filter:blur(5px)!important;opacity:1!important}

/* Contenus éditoriaux bilingues sans altérer les galeries existantes */
.cms-bilingual{color:#000!important;max-width:100%;padding:20px 0 60px}.cms-project-text{white-space:pre-line;color:#000!important;margin:0 0 28px;font:inherit}.cms-captions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 38px;color:#000}.cms-caption{display:flex;flex-direction:column;gap:8px;white-space:pre-line;font:inherit;color:#000}.cms-photo-number{font-size:10px;color:#000;margin-left:4px}@media(max-width:700px){.cms-captions{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}

/* V15 vierge : masquer les anciens contenus HTML, sans toucher aux blocs éditables. */
.texte-expo,.texte-expo-en,.legende,.legende-en,.caption-grid {display:none!important;}
.container .visuel img:not([src]),.container .visuel img[src=""] {display:none!important;}

/* V17 : double défilement indépendant, édition dans la colonne de texte */
@media(min-width:701px){
 html,body{height:100%;overflow:hidden!important;}
 body:not(.home) .container{position:fixed!important;inset:0!important;height:100vh!important;min-height:0!important;overflow:hidden!important;display:block!important;text-align:left!important;}
 body:not(.home) .container>.projet{position:absolute!important;left:50%!important;top:0!important;width:50%!important;height:100vh!important;overflow-y:auto!important;overflow-x:hidden!important;float:none!important;overscroll-behavior:contain;scrollbar-width:none;}
 body:not(.home) .container>.projet::-webkit-scrollbar{display:none;}
 body:not(.home) .container>.texte{position:absolute!important;left:0!important;right:auto!important;top:0!important;bottom:auto!important;width:50%!important;height:100vh!important;max-height:100vh!important;overflow-y:auto!important;overflow-x:hidden!important;display:block!important;box-sizing:border-box!important;padding:90px 22px 40px 14px!important;margin:0!important;overscroll-behavior:contain;scrollbar-width:none;}
 body:not(.home) .container>.texte::-webkit-scrollbar{display:none;}
 body:not(.home) .container .info-expo{height:auto!important;min-height:0!important;width:100%!important;position:static!important;}
}
body:not(.home) .texte,body:not(.home) .texte .info-expo,body:not(.home) .cms-bilingual{text-align:left!important;}
body:not(.home) .cms-bilingual{display:block!important;position:static!important;width:100%!important;max-width:100%!important;box-sizing:border-box;padding:0 0 55px!important;margin:18px 0 0!important;font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif!important;font-size:16px!important;line-height:1.32!important;color:#000!important;}
body:not(.home) .cms-project-text{font:inherit!important;text-align:left!important;white-space:pre-line!important;margin:0 0 28px!important;overflow-wrap:break-word;}
body:not(.home) .cms-captions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:18px 0 36px!important;}
body:not(.home) .cms-caption{font-size:11px!important;line-height:1.2!important;color:#777!important;text-align:left!important;overflow-wrap:anywhere;}
body:not(.home) .titre-expo h1{text-align:left!important;}
.blocinfos:not(.inactive){display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:10002!important;}
.blocinfos .presentation{color:#000!important;}
@media(max-width:700px){
 html,body{height:auto!important;overflow-y:auto!important;}
 body:not(.home) .container>.texte{display:block!important;position:relative!important;width:100%!important;height:auto!important;overflow:visible!important;box-sizing:border-box!important;padding:85px 14px 24px!important;}
 body:not(.home) .container>.projet{position:relative!important;width:100%!important;height:auto!important;overflow:visible!important;}
 body:not(.home) .cms-bilingual{font-size:15px!important;}
 body:not(.home) .cms-captions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .info .versinfos{position:relative!important;z-index:10010!important;cursor:pointer!important;pointer-events:auto!important;}
}

/* V18 — hiérarchie bilingue */
body:not(.home) .cms-bilingual [lang="fr"],
body:not(.home) .cms-bilingual [lang="fr"] .cms-caption,
body:not(.home) .cms-bilingual [lang="fr"] .cms-caption span{color:#000!important;opacity:1!important;}
body:not(.home) .cms-bilingual [lang="en"],
body:not(.home) .cms-bilingual [lang="en"] .cms-caption,
body:not(.home) .cms-bilingual [lang="en"] .cms-caption span{color:rgba(0,0,0,.5)!important;opacity:1!important;}
/* V18 — INFOS toujours au premier plan, y compris depuis HOME */
body>.blocinfos{position:fixed!important;inset:0!important;z-index:2147483000!important;
 background:rgba(255,255,255,.76)!important;backdrop-filter:none!important;
 isolation:isolate;overflow:hidden!important;}
body>.blocinfos.inactive{visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body>.blocinfos:not(.inactive){display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
body>.blocinfos .presentation{position:absolute!important;left:51%!important;right:14px!important;top:12px!important;bottom:12px!important;
 width:auto!important;height:auto!important;max-width:none!important;padding:0 0 30px!important;margin:0!important;
 overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important;
 font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif!important;font-size:16px!important;line-height:1.28!important;color:#000!important;}
body>.blocinfos .cms-info-section{margin:0 0 28px!important;}
body>.blocinfos .cms-info-section h2{font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif!important;font-size:16px!important;line-height:1.25!important;font-weight:400!important;
 color:#000!important;text-align:left!important;margin:0 0 22px!important;}
body>.blocinfos .cms-info-section p{font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif!important;font-size:16px!important;line-height:1.28!important;
 color:#000!important;text-align:left!important;margin:0!important;}
body.infos-open .info{position:fixed!important;z-index:2147483001!important;pointer-events:none!important;background:transparent!important;}
body.infos-open .info .versinfos,body.infos-open .info a,body.infos-open .info button{pointer-events:auto!important;}
body.infos-open .info h1,body.infos-open .info a,body.infos-open .info button{color:#fff!important;}
@media(max-width:700px){
 body>.blocinfos .presentation{left:12px!important;right:12px!important;top:105px!important;bottom:12px!important;
 font-size:15px!important;}
 body>.blocinfos .cms-info-section h2,body>.blocinfos .cms-info-section p{font-size:15px!important;}
 body.infos-open .info{top:15px!important;left:15px!important;width:max-content!important;max-width:calc(100vw - 30px)!important;padding:0!important;margin:0!important;}
}
