/* ===== HERO ===== */

.hero {
    width:100%;
    display:flex;
    align-items:center;
    justify-content: center;
    flex-direction:column;
    padding:50px 0px;
}

.hero .hero-slogan {
    display:flex;
    flex-direction: column;
    text-transform: uppercase;
}

.hero .hero-slogan .more-than {
    font-size:42px;
}

.hero .hero-slogan .sport {
    font-size:100px;
    font-family:"Thunder";
    font-weight:700;
    margin-left:-3px;
}

/* NOS BELLES HISTOIRES */

.nos-belles-histoires-wrapper {
    height: 300vh; /* Hauteur pour le scroll */
    position: relative;
    margin-bottom: 80px;
}

.nos-belles-histoires {
    position: sticky;
    top: 20vh; /* Centré verticalement (100vh - 60vh) / 2 */
    height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.nos-belles-histoires--with-bg {
    height: 80vh;
    top: 10vh;
    padding: 60px 0;
    box-sizing: border-box;
}

.nos-belles-histoires--with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/LogoMono.svg');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

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

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

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

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

/* Desktop : comportement carousel scroll (comme bh-engagement) */
@media (min-width: 1200px) {
    .nbh-carousel {
        display: flex;
        flex-direction: row;
        gap: 30px;
        transform: translateY(50px);
        overflow: visible !important;
        position: static !important;
    }

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

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

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

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

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

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

/* Cacher la pagination en desktop */
.nbh-pagination,
.nbh-all-pagination {
    display: none;
}

/* Mobile : comportement Swiper */
@media (max-width: 1199px) {
    .nbh-carousel {
        transform: none;
    }
}

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

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

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

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

.nbh-card .nbh-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;
}

.nbh-card .nbh-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;
}

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

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

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

.nbh-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;
    max-width: calc(100% - 40px);
}

.swiper-slide img.nbh-engagement-logo {
    height: 20px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

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

.nbh-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;
}

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

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

/* ===== MISSION ===== */

.mission {
    height:80vh;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mission-title {
    font-size:58px;
    text-transform: uppercase;
    margin-bottom:20px;
}

.mission-desc {
    font-size:24px;
    width:75%;
    text-align: center;
}

/* ===== ENGAGEMENTS ===== */

.engagements {
    padding:0px 80px;
}

.engagements-title {
    font-family:'Thunder';
    font-weight:700;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    width: 100%;
}

.engagements-cards {
    position: relative;
    height: 700px;
    gap: 20px;
}

.engagement-card {
    position: absolute;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 40px;
}

.engagement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image);
    background-size: auto max(50%, 300px);
    background-position: 95% 103%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.engagement-card.active::before {
    opacity: 0.1;
}

.engagement-card.active {
    justify-content: space-between;
}

.engagement-logo {
    height:160px;
}

.engagement-title {
    font-size:48px;
    font-weight:800;
    text-transform: uppercase;
    text-align: center;
}

.engagement-separator {
    height:2px;
    width:100px;
}

.engagement-subtitle {
    font-size:24px;
    transition:0.3s ease-in-out padding;
    text-align: center;
}

.engagement-card .engagement-content-container {
    opacity:0;
    display:none;
    transition:0.3s ease-in-out opacity;
    transition-delay: 500ms;
    padding-bottom:40px;
}

.engagement-card.active .engagement-content-container {
    opacity:1;
    display:flex;
    flex-direction: column;
    align-items: center;
    gap:30px;
}

.engagement-hero {
    display:flex;
    flex-direction: column;
    align-items: center;
    gap:20px;
}

.engagement-card.active .engagement-hero {
    padding-top:50px;
}

.engagements-btn {
    position:relative;
    z-index:10;
    font-size:32px;
    padding:2px 14px 6px 14px;
    border-radius:5px;
    font-weight:700;
    transition:0.3s ease-in-out transform;
}

.engagements-btn:hover {
    transform: scale(1.1);
}

/* Carte logo */
.engagement-card-logo {
    cursor: default;
}

.engagement-card-logo::before {
    display: none;
}

.engagement-card-logo-img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

/* DON */

.donation {
    display:flex;
    justify-content: center;
    align-items: center;
    margin:200px 0px;
}

.donation-container {
    display: flex;
    flex-direction: column;
    gap:30px;
    align-items:center;
    justify-content: center;
    position: relative;
}

.donation-heart {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.donation-container:hover .donation-bg {
    transform: scale(1.05);
}

.donation-bg {
    height:33vw;
    max-height:430px;
    max-width:430px;
    width:33vw;
    border-radius:100%;
    background-color: #801B2D;
    display: flex;
    align-items:center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

.donation-title {
    font-size: 60px;
    font-family:"Thunder";
    text-transform: uppercase;
    color: #801B2D;
}

.donation-logo {
    height:50%;
    transform:translateY(5%)
}

/* ===== HISTOIRE ===== */

.history {
    display:flex;
    flex-direction: column;
    align-items: center;
    padding:80px;
    position: relative;
}

.history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../assets/images/LogoSlogan.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    opacity: 0.04;
    pointer-events: none;
}

.history-title {
    font-size:24px;
    font-weight:700;
    text-transform: uppercase;
}

.history-maintext {
    font-size:62px;
    font-weight:400;
    padding:10px 15% 36px 15%;
    text-align: center;
}

.history-secondtext {
    font-size:20px;
    font-weight:400;
    padding:0px 25% 20px 25%;
    text-align: center;
}

/* ===== TEAM ===== */

.team {
    display: flex;
    flex-direction: column;
    gap:10%;
    padding: 200px 80px;;
}

.team-content {
    display:flex;
    flex-direction: row;
    width:100%;
    justify-content: space-between;
    align-items:center;
}

.team-members {
    width:60%;
    display:flex;
    flex-direction: column;
    gap:20px;
}

.team-title {
    font-size:50px;
    font-weight:700;
    text-transform: uppercase;
    margin-bottom:30px;
    margin-left:40%;
}

.team-members-member {
    display: flex;
    flex-direction: row;
    gap:20px;
    perspective: 1000px;
}

.team-member-photos {
    position: relative;
    min-width:calc(25vw - 160px);
    max-width:340px;
    min-height:calc(25vw - 160px);
    max-height:340px;
    border-radius:30px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.team-member-photo,
.team-member-photo-sport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.team-member-photo-sport {
    opacity: 0;
}

.team-member-photos:hover .team-member-photo {
    opacity: 0;
}

.team-member-photos:hover .team-member-photo-sport {
    opacity: 1;
}

.team-member-name {
    font-weight:800;
    font-size:24px;
}

.team-member-description {
    font-size:18px;
    padding:20px 0px;
}

.team-member-role {
    font-size:20px;
}

.team-left-content {
    width:33%;
}

.team-member-info {
    display: flex;
    flex-direction: column;
}

.team-description {
    font-size:32px;
    margin-bottom:35px;
}

.team-button {
    padding:3px 14px 6px 14px;
    font-size:24px;
    width:fit-content;
}

.team-member-quote {
    position: relative;
    font-size:24px;
    text-align: center;
    border-radius:20px;
    padding:20px;
    overflow:hidden;
    margin-bottom:5px;
    display:flex;
    flex:1;
    align-items:center;
    justify-content: center;
    margin-top:20px;
}

.team-member-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/LogoMono.svg');
    background-repeat: repeat;
    background-size: 28px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* ===== SLIDER ===== */

.slider {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: calc((100vh - 220px - 20px) / 2) calc((100vh - 220px - 20px) / 2);
    gap: 20px;
    padding: 0px 80px;
    box-sizing: border-box;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.swiper {
    width: 100%;
    height: 100%;
    grid-row: span 2;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination {
    position: absolute;
    bottom:20px !important;
}

.swiper-pagination-bullet {
    height:10px !important;
    width: 10px !important;
    background-color:#fff !important; 
    opacity:40% !important;
}

.swiper-pagination-bullet-active {
    width:40px !important;
    height:10px !important;
    border-radius: 30px !important;
    opacity: 100% !important;
}

/* ===== RESPONSIVE GÉNÉRAL ===== */
@media (max-width: 1199px) {

    /* Typographie */
    .nbh-content .nbh-title,
    .mission-title {
        font-size: 42px;
        line-height:1;
    }

    .nbh-card-title,
    .mission-desc,
    .engagement-subtitle,
    .history-title,
    .team-member-name,
    .team-button,
    .team-member-quote {
        font-size: 20px;
    }

    .nbh-content .nbh-desc,
    .nbh-card-subtitle,
    .team-member-description {
        font-size: 16px;
    }

    /* NOS BELLES HISTOIRES - Slider */
    .nos-belles-histoires-wrapper {
        height: auto;
        margin-bottom: 100px;
    }

    .nos-belles-histoires {
        position: relative;
        top: 0;
        height: auto;
        display: block;
        overflow: visible;
        padding: 80px 0;
        padding-top:40px;
    }

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

    .nbh-content {
        width: 100%;
        min-width: unset;
        text-align: center;
        align-items: center;
        padding: 0 20px;
    }

    .nbh-carousel.swiper {
        transform: none;
        gap: 0;
        overflow-x: clip !important;
        overflow-y: visible !important;
        display: block;
        height: auto;
    }

    .nbh-card {
        width: 80vw !important;
        transform: none !important;
        flex-shrink: 0;
        transition: none !important;
    }

    .nbh-card .nbh-img-container {
        height: 55vh;
    }

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

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

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

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

    /* Pagination pour belles-histoires-all (dots noirs) */
    .nbh-all-pagination {
        display: block;
        position: relative;
        margin-top: 20px;
    }

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

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

    .hero {
        padding:0px;
        padding-top:30px;
        padding-bottom:40px;
    }

    .hero .hero-slogan .more-than {
        font-size:24px;
    }

    .hero .hero-slogan .sport {
        font-size:58px;
    }
    .hero-welcome-p {
        font-size:10px;
    }
    .nbh-desc {
        justify-content: center !important;
    }
    .swiper-slide img.nbh-engagement-logo {
        height: 20px;
        width: auto;
        max-width: 40px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .nbh-linked-engagement {
        bottom:10px;
    }
    .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
        bottom: -50px !important;
        top:unset !important;
    }
    .mission {
        height:auto;
        margin:120px 0px;
        padding:0 20px;
    }
    .engagements {
        padding:0 20px;
    }

    /* ENGAGEMENTS - Grille 2x3 */
    .engagements-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(3, auto) !important;
        gap: 15px !important;
        height: auto !important;
        position: relative !important;
    }

    .engagement-card {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
        padding: 20px !important;
    }

    .engagement-card-logo {
        display: none !important;
    }

    .engagement-card .engagement-hero {
        padding-top: 0 !important;
    }

    .engagement-card .engagement-content-container {
        opacity: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding-bottom: 0 !important;
    }

    .engagement-card .engagement-separator {
        width: 60px !important;
    }

    .engagement-card .engagement-subtitle {
        opacity: 1 !important;
        transform: none !important;
        font-size: 14px !important;
    }

    .engagement-card .engagements-btn {
        opacity: 1 !important;
        font-size: 18px !important;
        padding: 2px 10px 4px 10px !important;
    }

    .engagement-logo {
        height: 80px !important;
    }

    .engagement-title {
        font-size: 24px !important;
    }
    .history-maintext {
        font-size: 20px;
        padding:20px 0px;
    }
    .history {
        padding: 0 20px;
    }
    .history-secondtext {
        padding:0px;
        padding-bottom:20px;
    }
    .history-title {
        font-size: 24px;
        line-height: 1;
        text-align: center;
    }
    .donation-bg {
        width:75vw;
        height:75vw;
    }
    .donation-heart {
        top:40%;
    }

    /* TEAM */
    .team {
        padding: 140px 20px;
        gap: 20px;
    }

    .team-title {
        font-size: 32px;
        margin-left: 0;
        margin-bottom: 0px;
        text-align: center;
    }

    .team-content {
        flex-direction: column;
        gap: 30px;
    }

    .team-left-content {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .team-description {
        font-size: 18px;
        margin-bottom: 25px;
        justify-content: center !important;
    }

    .team-members {
        width: 100%;
    }

    .team-members-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-member-photos {
        min-width: unset;
        max-width: 100%;
        min-height: unset;
        max-height: unset;
        width: 100%;
        height: 250px;
        border-radius: 20px;
    }

    .team-member-info {
        align-items: center;
    }

    .team-member-description {
        padding: 15px 0;
    }

    .team-member-quote {
        font-size: 16px;
        padding: 15px;
    }

    .team-button {
        font-size: 18px;
    }

    /* SLIDER */
    .slider {
        display: block;
        padding: 0 20px;
    }

    .slider-img {
        display: none;
    }

    .hero-slider.swiper {
        width: 100%;
        height: 60vh;
        border-radius: 20px;
    }

    .hero-slider .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .hero-slider .swiper-pagination {
        bottom: 20px !important;
    }
    .body {
        padding-top:60px;
    }
    .engagement-separator {
        margin-top:20px;
    }
}

