/* V15 — restitution des interactions V13, finition des bandeaux V14. */
/* The animated logo remains above the header while moving; menus win when open. */
.site-v12.home-v3 .site-header:has(.v5-nav-group[open]),
.site-v12.home-v3 .site-header.menu-visible{z-index:110}
/* The original three activity tiles, with the V13 responsive grid and checkerboard. */
.site-v12.home-v3 .v3-activity-list{grid-template-columns:repeat(3,minmax(0,1fr))}
.site-v12.home-v3 .v3-activity{min-width:0;overflow-wrap:anywhere}
@media(max-width:820px){.site-v12.home-v3 .v3-activity-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.site-v12.home-v3 .v3-activity-list{grid-template-columns:1fr}}
/* Frescoes: no vertical padding in the image column. The text retains its own spacing. */
.site-v12:not(.home-v3) .page-intro.v8-banner:has(.v10-hero-art):not(.v10-chava-hero){padding:0;overflow:hidden}
.site-v12 .v8-banner:not(.v10-chava-hero) .page-intro-inner:has(.v10-hero-art){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(20px,3vw,48px);align-items:stretch}
.site-v12 .v8-banner:not(.v10-chava-hero) .page-intro-inner:has(.v10-hero-art)>div:first-child{align-self:center;padding:clamp(24px,3vw,44px) 0;min-width:0}
.site-v12 .v8-banner:not(.v10-chava-hero) .v10-hero-art{display:flex;align-items:stretch;justify-content:flex-end;align-self:stretch;width:100%;height:auto;min-height:0;overflow:hidden;max-width:none}
.site-v12 .v8-banner:not(.v10-chava-hero) .v10-hero-art img,.site-v12:is(.page-parcours,.page-ressources) .v8-banner .v10-hero-art img{display:block;position:relative;inset:auto;width:100%;height:auto;max-height:none;max-width:100%;object-fit:contain;object-position:right center;transform:none;align-self:stretch}
/* The colored strip continues into a low-amplitude wave, without covering the illustration. */
.site-v12:not(.home-v3) .page-intro.v15-banner{position:relative;padding-bottom:0;overflow:hidden}
.v15-banner-wave{height:clamp(16px,2vw,29px);width:100%;line-height:0;pointer-events:none}
.v15-banner-wave svg{width:100%;height:100%;display:block}
/* Other banners retain their existing top padding and spacing; CHAVA logo is not a fresco. */
.site-v12 .v15-banner:not(:has(.v10-hero-art)) .page-intro-inner,.site-v12 .v15-banner.v10-chava-hero .page-intro-inner{padding-bottom:clamp(22px,3vw,40px)}
.v15-appointment-only{margin:7px 0 0;font-weight:600}
@media(max-width:960px){
 .site-v12 .v8-banner:not(.v10-chava-hero) .page-intro-inner:has(.v10-hero-art){grid-template-columns:minmax(0,1fr);gap:0}
 .site-v12 .v8-banner:not(.v10-chava-hero) .page-intro-inner:has(.v10-hero-art)>div:first-child{padding:30px 0 12px}
 .site-v12 .v8-banner:not(.v10-chava-hero) .v10-hero-art{width:min(100%,640px);justify-self:end}
 .site-v12 .v8-banner:not(.v10-chava-hero) .v10-hero-art img,.site-v12:is(.page-parcours,.page-ressources) .v8-banner .v10-hero-art img{object-position:center;align-self:auto}
}
@media(max-width:620px){.site-v12 .v8-banner:not(.v10-chava-hero) .v10-hero-art{justify-self:center;width:100%}.site-v12 .v8-banner:not(.v10-chava-hero) .page-intro-inner:has(.v10-hero-art)>div:first-child{padding:24px 0 10px}}
/* Desktop: the natural aspect ratio of the fresco drives the banner height whenever possible. */
@media(min-width:961px){
 .site-v12 .v8-banner:not(.v10-chava-hero) .page-intro-inner:has(.v10-hero-art)>div:first-child{padding:16px 0}
 .site-v12 .v8-banner:not(.v10-chava-hero) .page-intro-inner:has(.v10-hero-art) h1{font-size:clamp(40px,4.6vw,68px);line-height:1.08;margin:0 0 12px}
 .site-v12 .v8-banner:not(.v10-chava-hero) .page-intro-inner:has(.v10-hero-art) .eyebrow{margin:0 0 14px}
 .site-v12 .v8-banner:not(.v10-chava-hero) .page-intro-inner:has(.v10-hero-art) .lede{margin:0;line-height:1.45}
}

/* V16.2 — CHAVA : neutralise la règle de fresque héritée de page-ressources.
   La taille est bornée dans les deux axes, sans découpe ni étirement. */
.site-v12.page-ressources .v8-banner.v10-chava-hero .v10-hero-art{
 display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);place-items:center;
 box-sizing:border-box;min-height:0;max-width:300px;height:clamp(120px,13vw,180px);
 padding:10px;overflow:hidden;align-self:center;justify-self:center;
}
.site-v12.page-ressources .v8-banner.v10-chava-hero .v10-hero-art img{
 display:block;position:static;inset:auto;width:auto;height:auto;
 max-width:100%;max-height:100%;min-width:0;min-height:0;
 object-fit:contain;object-position:center;transform:none;align-self:center;justify-self:center;opacity:1;
}
@media(max-width:820px){.site-v12.page-ressources .v8-banner.v10-chava-hero .v10-hero-art{max-width:240px;height:140px}}
@media(max-width:620px){.site-v12.page-ressources .v8-banner.v10-chava-hero .v10-hero-art{max-width:210px;height:120px}}
