body{
    background-color: #DFF2FF;
    color: black;
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Slabo 27px", serif;
 
}
.page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;  
    margin: 0;  
    padding: 0;
}
.entete{
    width: 100%;
}

.haut {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center; 
    gap: 5%;
    margin-top: 70%;
    margin-bottom: 10%;
    width: 100%;
}
.pied{
    height: 20%;
    width: 100%;
}

.slabo-27px-regular {
    font-family: "Slabo 27px", serif;
    font-weight: 400;
    font-style: normal;
  }



.footer-bar {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    padding: 0 20px;
    flex-wrap: wrap;
    text-align: center;    
}

.footer-section {
    margin: 10px;
    text-align: left;
}

.footer-section.about {
    flex: 1; 
}

.footer-right {
    display: flex;
    flex-direction: row; 
    gap: 75px; 
    align-items: flex-start;
    margin-top: 50px;
    margin-right: 20px;
}

.footer-section.links, .footer-section.contact {
    text-align: center;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-section p, .footer-section ul {
    font-size: 14px;
}
.footer-section.links ul{
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    background-color: #1B0CBD;
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

.logo {
    width: 150px;
    height: 150px;
}

.insta, .face, .twit {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

footer {
    background-color: #839aff;
    color: #fff;
    padding: 20px 0;
    width: 100%;
    position: relative;
    text-align: center; 
}


/* Navbar */
nav {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: transparent;
    z-index: 100;
    transition: all 0.6s ease;
    display: flex;
    justify-content:end;
    align-items: center;
    padding: 15px 50px;
}
nav .logonav img {
    margin-left: 20px;
    width: 70px;
    height: 70px;
    margin-right: 20px;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
}

nav ul li {
    text-shadow: 2px 2px 2px white;
    margin: 0 20px;
}

nav ul li a:hover {
    text-shadow: 2px 2px 2px white;
     transform: scale(1.2);
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    font-size: larger;
    transition: transform 0.3s ease-in-out; /* Transition fluide */
}


nav.scrolled {
    transform: translateY(1); 
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.631), rgba(255, 255, 255, 0.631));
}

nav.scrolled ul li a {
    color: #333;
}



.card {
    position: relative;
    width: 150vw;
    max-width: 300px;
    height: 50vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    color: white;
    background-color: #839aff;
  }
  
  .card::before,
  .card::after {
    position: absolute;
    content: "";
    width: 20%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    background-color: #1B0CBD;
    transition: all 0.5s;
  }
  
  .card::before {
    top: 0;
    right: 0;
    border-radius: 0 15px 0 100%;
  }
  
  .card::after {
    bottom: 0;
    left: 0;
    border-radius: 0 100% 0 15px;
  }
  
  .card:hover::before,
  .card:hover:after {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    transition: all 0.5s;
  }
  
  .card:hover:after {
    content: "Clique ici";
  }
  .corps{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-top: 20%;
    width: 100%;
  }
  h1 {
    font-weight: 800;
    margin: 1rem 0 0;
    text-align: center;
}

ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    list-style: none;
    padding: 0;
    gap: 1rem;
}

.event{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 8rem;
    height: 8rem;
    margin: 0.25rem;
    padding: 1rem;
    font-weight: 300;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

li:hover {
    transform: scale(1.1);
}

time {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}   

.selected-event {
    width: 60%;
    height: 40%;
    margin-top: 5%;    
    background-color: #fff7e6;
    border: 2px solid #ffbf00;
    border-radius: 10px;
    display: none;
    text-align: center;
    margin-bottom: 15%;
    top: 50%;
    left: 50%;
   margin-left: 20%;
}

@media screen and (max-width: 768px) {
    .haut {
        flex-direction: column;
        margin-top: 10vh;
        margin-bottom: 5vh;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 10px;
    }

    .card {
        width: 70vw;
        height: auto;
        font-size: 1rem;
    }

    ul {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
