/*
 * steps/calendrier — les etapes et un mois qui se remplit (Calendrier.astro).
 * Un element est « allume » quand l'etape courante (--ivy-at, posee ici par
 * :has() sur l'etape que le runtime marque) atteint la sienne (--ivy-from) :
 * --ivy-on vaut alors 1. Sans scene tenue, --ivy-at vaut 99 : tout est allume.
 */
.ivy-steps--calendrier { --ivy-at: 99; --ivy-gutter: clamp( 1.25rem, 4vw, 4rem ); color: var( --ivy-ink, rgb( 42 36 32 ) ); }
.ivy-steps--calendrier.ivy-scene-ready { --ivy-at: 1; }
.ivy-steps--calendrier.ivy-scene-ready:has( .ivy-steps__item--s2.ivy-scene-current ) { --ivy-at: 2; }
.ivy-steps--calendrier.ivy-scene-ready:has( .ivy-steps__item--s3.ivy-scene-current ) { --ivy-at: 3; }
.ivy-steps--calendrier.ivy-scene-ready:has( .ivy-steps__item--s4.ivy-scene-current ) { --ivy-at: 4; }
.ivy-steps--calendrier.ivy-scene-ready:has( .ivy-steps__item--s5.ivy-scene-current ) { --ivy-at: 5; }
.ivy-steps--calendrier.ivy-scene-ready:has( .ivy-steps__item--s6.ivy-scene-current ) { --ivy-at: 6; }
.ivy-steps--calendrier :is( .ivy-steps__item, .ivy-steps__day, .ivy-steps__day-chip, .ivy-steps__legend li ) { --ivy-on: clamp( 0, var( --ivy-at ) - var( --ivy-from, 0 ) + 1, 1 ); }

.ivy-steps--calendrier .ivy-steps__pin { display: grid; grid-template-columns: minmax( 0, 5fr ) minmax( 0, 6fr ); align-items: center; gap: clamp( 2rem, 5vw, 5.5rem ); padding: clamp( 5rem, 9vw, 7.5rem ) var( --ivy-gutter ); }
.ivy-steps--calendrier .ivy-steps__title { margin: 0; color: var( --ivy-title-color, inherit ); }
.ivy-steps--calendrier .ivy-steps__text { margin-block-start: .875rem; 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--calendrier .ivy-steps__text p { margin: 0; font-size: inherit; }
.ivy-steps--calendrier .ivy-steps__list { margin: 2rem 0; padding: 0; list-style: none; }
.ivy-steps--calendrier .ivy-steps__item { font-size: inherit; display: grid; grid-template-columns: 56px 1fr; gap: 14px; margin: 0; padding: 14px 0; border-block-start: 1px solid rgb( 42 36 32 / 10% ); opacity: calc( .38 + .62 * var( --ivy-on ) ); }
.ivy-steps--calendrier .ivy-steps__number { color: var( --ivy-item_number-color, var( --ivy-accent, rgb( 156 86 54 ) ) ); font-family: var( --ivy-font-titre, inherit ); font-size: calc( var( --ivy-font-body ) * 1.882 ); line-height: .95; letter-spacing: -.01em; }
.ivy-steps--calendrier .ivy-steps__item-title { margin: 0 0 4px; color: var( --ivy-item_title-color, inherit ); font-family: inherit; font-weight: 600; line-height: 1.3; letter-spacing: normal; -webkit-text-stroke: 0; }
.ivy-steps--calendrier .ivy-steps__item-text { margin: 0; color: var( --ivy-item_text-color, var( --ivy-muted, rgb( 95 87 80 ) ) ); }
.ivy-steps--calendrier .ivy-steps__cta { display: inline-flex; align-items: 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-size: calc( var( --ivy-font-body ) * .894 ); font-weight: 600; line-height: 1.6; text-decoration: none; }

.ivy-steps--calendrier .ivy-steps__month { margin: 0; padding: clamp( 1.25rem, 2.4vw, 2rem ); border-radius: calc( var( --ivy-radius-surface, 1.25rem ) * 1.1 ); background: var( --ivy-month-background-background, rgb( 255 255 255 ) ); box-shadow: 0 1px 1px rgb( 42 36 32 / 6% ), 0 6px 14px rgb( 42 36 32 / 5% ), 0 30px 60px rgb( 42 36 32 / 6% ); }
.ivy-steps--calendrier .ivy-steps__month-head { display: flex; justify-content: space-between; align-items: baseline; margin-block-end: 18px; color: var( --ivy-muted, rgb( 95 87 80 ) ); font-size: calc( var( --ivy-font-body ) * .8 ); line-height: 1.6; }
.ivy-steps--calendrier .ivy-steps__month-name { color: var( --ivy-ink, rgb( 42 36 32 ) ); font-family: var( --ivy-font-titre, inherit ); font-size: calc( var( --ivy-font-body ) * 2.071 ); line-height: .95; letter-spacing: -.01em; }
.ivy-steps--calendrier .ivy-steps__grid { display: grid; grid-template-columns: repeat( 7, 1fr ); gap: 4px; }
.ivy-steps--calendrier .ivy-steps__weekday { padding-block-end: 6px; color: var( --ivy-muted, rgb( 95 87 80 ) ); font-size: calc( var( --ivy-font-body ) * .706 ); font-weight: 600; line-height: normal; text-align: center; }
/* Un jour : son fond s'allume par un calque (les rayures de « vous » ne se melangent pas). */
.ivy-steps--calendrier .ivy-steps__day { position: relative; isolation: isolate; aspect-ratio: 1 / .86; padding: 6px 7px; overflow: hidden; border-radius: calc( var( --ivy-radius-surface, 1.25rem ) * .4 ); background: var( --ivy-surface, rgb( 247 243 236 ) ); font-size: calc( var( --ivy-font-body ) * .734 ); line-height: 1.6; }
.ivy-steps--calendrier .ivy-steps__day::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var( --ivy-fill, none ); opacity: var( --ivy-on, 0 ); }
.ivy-steps--calendrier .ivy-steps__day--ring { box-shadow: inset 0 0 0 calc( 2px * var( --ivy-on ) ) var( --ivy-accent, rgb( 156 86 54 ) ); }
.ivy-steps--calendrier .ivy-steps__day--plateforme { --ivy-fill: rgb( 185 200 188 ); }
.ivy-steps--calendrier .ivy-steps__day--direct { --ivy-fill: var( --ivy-accent, rgb( 156 86 54 ) ); }
.ivy-steps--calendrier .ivy-steps__day--vous { --ivy-fill: repeating-linear-gradient( 135deg, rgb( 220 207 194 ) 0 6px, rgb( 233 223 212 ) 6px 12px ); }
.ivy-steps--calendrier .ivy-steps__day-number { color: var( --ivy-muted, rgb( 95 87 80 ) ); font-weight: 600; }
.ivy-steps--calendrier .ivy-steps__day--direct { color: color-mix( in srgb, rgb( 255 255 255 ) calc( var( --ivy-on ) * 100% ), var( --ivy-ink, rgb( 42 36 32 ) ) ); }
.ivy-steps--calendrier .ivy-steps__day--direct .ivy-steps__day-number { color: color-mix( in srgb, rgb( 255 255 255 ) calc( var( --ivy-on ) * 100% ), var( --ivy-muted, rgb( 95 87 80 ) ) ); }
.ivy-steps--calendrier :is( .ivy-steps__day-label, .ivy-steps__day-chip ) { position: absolute; inset-inline-start: 7px; inset-block-end: 6px; font-size: calc( var( --ivy-font-body ) * .659 ); font-weight: 600; white-space: nowrap; opacity: var( --ivy-on ); }
.ivy-steps--calendrier .ivy-steps__day-chip { --ivy-on: clamp( 0, var( --ivy-at ) - var( --ivy-from, 0 ) + 1, 1 ); inset: 6px 6px auto auto; padding: 1px 6px; border-radius: var( --ivy-radius-action, 999px ); background: rgb( 255 255 255 ); color: var( --ivy-accent, rgb( 156 86 54 ) ); font-size: calc( var( --ivy-font-body ) * .584 ); }
.ivy-steps--calendrier .ivy-steps__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; color: var( --ivy-muted, rgb( 95 87 80 ) ); font-size: calc( var( --ivy-font-body ) * .8 ); line-height: 1.6; list-style: none; }
.ivy-steps--calendrier .ivy-steps__legend li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: inherit; opacity: var( --ivy-on ); }
.ivy-steps--calendrier .ivy-steps__swatch { width: 14px; height: 14px; border-radius: calc( var( --ivy-radius-surface, 1.25rem ) * .2 ); background: var( --ivy-fill ); }

@media ( prefers-reduced-motion: no-preference ) {
	.ivy-steps--calendrier .ivy-steps__item, .ivy-steps--calendrier :is( .ivy-steps__day-label, .ivy-steps__day-chip ), .ivy-steps--calendrier .ivy-steps__legend li { transition: opacity .4s; }
	.ivy-steps--calendrier .ivy-steps__day::before { transition: opacity .45s cubic-bezier( .2, .7, .2, 1 ); }
	.ivy-steps--calendrier .ivy-steps__day { transition: color .45s, box-shadow .45s; }
}
/* Epinglage : ordinateur, mouvement autorise ; quatre ecrans de defilement pour quatre etapes. */
@media ( min-width: 900px ) and ( prefers-reduced-motion: no-preference ) {
	.ivy-steps--calendrier { height: 340svh; }
	.ivy-steps--calendrier .ivy-steps__pin { position: sticky; top: 0; height: 100svh; padding-block: 80px 40px; }
}
@media ( max-width: 899px ) {
	.ivy-steps--calendrier .ivy-steps__pin { grid-template-columns: minmax( 0, 1fr ); }
	.ivy-steps--calendrier .ivy-steps__month { order: -1; }
	/* Cases de 44 px : les etiquettes n'y tiennent pas. */
	.ivy-steps--calendrier :is( .ivy-steps__day-label, .ivy-steps__day-chip ) { display: none; }
}
