body {
    margin: 0;
    font-family: 'Hanken Grotesk', Arial, sans-serif;
    padding: 0;
    background-color: #D9D9D9;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.entête {
    background-color: #ffffff;
    width: 80%;
    padding: 20px;
    display: flex;
    flex-direction: row;
    height: 30px;
    border-radius: 10px;
    border: 2px solid rgb(207, 207, 207);
    max-width: 800px;
    margin-top: 40px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.contenu{
    width: 80%;
    max-width: 800px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.héro{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.héro-texte{
    text-align: center;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    margin-top: 20px;
}

.héro-texte-description{
    font-size: 18px;
    font-weight: 500;
    margin-top: -20px;
}


.héro-texte-futur{
color: red;    
}

.héro-video{
    background-color: #000000;
    border-radius: 10px;
    height: 377px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 100%;
}

.logo{
    display: flex;
    align-items: center;
}

.logo-texte{
    font-weight: 700;
    font-size: 34px;
    color: rgb(255, 0, 0);
    transition: 0.3s ease;
}

.logo-texte:hover{
    letter-spacing: 5px;
    transition: 0.3s ease;
    cursor: pointer;
}

.onglets{
    display: flex;
    flex-direction: row;
    gap: 5px;
    height: 40px;
}

.onglet{
    text-decoration: none; 
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 3px;
    padding: 20px 10px;
    transition: 0.3s ease;
}

.onglet:hover{
    background-color: #D9D9D9;
    border-radius: 10px;
    transition: 0.3s ease;
    cursor: pointer;
}

.onglet.selected {
    background-color: #D9D9D9;
    border-radius: 10px;
}

.onglet-texte{
    font-size: 18px;
    font-weight: 700;
}

.menu-mobile {
    display: none;
    padding: 10px;
    transition: 0.3s ease;
}

/* Add new styles for menu morphing */
.menu-mobile svg path {
    transition: all 0.5s ease;
    transform-origin: center;
}

.menu-path-2 {
    transition: opacity 0.3s ease;
}

.menu-mobile:hover {
    background-color: #D9D9D9;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Hide regular tabs and show mobile menu on phones */
@media screen and (max-width: 768px) {
    .onglets {
        display: none;
    }

    .menu-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .entête{
        width: 80%;
        margin-top: 13px;
    }

    .héro-video{
        height: 300px;
    }
}


.menu-mobile-overlay{
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    height: calc(100vh - 132px - env(safe-area-inset-top));
    top: 111px;
    background-color: #ffffff;
    width: calc(80% + 40px);
    border-radius: 10px;
    border: 2px solid rgb(207, 207, 207);
    animation: slideFromRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateX(100%);
    opacity: 0;
    z-index: 1000;
}

.menu-mobile-overlay.closing {
    animation: slideToRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.onglets-mobile-special {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center
}

.onglets-mobile-special > * {
    padding: 0px 0px !important;
}

.programme{
    width: 100%;
    margin-top: 30px;;
    height: 470px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.présentation{
    width: 80%;
    margin-top: 10px
}

.évenements{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.évenements-liste {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.évenement {
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.évenement:hover{
    cursor: pointer;
    transform: scale(1.05);
    transition: 0.3s ease;
}

.évenement-voir-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 100px;
    padding: 10px;
    margin-top: -70px;
    transition: 0.3s ease;
}

.évenement-voir-plus:hover{
    cursor: pointer;
    transition: 0.3s ease;
    transform: scale(1.05);
}

.évenement-texte{
    font-size: 18px;
    font-weight: 700;
}

.évenement-image{
    width: 200px;
    border-radius: 10px;
}

.évenement-date{
    font-size: 14px;
    font-weight: 500;
    margin-top: -10px;
}

.projets{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}   

.projets-liste{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
}

.projet{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: 0.3s ease;
}

.projet:hover{
    cursor: pointer;
    transform: scale(1.05);
    transition: 0.3s ease;

}

.projet-image{
    width: 300px;
    border-radius: 10px;
}

.projet-texte{
    font-size: 18px;
    font-weight: 700;
}

.projet-description{
    font-size: 14px;
    font-weight: 500;
    margin-top: -10px;
}


.partenaires{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}   

.partenaires-liste{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
} 

.partenaire-image{
    width: 100px;
    border-radius: 10px;
    transition: 0.3s ease;
}

.partenaire-image:hover{
    cursor: pointer;
    transform: scale(1.05);
    transition: 0.3s ease;
}

.programme-texte, .évenements-texte, .projets-texte, .partenaires-texte{
    font-size: 24px;
    font-weight: 700;
}

.programme-calendrier{
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

@keyframes slideFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;

    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
}

.bento-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.bento-box.animate:hover {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.box-large {
    grid-column: span 2;
    grid-row: span 2;
}

.box-medium {
    grid-column: span 2;
}

.box-wide {
    grid-column: span 4;
}


.box-small {
    grid-column: span 1;
}

.box-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.box-wide {
    grid-column: span 3;
}

.box-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.box-content h2, .box-content h3 {
    margin: 0 0 10px 0;
}

.box-content p {
    margin: 0;
    color: #666;
}

.list-reseaux{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.3s ease;
    padding-bottom: 9px;
}

.list-reseaux:hover{
    cursor: pointer;
    transform: scale(1.05);
    transition: 0.3s ease;
    color: rgb(255, 0, 0);
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .box-large, .box-medium, .box-wide, .box-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .évenements-liste {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 20px 0;
        margin: 0 -20px;
        padding-left: 20px;
    }
    
    .évenements-liste::-webkit-scrollbar {
        display: none;
    }
    
    .évenement {
        scroll-snap-align: start;
        flex: 0 0 auto;
        width: 200px;
    }

    .évenement:hover {
        transform: none;
        cursor: default;
    }

    .évenement-voir-plus {
        position: sticky;
        right: 20px;
        margin-right: 20px;
        flex-shrink: 0;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }


    .box-image{
        width: 80% !important;
        height: 80% !important;
        object-fit:scale-down
    }

    .bento-box{
        max-height: 350px;
    }
}


.list-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pied-de-page{
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.article {
    width: 100%;
    max-width: 800px;
    padding: 30px;
    margin-bottom: 40px;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.article-titre {
    font-size: 36px;
    font-weight: 900;
    color: #000000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.article-date {
    font-size: 18px;
    color: #666666;
    margin: 0 0 30px 0;
    font-weight: 500;
}

.article-texte {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
}

.article-texte p {
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .article {
        padding: 20px;
    }

    .article-titre {
        font-size: 28px;
    }

    .article-date {
        font-size: 16px;
    }

    .article-texte {
        font-size: 16px;
    }
}

.evenements-intro {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.evenements-intro h1 {
    font-size: 36px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.evenements-intro p {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 15px;
}

.evenements-intro a {
    color: rgb(255, 0, 0);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.evenements-intro a:hover {
    text-decoration: underline;
}

.evenements-grid {
    display: flex;
    justify-content: center; /* Horizontally centers the children */
    align-items: center; /* Vertically centers the children */
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
    gap: 20px; /* Provides spacing between cards */
    min-height: 200px; /* Ensures the container has enough height for the loader */
}
.evenement-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgb(207, 207, 207);
}

.evenement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.evenement-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.evenement-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.evenement-card:hover .evenement-thumbnail img {
    transform: scale(1.05);
}

.evenement-info {
    padding: 15px;
}

.evenement-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #000000;
}

.evenement-date {
    font-size: 14px;
    color: #666666;
    margin: 0 0 10px 0;
}

.evenement-description {
    font-size: 16px;
    color: #333333;
    margin: 0;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .evenements-grid {
        grid-template-columns: 1fr;
    }

    .evenements-intro h1 {
        font-size: 28px;
    }

    .evenements-intro p {
        font-size: 16px;
    }
}

/* Styles for the "ÉVÉNEMENT" label */
.evenement-thumbnail {
    position: relative; /* Ensure proper positioning of children */
    /* Add other existing thumbnail styles here if any, e.g., overflow: hidden; */
}

.event-label {
    position: absolute;
    top: 10px; /* Distance from the top of the thumbnail */
    left: 10px; /* Distance from the left of the thumbnail */
    background-color: #FF0000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: 600;
    z-index: 10; /* Ensure it's above the image */
    display: block; /* Ensure it's always displayed */
}

/* Styles for the tags */
.evenement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
}

/* Loader container must be a direct child and take up full width to be centered */
.loader-container {
    display: flex; /* Makes the loader itself a flex container */
    justify-content: center; /* Centers the loader's spinner horizontally */
    align-items: center; /* Centers the loader's spinner vertically */
    width: 100%; /* Ensures it takes the full width of the parent grid */
}

.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #FF0000; /* Red */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}