/*
 * hero/carnet — photo plein cadre, voile du haut (lisibilite de l'en-tete et du
 * fil) et voile du bas (titre), fil en haut, titre en lignes au pied.
 * Le voile du bas est la partie Overlay : sans fond par defaut (le panneau doit
 * pouvoir le retirer), son degrade se regle par instance. La hauteur suit la
 * convention du rayon : 82svh de la maquette, bornee par --ivy-hero-min-height.
 */
.ivy-hero--carnet { position: relative; height: min( 82svh, var( --ivy-hero-min-height, 100vh ) ); min-height: 600px; overflow: hidden; background: var( --ivy-section-background-background, var( --ivy-deep, rgb( 31 42 36 ) ) ); color: rgb( 255 255 255 ); isolation: isolate; }
.ivy-hero--carnet .ivy-hero__media { position: absolute; inset: 0; z-index: -2; }
.ivy-hero--carnet .ivy-hero__video { position: absolute; inset: 0; }
.ivy-hero--carnet .ivy-hero__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var( --ivy-hero-focus, 50% 50% ); }
.ivy-hero--carnet::before { content: ''; position: absolute; inset: 0 0 auto; z-index: 0; height: 220px; background: linear-gradient( rgb( 0 0 0 / 42% ), transparent ); pointer-events: none; }
.ivy-hero--carnet .ivy-hero__overlay { position: absolute; inset: 35% 0 0; z-index: -1; background: var( --ivy-overlay-background-background, transparent ); pointer-events: none; }

.ivy-hero--carnet .ivy-hero__fil { position: absolute; top: 8rem; inset-inline-start: clamp( 1.25rem, 4vw, 4rem ); z-index: 2; }
.ivy-hero--carnet .ivy-hero__fil ol { display: flex; flex-wrap: wrap; gap: .25rem 0; margin: 0; padding: 0; list-style: none; color: var( --ivy-breadcrumb-color, rgb( 255 255 255 / 80% ) ); font-size: calc( var( --ivy-font-body ) * .8 ); line-height: 1.6; }
.ivy-hero--carnet .ivy-hero__fil li { font-size: inherit; }
.ivy-hero--carnet .ivy-hero__fil li + li::before { content: '/'; margin: 0 .625rem; color: rgb( 255 255 255 / 80% ); }
.ivy-hero--carnet .ivy-hero__fil a { color: inherit; text-decoration: none; }
.ivy-hero--carnet .ivy-hero__fil a:hover { color: rgb( 255 255 255 ); text-decoration: underline; }

.ivy-hero--carnet .ivy-hero__bottom { position: absolute; inset: auto clamp( 1.25rem, 4vw, 4rem ) clamp( 1.75rem, 4vw, 3rem ); z-index: 2; }
.ivy-hero--carnet .ivy-hero__eyebrow { display: block; margin: 0 0 1.375rem; color: var( --ivy-eyebrow-color, inherit ); font-family: inherit; font-size: calc( var( --ivy-font-body ) * .753 ); font-weight: 600; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; -webkit-text-stroke: 0; }
.ivy-hero--carnet .ivy-hero__title { margin: 0; color: var( --ivy-title-color, inherit ); }
.ivy-hero--carnet .ivy-hero__line { display: block; overflow: hidden; margin-block: -.16em; padding: .2em 0 .24em; }
.ivy-hero--carnet .ivy-hero__line:first-child { margin-block-start: -.04em; }
.ivy-hero--carnet .ivy-hero__line > span { display: block; }

.ivy-hero--carnet .ivy-hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-block-start: 1.625rem; }
.ivy-hero--carnet .ivy-hero__text { color: var( --ivy-text-color, rgb( 255 255 255 / 90% ) ); font-size: calc( var( --ivy-font-body ) * 1.059 ); line-height: 1.6; }
.ivy-hero--carnet .ivy-hero__text p { margin: 0; font-size: inherit; }
.ivy-hero--carnet .ivy-hero__actions { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .875rem 1.5rem; }
.ivy-hero--carnet .ivy-hero__cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.375rem; border-radius: calc( var( --ivy-radius-surface, 1.25rem ) * .2 ); background: var( --ivy-cta-background-background, var( --ivy-accent, rgb( 156 86 54 ) ) ); border: var( --ivy-cta-border-border, 0 ); color: var( --ivy-cta-color, rgb( 255 255 255 ) ); font-size: calc( var( --ivy-font-body ) * .894 ); font-weight: 600; line-height: 1.6; text-decoration: none; }
/* En ligne et non en flex : dans un conteneur flex, la fleche (::after) perd son espace de tete (4,5 px). */
.ivy-hero--carnet .ivy-hero__cta--secondary { display: inline-block; padding: 0 0 2px; border-radius: 0; background: none; border: 0; border-block-end: 1px solid currentColor; color: var( --ivy-cta_secondary-color, rgb( 255 255 255 ) ); font-size: var( --ivy-font-body ); font-weight: 400; min-height: 0; }
.ivy-hero--carnet .ivy-hero__cta--secondary::after { content: ' \2192'; }
.ivy-hero--carnet .ivy-hero__cta:focus-visible { outline: 2px solid currentColor; outline-offset: .25rem; }

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

@media ( max-width: 899px ) {
	.ivy-hero--carnet { display: flex; flex-direction: column; justify-content: flex-end; height: auto; min-height: min( 88svh, var( --ivy-hero-min-height, 100vh ) ); padding: 8.5rem clamp( 1.25rem, 4vw, 4rem ) 1.75rem; }
	.ivy-hero--carnet .ivy-hero__bottom { position: relative; inset: auto; }
	.ivy-hero--carnet .ivy-hero__fil { top: 5.75rem; }
	.ivy-hero--carnet .ivy-hero__foot { flex-direction: column; align-items: flex-start; }
	.ivy-hero--carnet .ivy-hero__actions { justify-content: flex-start; }
}
.ivy-hero--carnet .ivy-hero__picture { display: contents; }
