/*
 * hero/moitie — le heros des pages interieures de la maquette cliente de Nearya :
 * deux moities, le texte (sur-titre, titre, phrase, bouton) a gauche sur le fond de
 * la section, la photo a droite sur toute la hauteur, jusqu'au bord de l'ecran.
 * Derive de hero/rivage, dont la photo est carree. Engagement 5 : aucun hexadecimal.
 *
 * La colonne de texte s'aligne sur le conteneur de 1180 px de la page : sa marge
 * gauche est `max(24px, (100% - 1180px) / 2)`. Hauteur : `ivy_hero_min_height`.
 */
.ivy-hero--moitie { color: var( --ivy-ink, rgb( 44 44 44 ) ); }
.ivy-hero--moitie .ivy-hero__inner { display: grid; grid-template-columns: minmax( 0, calc( 100% * var( --ivy-columns, 50 ) / 100 ) ) minmax( 0, 1fr ); min-height: var( --ivy-hero-min-height, 100vh ); }
.ivy-hero--moitie .ivy-hero__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: clamp( 36px, 5vw, 72px ) 45px clamp( 36px, 5vw, 72px ) max( 24px, calc( ( 100vw - 1180px ) / 2 ) ); }
.ivy-hero--moitie.ivy-hero--content-start .ivy-hero__content { justify-content: flex-start; }
.ivy-hero--moitie.ivy-hero--content-center .ivy-hero__content { justify-content: center; }
.ivy-hero--moitie.ivy-hero--content-end .ivy-hero__content { justify-content: flex-end; }
.ivy-hero--moitie .ivy-hero__eyebrow { margin: 0 0 14px; color: var( --ivy-eyebrow-color, var( --ivy-accent, rgb( 31 95 139 ) ) ); font-size: var( --ivy-font-label ); letter-spacing: .14em; text-transform: uppercase; }
.ivy-hero--moitie .ivy-hero__title { margin: 0; color: var( --ivy-title-color, var( --ivy-accent, rgb( 31 95 139 ) ) ); font-weight: 400; line-height: 1.04; }
.ivy-hero--moitie .ivy-hero__text { max-width: 39rem; margin: 22px 0 0; color: var( --ivy-text-color, var( --ivy-ink, rgb( 44 44 44 ) ) ); }
.ivy-hero--moitie .ivy-hero__text p { color: inherit; margin: 0; font-size: inherit; }
.ivy-hero--moitie .ivy-hero__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 26px; max-width: 100%; }
:where( .ivy-hero--moitie ) .ivy-hero__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: var( --ivy-radius-action, 999px ); background: var( --ivy-accent, rgb( 31 95 139 ) ); color: var( --ivy-cta-color, var( --ivy-on-accent, rgb( 247 245 241 ) ) ); font-weight: 600; line-height: 1; text-align: center; text-decoration: none; transition: opacity 180ms ease; }
:where( .ivy-hero--moitie ) .ivy-hero__cta--secondary { background: none; border-color: currentColor; color: var( --ivy-cta_secondary-color, var( --ivy-accent, rgb( 31 95 139 ) ) ); }
:where( .ivy-hero--moitie ) .ivy-hero__cta:hover { opacity: .85; }
:where( .ivy-hero--moitie ) .ivy-hero__cta:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.ivy-hero--moitie .ivy-hero__media { position: relative; display: block; min-width: 0; margin: 0; overflow: hidden; }
.ivy-hero--moitie .ivy-hero__visual { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.ivy-hero--moitie .ivy-hero__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var( --ivy-hero-focus, 50% 50% ); border-radius: inherit; }

/* LE POINT FOCAL. Meme convention que hero/croise : center n'a aucune regle. */
.ivy-hero--moitie.ivy-hero--focus-top-left { --ivy-hero-focus: 0% 0%; }
.ivy-hero--moitie.ivy-hero--focus-top { --ivy-hero-focus: 50% 0%; }
.ivy-hero--moitie.ivy-hero--focus-top-right { --ivy-hero-focus: 100% 0%; }
.ivy-hero--moitie.ivy-hero--focus-left { --ivy-hero-focus: 0% 50%; }
.ivy-hero--moitie.ivy-hero--focus-right { --ivy-hero-focus: 100% 50%; }
.ivy-hero--moitie.ivy-hero--focus-bottom-left { --ivy-hero-focus: 0% 100%; }
.ivy-hero--moitie.ivy-hero--focus-bottom { --ivy-hero-focus: 50% 100%; }
.ivy-hero--moitie.ivy-hero--focus-bottom-right { --ivy-hero-focus: 100% 100%; }
.ivy-hero--moitie.ivy-hero--without-media .ivy-hero__inner { grid-template-columns: minmax( 0, 1fr ); }
@media ( max-width: 900px ) {
	.ivy-hero--moitie .ivy-hero__inner { grid-template-columns: minmax( 0, 1fr ); min-height: 0; }
	.ivy-hero--moitie .ivy-hero__content { padding: 42px 20px; }
	.ivy-hero--moitie .ivy-hero__media { min-height: 280px; }
}
@media ( prefers-reduced-motion: reduce ) { :where( .ivy-hero--moitie ) .ivy-hero__cta { transition: none; } }
