/* Section Carrousel */
#carousel-section {
    text-align: center;
    margin: 20px auto;
}

.carousel {
    perspective: 1000px; /* Ajoute la perspective 3D */
    width: 80%;
    height: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d; /* Active la 3D */
    transition: transform 1s ease-in-out;
}

.carousel img {
    width: 200px;
    height: auto; /* Assure que les images ne soient pas déformées */
    object-fit: cover;
    position: absolute;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.carousel-controls {
    margin-top: 10px;
}

.carousel-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    margin: 0 10px;
    transition: background 0.3s ease-in-out;
}

.carousel-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Positions spécifiques pour la rotation */
.carousel img:nth-child(1) {
    transform: rotateY(0deg) translateZ(300px); /* Photo au centre */
}

.carousel img:nth-child(2) {
    transform: rotateY(72deg) translateZ(300px);
}

.carousel img:nth-child(3) {
    transform: rotateY(144deg) translateZ(300px);
}

.carousel img:nth-child(4) {
    transform: rotateY(216deg) translateZ(300px);
}

.carousel img:nth-child(5) {
    transform: rotateY(288deg) translateZ(300px);
}

/* Galerie */
#gallery-section {
    text-align: center;
    margin: 20px auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
}

.gallery-item {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}

/* barre de navigation */
nav {
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 20px;
}

nav .menu-toggle {
    display: none; /* Masqué par défaut sur les grands écrans */
    background: #f05454;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #f4f4f4;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f05454;
}

nav ul.show-menu {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 50px;
    right: 10px;
    padding: 10px;
    z-index: 1000;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #f4f4f4;
}