/* steps/escapades — un onglet par week-end, une grille de tuiles : photo, etapes, maison (les-activites.astro, .we). */
.ivy-steps--escapades { padding: clamp( 5rem, 10vw, 8.75rem ) 0; background: var( --ivy-section-background-background, transparent ); color: var( --ivy-ink, rgb( 42 36 32 ) ); }
.ivy-steps--escapades .ivy-steps__title { margin: 0; padding-inline: clamp( 1.25rem, 4vw, 4rem ); color: var( --ivy-title-color, inherit ); }
.ivy-steps--escapades .ivy-steps__text { margin-block-start: .875rem; padding-inline: clamp( 1.25rem, 4vw, 4rem ); color: var( --ivy-text-color, var( --ivy-muted, rgb( 95 87 80 ) ) ); font-size: calc( var( --ivy-font-body ) * 1.059 ); line-height: 1.6; }
.ivy-steps--escapades .ivy-steps__text p { margin: 0; font-size: inherit; }
.ivy-steps--escapades .ivy-steps__tabs { display: flex; gap: 8px; margin: clamp( 1.75rem, 3vw, 2.5rem ) 0 0; padding-inline: clamp( 1.25rem, 4vw, 4rem ); overflow-x: auto; scrollbar-width: none; }
.ivy-steps--escapades .ivy-steps__tab { flex: none; min-height: 44px; padding: 0 20px; border: var( --ivy-tab-border-border, 1px solid rgb( 42 36 32 / 15% ) ); border-radius: var( --ivy-radius-action, 999px ); background: var( --ivy-tab-background-background, rgb( 255 255 255 ) ); color: var( --ivy-tab-color, var( --ivy-ink, rgb( 42 36 32 ) ) ); font: inherit; font-size: calc( var( --ivy-font-body ) * .894 ); font-weight: 600; line-height: normal; cursor: pointer; transition: background .2s, color .2s; }
.ivy-steps--escapades .ivy-steps__tab[aria-selected="true"] { border-color: transparent; background: var( --ivy-tab_active-background-background, var( --ivy-ink, rgb( 42 36 32 ) ) ); color: var( --ivy-tab_active-color, rgb( 255 255 255 ) ); }
.ivy-steps--escapades .ivy-steps__tab:focus-visible { outline: 2px solid var( --ivy-accent, rgb( 156 86 54 ) ); outline-offset: 3px; }
.ivy-steps--escapades .ivy-steps__panel { margin-block-start: clamp( 1.5rem, 3vw, 2.25rem ); padding-inline: clamp( 1.25rem, 4vw, 4rem ); }
.ivy-steps--escapades .ivy-steps__panel[hidden] { display: none; }
.ivy-steps--escapades .ivy-steps__weekend { margin: 0 0 18px; }
/* Les onglets disent deja le nom du week-end : le titre reste pour les lecteurs d'ecran. */
.ivy-steps--escapades[data-ivy-tabs] .ivy-steps__weekend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect( 0 0 0 0 ); white-space: nowrap; }
.ivy-steps--escapades .ivy-steps__grid { display: grid; grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); grid-auto-rows: minmax( 200px, auto ); gap: clamp( 10px, 1vw, 14px ); }
/* Les photos prennent la hauteur des etapes au lieu d'imposer la leur. WordPress donne aux images
   chargees tard une taille intrinseque factice (3000 x 1500) que `contain: size` adopterait, et ses
   attributs width/height un rapport que `contain: size` n'efface pas. */
.ivy-steps--escapades .ivy-steps__photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc( var( --ivy-radius-surface, 1.25rem ) * .7 ); contain: size; contain-intrinsic-size: none; aspect-ratio: auto; }
.ivy-steps--escapades .ivy-steps__photo--lead { grid-row: span 2; }
.ivy-steps--escapades .ivy-steps__photo--video { position: relative; overflow: hidden; }
.ivy-steps--escapades .ivy-steps__photo--video :is( img, video ) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ivy-steps--escapades :is( .ivy-steps__stop, .ivy-steps__home ) { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: clamp( 16px, 1.4vw, 22px ); border-radius: calc( var( --ivy-radius-surface, 1.25rem ) * .7 ); }
.ivy-steps--escapades .ivy-steps__stop { background: var( --ivy-item-background-background, rgb( 255 255 255 ) ); }
.ivy-steps--escapades .ivy-steps__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0; }
.ivy-steps--escapades .ivy-steps__day { padding: 5px 12px; border-radius: var( --ivy-radius-action, 999px ); background: var( --ivy-item_label-background-background, rgb( 228 233 225 ) ); color: var( --ivy-item_label-color, inherit ); font-size: calc( var( --ivy-font-body ) * .753 ); font-weight: 600; line-height: 1.6; }
/* Le temps de trajet en tampon, cousin du sceau. */
.ivy-steps--escapades .ivy-steps__stamp { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 1.5px dashed currentColor; border-radius: 50%; color: var( --ivy-item_number-color, var( --ivy-accent, rgb( 156 86 54 ) ) ); font-size: calc( var( --ivy-font-body ) * .753 ); font-weight: 700; line-height: 1.6; transform: rotate( -8deg ); }
/* En ligne, comme le SVG de la maquette : il occupe une ligne de texte, pas seulement ses 30 px. */
.ivy-steps--escapades .ivy-steps__stop-icon { display: inline-block; width: 30px; height: 30px; color: var( --ivy-item_icon-color, var( --ivy-accent, rgb( 156 86 54 ) ) ); }
.ivy-steps--escapades .ivy-steps__stop-icon svg { display: block; width: 100%; height: 100%; }
.ivy-steps--escapades .ivy-steps__stop-icon svg [stroke] { stroke: currentColor; stroke-width: 2; }
.ivy-steps--escapades .ivy-steps__stop-name { margin: 4px 0 0; color: var( --ivy-item_title-color, inherit ); font-weight: 400; line-height: .95; }
.ivy-steps--escapades :is( .ivy-steps__stop-text, .ivy-steps__home-name, .ivy-steps__price, .ivy-steps__home-note ) { margin: 8px 0 0; font-size: calc( var( --ivy-font-body ) * .894 ); line-height: 1.6; }
.ivy-steps--escapades .ivy-steps__stop-text { color: var( --ivy-item_text-color, inherit ); }
.ivy-steps--escapades .ivy-steps__home { background: var( --ivy-home-background-background, rgb( 31 42 36 ) ); color: var( --ivy-home-color, rgb( 255 255 255 ) ); }
.ivy-steps--escapades .ivy-steps__home .ivy-steps__day { background: rgb( 255 255 255 / 12% ); }
.ivy-steps--escapades .ivy-steps__home-name a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
/* La ligne du prix a la hauteur du montant (Valuxe) : l'unite en texte courant ne l'agrandit pas. */
.ivy-steps--escapades .ivy-steps__home .ivy-steps__price { font-size: calc( var( --ivy-font-body ) * 2.071 ); line-height: 0; }
.ivy-steps--escapades .ivy-steps__amount { font-family: var( --ivy-font-titre, inherit ); line-height: .95; letter-spacing: -.01em; -webkit-text-stroke: .012em currentColor; }
.ivy-steps--escapades .ivy-steps__price small { font-size: calc( var( --ivy-font-body ) * .941 ); line-height: normal; }
.ivy-steps--escapades .ivy-steps__more { display: inline-flex; align-items: center; align-self: flex-start; min-height: 2.75rem; margin-block-start: 12px; 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 ) ) ); 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; }

/* Les tuiles d'un week-end montent a son ouverture. */
@media ( prefers-reduced-motion: no-preference ) {
	.ivy-steps--escapades .ivy-steps__panel:not( [hidden] ) :is( .ivy-steps__photo, .ivy-steps__stop, .ivy-steps__home ) { animation: ivy-steps-escapades-tuile .4s cubic-bezier( .2, .7, .2, 1 ) both; animation-delay: calc( var( --ivy-i, 0 ) * 50ms ); }
}
@keyframes ivy-steps-escapades-tuile { from { opacity: 0; transform: translateY( 14px ); } }

/* Telephone : les etapes l'une sous l'autre, reliees par un fil pointille. */
@media ( max-width: 899px ) {
	.ivy-steps--escapades .ivy-steps__grid { grid-template-columns: minmax( 0, 1fr ); grid-auto-rows: auto; gap: 14px; }
	.ivy-steps--escapades .ivy-steps__photo--lead { grid-row: auto; height: auto; aspect-ratio: 4 / 3; }
	.ivy-steps--escapades .ivy-steps__photo:not( .ivy-steps__photo--lead ) { display: none; }
	.ivy-steps--escapades .ivy-steps__stop { position: relative; margin-inline-start: 22px; }
	.ivy-steps--escapades .ivy-steps__stop::before { content: ''; position: absolute; inset-inline-start: -15px; inset-block: -14px; width: 2px; background: repeating-linear-gradient( var( --ivy-accent, rgb( 156 86 54 ) ) 0 5px, transparent 5px 11px ); }
	.ivy-steps--escapades .ivy-steps__stop::after { content: ''; position: absolute; inset-inline-start: -19px; inset-block-start: 26px; width: 9px; height: 9px; border-radius: 50%; background: var( --ivy-accent, rgb( 156 86 54 ) ); }
}
