h1 {
    font-size: 3.5rem;
    line-height: 3.5rem;
    margin-bottom: 20px;
}

.heart-icon {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23b40023' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    color: transparent;
    font-size: inherit;
    line-height: 1;
    transform: translateY(10px);
}

.front-page-hero-section {
    width: 100%;
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    margin-top: -140px;
}

.front-page-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 50%;
    background-color: var(--dark-blue-color);
    mix-blend-mode: multiply;
    z-index: 0;
}

.front-page-hero-section .hero-content {
    max-width: 1400px;
    padding: 0 25px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.front-page-hero-section .container {
    max-width: 575px;
    display: flex;
    flex-direction: column;
    padding: 300px 50px 200px 25px;
    height: 100%;
    background-color: white;
    color: var(--dark-blue-color);
}

.front-page-hero-section a {
    padding: 6px 16px;
    background-color: var(--red-site);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 20px;
    width: max-content;
}



/***** Countdown ******/

.section-event {
    background-color: var(--dark-blue-color);
    width: 100%;
    display: grid;
    position: relative;
}

.container-event {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
    .container-event {
        grid-template-columns: 1fr;
    }
}

.section-event .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}

.section-event h2 {
    color: white;
}

.event-title {
    color: var(--dark-blue-color) !important;
}

.event-item {
    background-color: white;
    color: var(--dark-blue-color);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    max-width: 670px;
}

.event-item>div {
    width: 50%;
}

.event-image {
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-in-out;
}


.info-event {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 25px;
}

.event-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Nombre de lignes max */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Ajoute "..." à la fin */
}


.event-item:hover .event-image img {
    transform: scale(1.1);
}


#countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    color: white;
}

.time-segment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: var(--dark-blue-color);
    border: 2px solid var(--yellow-site);
    border-radius: 15px;
    padding: 12px;
    font-size: 0.875rem;
    position: relative;
}

.time-segment:first-child {
    border-color: var(--red-site);
}

.time-segment:first-child .time-value {
    color: var(--red-site);
}

.time-segment:not(:last-child)::before {
    content: "";
    position: absolute;
    top: calc(50% - 10px);
    right: -10px;
    width: 10px;
    height: 10px;
    transform: translate(100%, -50%);
    border-radius: 999px;
    background-color: white;
}

.time-segment:not(:last-child):after {
    content: "";
    position: absolute;
    top: calc(50% + 10px);
    right: -10px;
    width: 10px;
    height: 10px;
    transform: translate(100%, -50%);
    border-radius: 999px;
    background-color: white;
}

.time-value {
    font-size: 3rem;
    font-weight: 900;
    line-height: 3rem;
}


@media (max-width: 590px) {
    #countdown-timer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    #countdown-timer .time-segment:nth-of-type(2)::before,
    #countdown-timer .time-segment:nth-of-type(2)::after {
        display: none;
    }

    .section-event .container {
        padding-left: 0;
        padding-right: 0;
    }

    .vague {
        display: none;
    }
}






@media (min-width: 1025px) {
    .container-event .container-article h2.titre-section-event {
        display: none;
    }

}

@media (max-width: 1024px) {
    .container-event .container h2.titre-section-event {
        display: none;
    }

}


/*************************************/

.flashback-event {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 125px 25px 50px 25px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px
}

.flashback-text-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
}

.flashback-content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}



/***** Articles Section *****/

.articles-section {
    background: linear-gradient(0deg, var(--light-blue-color) 50%, white 50%);
    width: 100%;
    padding: 60px 0;
    position: relative;
}

.container-articles-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 125px 25px 50px 25px;
    position: relative;
}

.titre_accueil {
    text-transform: uppercase;
    padding: 5px 15px;
    width: max-content;
}

.titre_accueil.light-blue {
    background-color: var(--light-blue-color);
    color: var(--dark-blue-color);
}

.titre_accueil.yellow {
    background-color: var(--yellow-site);
    color: var(--dark-blue-color);
}

/*****************************************/
/*************** SWIPER ******************/
/*****************************************/

/* On retire la grille, Swiper gère le layout */
.swiper {
    width: 100%;
    padding: 10px !important;
    padding-bottom: 25px !important;
    transform: translateX(-10px);
}

.myProjetSwiperHomePage .swiper-wrapper {
    align-items: stretch;
}

.myProjetSwiperHomePage .swiper-slide {
    height: auto;
    display: flex;
    /* Important pour que l'enfant (<a>) puisse prendre 100% */
}

.swiper-slide a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    /* Ajouté pour forcer la carte à prendre toute la hauteur de la slide */
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.swiper-slide-container-image {
    width: 100%;
    height: 275px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.swiper-slide-container-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 39, 49, 0.7);
    mix-blend-mode: multiply;
    z-index: 1;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.swiper-slide-container-image svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    z-index: 2;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.swiper-slide:hover .swiper-slide-container-image::before,
.swiper-slide:hover .swiper-slide-container-image svg {
    opacity: 1;
}

.image_slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-in-out;
}

.swiper-slide:hover .image_slide {
    transform: scale(1.1);
}

.category-title span {
    padding-bottom: -3px;
    transition: all 300ms ease-in-out 0ms;
    background-image: linear-gradient(transparent calc(100% - 3px), #FFC316 0.09em);
    background-repeat: no-repeat;
    background-size: 0 100%;
    text-decoration: none;
    font-size: 28px;
    line-height: 20px;

}

.swiper-slide:hover .category-title span {
    background-size: 100% 100%;
}

.swiper-slide-content {
    background-color: white;
    color: var(--dark-blue-color);
    padding: 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.excerpt {
    margin-top: 10px;
    margin-bottom: 25px;
}

.date-article {
    color: var(--light-blue-color);
    font-weight: 800;
    text-align: end;
}

.arrow-swiper-slide-content {
    position: absolute;
    bottom: 15px;
    left: 15px;
    transition: transform 300ms ease-in-out;
}




.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: url('/wp-content/uploads/2025/11/prev-arrow.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    top: auto !important;
    bottom: 0 !important;
    left: 25px !important;
}


.swiper-button-next {
    width: 50px !important;
    height: 50px !important;
    background: url('/wp-content/uploads/2025/11/next-arrow.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    top: auto !important;
    bottom: 0 !important;
    right: auto !important;
    left: 95px !important;
}

.btn-all-news {
    position: absolute;
    bottom: 0;
    left: calc(70px + 50px + 20px + 25px);
    height: 50px;
}



/***** Partenaires Section *****/
.partenaires-section {
    background: linear-gradient(0deg, var(--yellow-site) 50%, white 50%);
    width: 100%;
    padding: 60px 0;
    position: relative;
}

.container-partenaires-cles {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding: 60px 0;
}

.partenaire-item {
    width: 300px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.partenaire-item-img {
    width: 100%;
    height: 275px;
    overflow: hidden;
}

.partenaire-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partenaire-item-text {
    padding: 25px;
}