/* ===== SINGLE ENGAGEMENT ===== */

.single-engagement {
    min-height: 100vh;
}

/* HERO */

.se-hero {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 80px;
    margin-top: 0px;
    margin-bottom:160px;
    padding:0px 80px;
    gap: 40px;
    background: transparent !important;
}

.se-hero::before {
    content: '';
    position: absolute;
    top: 6%;
    left: 0;
    right: 0;
    bottom: 6%;
    background-color: var(--primary-color);
    border-radius: 30px;
    z-index: -1;
}

.se-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 50%;
    z-index: 1;
}

.se-hero-logo {
    height: 120px;
}

.se-hero-title {
    font-size: 58px;
    font-weight: 800;
    text-transform: uppercase;
}

.se-hero-subtitle {
    font-size: 20px;
}

.se-hero-image-container {
    width: 50%;
    height: 60vh;
    border-radius: 30px;
    overflow: hidden;
    z-index: 1;
}

.se-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AXES */

.se-axes {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 80px;
    padding: 0 160px;
    margin: 160px 0px;
}

/* .se-axes::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('../assets/images/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
} */

.se-axe {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.se-axe:only-child {
    flex: none;
    max-width: 600px;
    margin: 0 auto;
}

.se-axe-title {
    font-size: 40px;
    font-weight: 800;
    text-align:center;
    text-transform: uppercase;
}

.se-axe-text {
    font-size: 20px;
    text-align: center;
}

/* STATS */

.se-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    padding: 0 160px;
    margin-bottom: 80px;
}

.se-stat {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 60px 30px 30px 30px;
    background-color: #0000000c;
    border-radius: 20px;
    position: relative;
    width:250px;
}

.se-stat-number {
    position: absolute;
    font-size: 80px;
    font-weight: 800;
    font-family: "Thunder";
    top:-15px;
    left:30px;
	line-height:1;
}

.se-stat-text {
    font-size: 18px;
}

/* DESCRIPTION */

.se-description {
    padding: 80px;
    display: flex;
    justify-content: center;
}

.se-description-content {
    max-width: 800px;
}

.se-description-text {
    font-size: 22px;
    line-height: 1.6;
    text-align: center;
}

/* BELLES HISTOIRES ENGAGEMENT */

.bh-engagement-wrapper {
    height: 300vh;
    position: relative;
    margin-bottom: 80px;
}

.bh-engagement {
    position: sticky;
    top: 20vh;
    height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bh-engagement-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10%;
    padding: 0 80px;
    will-change: transform;
}

.bh-engagement-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 400px;
    min-width: 400px;
    flex-shrink: 0;
}

.bh-engagement-content .bh-engagement-title {
    font-size: 58px;
    text-transform: uppercase;
}

.bh-engagement-content .bh-engagement-desc {
    font-size: 22px;
}

.bh-engagement-carousel {
    display: flex;
    flex-direction: row;
    gap: 30px;
    transform: translateY(50px);
    overflow: visible !important;
    position: static !important;
}

.bh-engagement-carousel.swiper {
    width: auto !important;
    height: auto !important;
}

.bh-engagement-carousel .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    transform: none !important;
    width: auto !important;
}

.bh-engagement-carousel .bh-engagement-card.swiper-slide {
    width: 15vw !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    transition: width 0.5s ease, transform 0.5s ease !important;
}

.bh-engagement-carousel .bh-engagement-card.swiper-slide.active {
    width: 50vw !important;
    transform: translateY(-50px) !important;
}

.bh-engagement-carousel .bh-engagement-card.swiper-slide .bh-engagement-card-info {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.bh-engagement-carousel .bh-engagement-card.swiper-slide.active .bh-engagement-card-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 500ms;
}

.bh-engagement-card {
    position: relative;
    flex-shrink: 0;
    width: 15vw;
    transition: width 0.5s ease, transform 0.5s ease;
}

.bh-engagement-card.active {
    width: 50vw;
    transform: translateY(-50px);
}

.bh-engagement-card .bh-engagement-img {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
}

.bh-engagement-card .bh-engagement-img-container {
    position: relative;
    width: 100%;
    height: 50vh;
    border-radius: 30px;
    overflow: hidden;
}

.bh-engagement-card .bh-engagement-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    border-radius: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

.bh-engagement-card .bh-engagement-card-info {
    opacity: 0;
    padding-top: 10px;
    transition-delay: 0ms;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.bh-engagement-card.active .bh-engagement-card-info {
    transition-delay: 500ms;
    opacity: 1;
    transform: translateY(0);
}

.bh-engagement-card-title {
    font-size: 24px;
    font-weight: 800;
}

.bh-engagement-card-subtitle {
    font-size: 18px;
}

.bh-engagement-linked-engagement {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

.bh-engagement-logo {
    height: 20px;
}

.bh-engagement-logo-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.bh-engagement-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--tooltip-bg, #333);
    color: var(--tooltip-color, #fff);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: 8px;
    z-index: 10;
}

.bh-engagement-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--tooltip-bg, #333);
}

.bh-engagement-logo-wrapper:hover .bh-engagement-tooltip {
    opacity: 1;
    visibility: visible;
}

/* DONATION */

.single-engagement .donation {
    margin-top: 0;
}

.single-engagement .donation.has-side-image {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 80px;
}

.single-engagement .donation.has-side-image .donation-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.single-engagement .donation.has-side-image .donation-heart {
    width: 20vw;
    max-width: 300px;
}

.single-engagement .donation-side-image {
    width: 50%;
    height: 70vh;
    border-radius: 30px;
    overflow: hidden;
}

.single-engagement .donation-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== RESPONSIVE ===== */

/* Tablette */
@media (max-width: 1024px) {
    .single-engagement .donation.has-side-image {
        gap: 50px;
        padding: 60px 40px;
    }

    .single-engagement .donation-side-image {
        height: 55vh;
    }

    .se-hero {
        margin: 40px;
        margin-top: 0;
        margin-bottom: 80px;
        padding: 0 40px;
        gap: 30px;
    }

    .se-hero-logo {
        height: 80px;
    }

    .se-hero-title {
        font-size: 42px;
    }

    .se-hero-subtitle {
        font-size: 18px;
    }

    .se-hero-image-container {
        height: 50vh;
    }

    .se-axes {
        gap: 50px;
        padding: 0 80px;
        margin-bottom: 80px;
    }

    .se-axe-title {
        font-size: 28px;
    }

    .se-axe-text {
        font-size: 16px;
    }

    .se-stats {
        gap: 20px;
        padding: 0 80px;
        margin-bottom: 60px;
    }

    .se-stat {
        width: 200px;
        padding: 50px 25px 25px 25px;
        gap: 10px;
    }

    .se-stat-number {
        font-size: 65px;
        top: -12px;
        left: 25px;
    }

    .se-stat-text {
        font-size: 15px;
    }

    .bh-engagement-content {
        width: 300px;
        min-width: 300px;
    }

    .bh-engagement-content .bh-engagement-title {
        font-size: 42px;
    }

    .bh-engagement-content .bh-engagement-desc {
        font-size: 18px;
    }

    .bh-engagement-track {
        padding: 0 40px;
    }

    .bh-engagement-carousel .bh-engagement-card.swiper-slide {
        width: 20vw !important;
    }

    .bh-engagement-carousel .bh-engagement-card.swiper-slide.active {
        width: 60vw !important;
    }
}

/* Cacher la pagination en desktop */
.bh-engagement-pagination {
    display: none;
}

/* Mobile paysage / petite tablette */
@media (max-width: 768px) {

    .single-engagement .donation.has-side-image {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }

    .single-engagement .donation.has-side-image .donation-container {
        width: 100%;
    }

    .single-engagement .donation-side-image {
        width: 100%;
        height: 50vh;
        border-radius: 20px;
    }

    .se-hero {
        flex-direction: column;
        margin: 20px;
        margin-top: 0;
        margin-bottom: 60px;
        padding: 40px 20px;
        gap: 30px;
    }

    .se-hero::before {
        top: 0;
        bottom: 20%;
        border-radius: 20px;
    }

    .se-hero-content {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .se-hero-logo {
        height: 70px;
    }

    .se-hero-title {
        font-size: 32px;
    }

    .se-hero-subtitle {
        font-size: 16px;
    }

    .se-hero-image-container {
        width: 100%;
        height: 40vh;
        border-radius: 20px;
    }

    .se-description {
        padding: 40px 20px;
    }

    .se-description-text {
        font-size: 18px;
    }

    .se-axes {
        flex-direction: column;
        gap: 40px;
        padding: 0 40px;
        margin-bottom: 60px;
    }

    .se-axe-title {
        font-size: 24px;
    }

    .se-axe-text {
        font-size: 16px;
    }

    .se-stats {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 20px;
        margin-bottom: 100px;
        margin-top:80px;
    }

    .se-stat {
        width: 100%;
        max-width: 300px;
        padding: 50px 25px 25px 25px;
        gap: 12px;
        border-radius: 15px;
    }

    .se-stat-number {
        font-size: 65px;
        top: -12px;
        left: 25px;
    }

    .se-stat-text {
        font-size: 15px;
        max-width: none;
        flex: 1;
    }

    /* Belles histoires - version slider Swiper pour mobile */
    .bh-engagement-wrapper {
        height: auto;
        margin-bottom: 40px;
    }

    .bh-engagement {
        position: relative;
        top: auto;
        height: auto;
        flex-direction: column;
        padding: 40px 20px;
    }

    .bh-engagement-track {
        flex-direction: column;
        gap: 30px;
        padding: 0;
        transform: none !important;
    }

    .bh-engagement-content {
        width: 100%;
        min-width: auto;
        text-align: center;
    }

    .bh-engagement-content .bh-engagement-title {
        font-size: 32px;
    }

    .bh-engagement-content .bh-engagement-desc {
        font-size: 16px;
    }

    .bh-engagement-carousel.swiper {
        transform: none;
        gap: 0;
        overflow-x: clip !important;
        overflow-y: visible !important;
        display: block;
        width: 100%;
        height: auto;
    }

    .bh-engagement-card {
        width: 80vw !important;
        transform: none !important;
    }

    .bh-engagement-card .bh-engagement-img-container {
        height: 55vh;
        border-radius: 20px;
    }

    .bh-engagement-card .bh-engagement-card-info {
        opacity: 1;
        transform: none;
    }

    .bh-engagement-card-title {
        font-size: 20px;
    }

    .bh-engagement-card-subtitle {
        font-size: 16px;
    }

    .bh-engagement-pagination {
        display: block;
        position: relative;
        margin-top: 20px;
    }

    .bh-engagement-pagination .swiper-pagination-bullet {
        height: 10px !important;
        width: 10px !important;
        background-color: #000 !important;
        opacity: 0.3 !important;
    }

    .bh-engagement-pagination .swiper-pagination-bullet-active {
        width: 40px !important;
        border-radius: 30px !important;
        opacity: 1 !important;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .se-hero {
        margin: 15px;
        padding: 30px 15px;
        margin-top: 30px;
    }

    .se-hero-logo {
        height: 60px;
    }

    .se-hero-title {
        font-size: 26px;
    }

    .se-hero-subtitle {
        font-size: 14px;
    }

    .se-hero-image-container {
        height: 35vh;
    }

    .se-description {
        padding: 30px 15px;
    }

    .se-description-text {
        font-size: 16px;
    }

    .bh-engagement {
        padding: 30px 15px;
    }

    .bh-engagement-content .bh-engagement-title {
        font-size: 26px;
    }

    .bh-engagement-card .bh-engagement-img-container {
        height: 30vh;
    }

    .se-axes {
        padding: 0 20px;
        margin-bottom: 40px;
        gap: 30px;
    }

    .se-axe-title {
        font-size: 22px;
    }

    .se-axe-text {
        font-size: 14px;
    }

    .se-stats {
        gap: 30px;
        padding: 0 15px;
    }

    .se-stat {
        width: 100%;
        max-width: 280px;
        padding: 50px 20px 20px 20px;
        gap: 10px;
        border-radius: 12px;
    }

    .se-stat-number {
        font-size: 60px;
        top: -10px;
        left: 20px;
    }

    .se-stat-text {
        font-size: 14px;
    }

    .donation {
        margin-bottom:60px !important;
    }
}
