.psm_concert_sticky {
    position: sticky;
    top: 0;
    width: 350px;
    border-radius: 12px;
    text-align: center;
    padding-top: 70px;
    /* offset height */
    margin-top: -40px;
    /* pulls element up */

}

.psm_concert_sticky .psm_reserver {
    margin: 1rem 0;
    text-align: left;
}

.psm_concert_sticky_container {
    width: 350px;
    position: relative;
    transition: padding-top 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* .is-sticky .psm_concert_sticky_container {
    padding-top: 75px;
} */

.psm_concert_sticky h3,
.psm_concert_sticky p {
    margin: 0;
}

.psm_concert_sticky_header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    z-index: 2;
}

.psm_concert_sticky_date {
    background-color: var(--wp--preset--color--creme);
    color: black;
    padding: 1rem;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-top: 1px solid var(--wp--preset--color--creme);
}

.psm_concert_sticky_adresse {
    background-color: var(--wp--preset--color--creme-light);
    color: black;
    padding: 1rem;
    border-bottom: 1px solid var(--wp--preset--color--creme);
}

.psm_concert_sticky_content {
    background-color: var(--wp--preset--color--creme-light);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.psm_concert_sticky_content .wp-block-button__link {
    text-align: left;
}

.psm_concert_sticky_footer {
    background-color: var(--wp--preset--color--creme-light);
    padding: 1rem;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Sharing icons styles */
.psm_concert_sticky_footer_share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0 1rem 0;
}

.psm-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--bleu, #2c5282);
    color: white;
    transition: all 0.3s ease;
}

.psm-share-link:hover {
    background-color: var(--wp--preset--color--bordeaux, #9a2945);
    transform: translateY(-2px);
}

.psm-share-link .dashicons {
    width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 24px;
}

.psm_concert_sticky_title {
    margin: 0;
}

/* .psm_concert_sticky_title {
    position: absolute;
    z-index: 1;
    top: 0;
    padding: 0;
} */
/* .psm_concert_sticky_title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: top 0.3s ease;
    z-index: 1;
} */



/* Add a wrapper container that changes height */
.psm_concert_sticky_title-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.is-sticky .psm_concert_sticky_title-wrapper {
    max-height: 1000px;
}

.psm_concert_sticky_photo {
    position: relative;
    z-index: 2;
}

.psm_concert_sticky_photo_img {
    width: 100%;
    border-radius: 6px;
}

/* Style for the sentinel element */
.sticky-sentinel {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    top: -1px;
    z-index: -1;
    visibility: hidden;
    pointer-events: none;
}

/* --- Bouton "Ajouter au calendrier" (extension Add to Calendar Button) --- */
/* Pleine largeur et alignement sur le design system des boutons du site. */
.psm_concert_sticky_content add-to-calendar-button {
    display: block;
    width: 100%;
}

.psm_concert_sticky_content add-to-calendar-button::part(atcb-button-wrapper) {
    width: 100%;
}

.psm_concert_sticky_content add-to-calendar-button::part(atcb-button) {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    justify-content: center;
    font-family: var(--wp--preset--font-family--antonio);
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: var(--wp--preset--color--bordeaux);
    box-shadow: none;
    transition: all 0.3s ease;
}

.psm_concert_sticky_content add-to-calendar-button::part(atcb-button):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(154, 41, 69, 0.3);
}

/* Couleur selon la region (bleu Paris / orange province), comme le bouton Google Maps */
.psm_concert_sticky_content.psm_btn_bleu add-to-calendar-button::part(atcb-button) {
    background-color: var(--wp--preset--color--bleu);
}

.psm_concert_sticky_content.psm_btn_bleu add-to-calendar-button::part(atcb-button):hover {
    box-shadow: 0 6px 12px var(--wp--preset--color--bleu-light);
}

.psm_concert_sticky_content.psm_btn_orange add-to-calendar-button::part(atcb-button) {
    background-color: var(--wp--preset--color--orange);
}

.psm_concert_sticky_content.psm_btn_orange add-to-calendar-button::part(atcb-button):hover {
    box-shadow: 0 6px 12px var(--wp--preset--color--orange-light);
}
