html,
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #444;
} 


header {
    background-color: #f4f4f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 6%;
    border-bottom: 1px solid black;
    flex-wrap: wrap;
}


header ul {
    width:30vw;
}

header .nom img {
    width:100px;
    height:100px;
    border-radius: 25px;
}


h2 {
    text-align: center;
    color: #222;
    margin-bottom: 20px;
}

.nom span {
    color:#3f65f0;
}


header ul {
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    margin:0;
    padding:0;
}

ul li {
    list-style:none;
    padding: 8px 12px;
}
ul li a {
    color:rgb(9, 2, 32);
    font-size: 23px;
    transition:0.5s;
    text-decoration: none;
    
}

ul li a:hover{
    color:#3f65f0;
    border-bottom: 2px solid #3f65f0;
}


nav button {
    color: white;
    background: #3f65f0;
    border: 2px solid #3f65f0;
    border-radius: 10px;
    padding:8px 12px;
    cursor:pointer;
}

nav button:hover {
    border: 2px solid #3f65f0;
    background: white;
    border-radius: 10px;
    color:#3f65f0
}

.carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.carousel-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap:20px;
    padding:10px 0;
}
.carousel-items {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    transition: transform 0.5s ease;
    list-style: none;
    padding: 0;
    margin: 0;
}
.carousel-item {
    min-width: 20%;
    box-sizing: border-box;
    padding: 10px;
}
.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}
.card p {
    font-size: 0.9em;
    color: #333;
}

@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 50%; 
    }

}

@media (max-width: 768px) {
    header {
        flex-direction: column; 
        text-align: center;
    }

    ul {
        justify-content: center;
    }

    ul li {
        padding: 5px 10px; 
    }

    .carousel-item {
        flex: 0 0 100%; 
    }
}

@media (max-width: 480px) {
    header .nom img {
        width:60px;
        height:60px;
    }

    h2 {
        font-size: 1.5rem;
    }


    ul li a {
        font-size: 16px;
    }

    .card {
        padding: 10px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.8rem;
    }
}
