/*
 * hero/porche — photo plein ecran sous deux voiles (haut fixe, bas = partie
 * Overlay, reglee par instance), le nom en tres grand, la barre de recherche
 * au pied. Hauteur : 100svh de la maquette, bornee par --ivy-hero-min-height.
 */
.ivy-hero--porche { position: relative; height: min( 100svh, var( --ivy-hero-min-height, 100vh ) ); min-height: 560px; overflow: hidden; background: var( --ivy-section-background-background, var( --ivy-deep, rgb( 31 42 36 ) ) ); color: rgb( 255 255 255 ); isolation: isolate; }
.ivy-hero--porche .ivy-hero__media { position: absolute; inset: 0; z-index: -2; display: block; }
.ivy-hero--porche .ivy-hero__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var( --ivy-hero-focus, 50% 50% ); }
.ivy-hero--porche::before { content: ''; position: absolute; inset: 0 0 auto; z-index: 0; height: 160px; background: linear-gradient( rgb( 0 0 0 / 35% ), transparent ); pointer-events: none; }
.ivy-hero--porche .ivy-hero__overlay { position: absolute; inset: 45% 0 0; z-index: -1; background: var( --ivy-overlay-background-background, transparent ); pointer-events: none; }

.ivy-hero--porche .ivy-hero__bottom { position: absolute; inset: auto clamp( 1.25rem, 4vw, 4rem ) calc( clamp( 1.5rem, 4vw, 2.75rem ) + 6rem ); z-index: 2; }
.ivy-hero--porche .ivy-hero__eyebrow { display: block; margin: 0 0 1.125rem; color: var( --ivy-eyebrow-color, inherit ); font-family: inherit; font-size: calc( var( --ivy-font-body ) * .753 ); font-weight: 600; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; -webkit-text-stroke: 0; }
.ivy-hero--porche .ivy-hero__eyebrow span { font-weight: 400; }
.ivy-hero--porche .ivy-hero__title { margin: 0; color: var( --ivy-title-color, inherit ); }
/* Le masque de chaque ligne garde de la place pour les accents ; la derniere, pour le jambage du « g ». */
.ivy-hero--porche .ivy-hero__line { display: block; overflow: hidden; margin-block: -.2em -.12em; padding: .2em 0; }
.ivy-hero--porche .ivy-hero__line:first-child { margin-block-start: -.04em; }
.ivy-hero--porche .ivy-hero__line:last-child { margin-block-end: -.28em; padding-block-end: .36em; }
.ivy-hero--porche .ivy-hero__line > span { display: block; }

.ivy-hero--porche .ivy-hero__foot { position: absolute; inset: auto clamp( 1.25rem, 4vw, 4rem ) clamp( 1.5rem, 4vw, 2.75rem ); z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.ivy-hero--porche .ivy-hero__search { display: flex; align-items: stretch; margin: 0; padding: 6px; border-radius: calc( var( --ivy-radius-surface, 1.25rem ) * .2 ); background: var( --ivy-search-background-background, var( --ivy-surface, rgb( 247 243 236 ) ) ); color: var( --ivy-ink, rgb( 42 36 32 ) ); box-shadow: 0 10px 30px rgb( 0 0 0 / 24% ); }
.ivy-hero--porche .ivy-hero__field { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 6px 18px; border-inline-end: 1px solid rgb( 42 36 32 / 12% ); color: var( --ivy-muted, rgb( 95 87 80 ) ); font-size: calc( var( --ivy-font-body ) * .706 ); font-weight: 600; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; }
.ivy-hero--porche .ivy-hero__field :is( input, select ) { min-height: 2rem; margin: 0; padding: 0; border: 0; border-radius: 0; background-color: transparent; color: var( --ivy-ink, rgb( 42 36 32 ) ); font: inherit; font-size: calc( var( --ivy-font-body ) * .941 ); font-weight: 400; line-height: normal; letter-spacing: 0; text-transform: none; box-shadow: none; }
.ivy-hero--porche .ivy-hero__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.375rem; border: var( --ivy-cta-border-border, 0 ); border-radius: calc( var( --ivy-radius-surface, 1.25rem ) * .2 ); background: var( --ivy-cta-background-background, var( --ivy-accent, rgb( 156 86 54 ) ) ); color: var( --ivy-cta-color, rgb( 255 255 255 ) ); font: inherit; font-size: calc( var( --ivy-font-body ) * .894 ); font-weight: 600; line-height: normal; text-decoration: none; cursor: pointer; }
.ivy-hero--porche .ivy-hero__search .ivy-hero__cta { min-height: 3.25rem; margin-inline-start: 6px; }
.ivy-hero--porche .ivy-hero__cta--secondary { padding-block: 6px; border-block-end: 1px solid currentColor; color: var( --ivy-cta_secondary-color, rgb( 255 255 255 ) ); font-size: var( --ivy-font-body ); line-height: 1.6; text-decoration: none; }
.ivy-hero--porche .ivy-hero__cta--secondary::after { content: ' \2192'; }
.ivy-hero--porche :is( .ivy-hero__cta, .ivy-hero__cta--secondary ):focus-visible { outline: 2px solid currentColor; outline-offset: .25rem; }

@media ( prefers-reduced-motion: no-preference ) {
	.ivy-hero--porche .ivy-hero__image { animation: ivy-hero-porche-resserre 1.2s cubic-bezier( .2, .7, .2, 1 ) both; }
	.ivy-hero--porche .ivy-hero__line > span { animation: ivy-hero-porche-monte .5s cubic-bezier( .2, .7, .2, 1 ) .15s both; }
	.ivy-hero--porche .ivy-hero__line:nth-child( 2 ) > span { animation-delay: .28s; }
	.ivy-hero--porche .ivy-hero__eyebrow, .ivy-hero--porche .ivy-hero__foot { animation: ivy-hero-porche-apparait .45s cubic-bezier( .2, .7, .2, 1 ) .45s both; }
}
@keyframes ivy-hero-porche-resserre { from { transform: scale( 1.06 ); } }
@keyframes ivy-hero-porche-monte { from { transform: translateY( 105% ); } }
@keyframes ivy-hero-porche-apparait { from { opacity: 0; transform: translateY( 8px ); } }

/* Telephone : pas de champs de dates sur la photo, le bouton suffit. */
@media ( max-width: 899px ) {
	.ivy-hero--porche .ivy-hero__bottom { inset-block-end: 150px; }
	.ivy-hero--porche .ivy-hero__foot { flex-direction: column; align-items: stretch; gap: .875rem; }
	.ivy-hero--porche .ivy-hero__search { padding: 0; background: none; box-shadow: none; }
	.ivy-hero--porche .ivy-hero__field { display: none; }
	.ivy-hero--porche .ivy-hero__search .ivy-hero__cta { flex: 1; margin: 0; }
	.ivy-hero--porche .ivy-hero__cta--secondary { align-self: flex-start; }
}
