:root{
    --viewport-height: 100vh;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
     overflow: hidden; /*Désactive le défilement horizontal */

}

.header, .footer {
    /*position: fixed;
    left: 0;*/
    width: 100%;
    height: 50px;
    background-color: rgb(8, 8, 51);
    /*z-index: 100;*/
}

/*
.header {
    top: 0;
}*/

.footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.wrapper {
    min-height: 100dvh;
    /*overflow: hidden; /* Empêche le défilement vertical */
}

.container {
    position: relative;
    /*top : 50px; /* Ajustez pour l'en-tête */
    width: 100%;
    /*padding: 60px 0; /* Ajustez pour laisser de l'espace pour le header et le footer */
    /*height: calc(100vh); /* - 100px); /* Ajustez pour laisser de l'espace pour le header et le footer */
    overflow-y: scroll;
    overflow-x: hidden;
    margin-bottom: 50px; /* Ajoutez un espace en bas pour la dernière carte */
    box-sizing: content-box; /* Assurez-vous que le padding est inclus dans la hauteur totale */

}

.HorizontalSplit{
    display: flex;
    flex-direction: row;
}

.VerticalSplit{
    display: flex;
    flex-direction: column;
}

h1{
    font-size: 18px;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.intro{
    padding: 10px;
    box-sizing: content-box; /* Assurez-vous que le padding est inclus dans la hauteur totale */
}

.chrono-arrow {
    position: absolute;
    left: 30px;
    /*top: 50px; /* Ajustez pour l'en-tête */
    /*bottom: 50px; /* Ajustez pour le pied de page */
    width: 10px;
    background-color: #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Permet le défilement à travers la barre */
}


.chrono-arrow .chrono-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
}

.timeline {
    position: relative;
    width: calc(100% - 60px); /* Ajuste la largeur pour laisser de l'espace pour la flèche */
    margin-left: 60px;
    height: 100%;
    padding: 0 20px;
}

.event {
    position: absolute;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 50%;
}

.event.active {
    transform: scale(1.3);
    border: 2px solid #007BFF;
    background-color: #f0f8ff;
    z-index: 10; /* Assurez-vous que cet élément est au-dessus des autres */
    position: relative; /* Nécessaire pour que z-index fonctionne */
    margin-left: 60px;
}

/*Carte de detail*/
.event-date {
    font-weight: bold;
    margin-bottom: 10px;
}

.event-description {
    color: #555;
}

.detail-button{
    background-color: rgb(8, 8, 51, 0.7);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.HorizontalSplit.event-badge{
    width: 100%;
    flex-direction: row-reverse;
    gap: 5px;
}

.event-badge{
    width:24px;
    height:24px;
}

.event-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-detail.visible {
    opacity: 1;
}

.event-detail-content {
    position: relative;
    width: 90%;
    height: 90%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
}

/*Carousel Horizontal*/
.event-detail-carousel {
    /*display: flex;
    overflow-x: hiden;
    height: 100%;*/
    height: 100%;
    width: 100%;
    position: relative;    
    /*padding: 50px;
    box-sizing: border-box;*/

}

.event-detail-item  {
    position: absolute;
    top: 0; 
    left: 0; 
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: 0.4s ease-in-out;
    padding : 70px;
    box-sizing: border-box;
    align-content: center;
    display: flex; /* Utilisez Flexbox pour centrer le contenu */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
}

.event-detail-item.active {
    opacity: 1;
}

.event-detail-item.photo img{
    max-width: 100%;
    max-height: 100%;
}

.event-detail-item.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
}

.event-detail-item.detailTravail {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    max-width: 100%;
    max-height: 100%;
}

/*
.event-detail-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}*/

/*
.event-detail-item img {
    max-width: 100%;
    max-height: 80%;
    border-radius: 10px;
}

.event-detail-item p {
    text-align: center;
    margin-top: 20px;
}*/

.arrow-button{
    /*left: 30px;*/
    bottom: 60px;
    position: fixed;
    z-index: 100; /* Ensure the buttons are above other content */
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 50%;
}

.arrow-button.up {
    /*left: 100px;*/
    left: calc(50% - 50px);
}

.arrow-button.down {
   /* right: 100px;*/
    right: calc(50% - 50px);
}

.arrow-button.up.speed {
    /*left: 50px;*/
    left: calc(50% - 100px);
}

.arrow-button.down.speed {
    /*right: 50px;*/
    right: calc(50% - 100px);
}


.slide-button{
    position: absolute;
    z-index: 100; /* Ensure the buttons are above other content */
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    font-size : 30px;
    animation: upAndDown 2s alternate infinite;
}

.slide-button.left {
    left: 20px;
    top: 50%;
    rotate: 90deg;
}

.slide-button.right {
    right: 20px;
    top: 50%;
    rotate: 270deg;
}

svg polyline {
    stroke-width: 5;
  }
  

/*Element bouton filter */
 
.HideIconButton {
    background-color: transparent;
    /*border: none;*/
    cursor: pointer;
    padding: 0px;
    margin: 0px;
    width: 34px;
    height: 34px;

}

.HideIconButton:hover {
    animation: upAndDown 0.3s alternate infinite;
    border: 1px solid #007BFF;
    border-radius: 50%;
    /*rotate: 45deg;*/    
}

.HideIcon{

    width: 30px; 
    height: 30px;
}

@keyframes upAndDown {
    0% {
        transform: translateY(3px);       
    }
    100% {
        transform: translateY(-3px);
    }
}

.HideIconInverse{
    rotate: 180deg;
}

.hidden {
    display: none;
}

/* Styles pour les écrans supérieurs à 800px (PC)*/
@media (min-width: 600px) {

    .event {
        width: 30%;
        max-width: 400px;
        margin: 10px auto;
    }

    
    .event.active {
        left: 50px;
    }

}