/* Tomas Crovetto, 17.01.25, Page d'accueil */
/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
}

header {
    background-color: #D50032; /* Couleur rouge Ducati */
    color: #fff;
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 36px;
}

nav {
    background-color: #111;
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #D50032; /* Rouge Ducati au survol */
}

nav ul li a.active {
    font-weight: bold;
    color: #D50032;
}

/* Section intro */
.intro {
    padding: 30px;
    text-align: center;
    background-color: #1C1C1C;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Galerie photo */
.photo-gallery {
    padding: 50px;
    text-align: center;
    background-color: #D50032;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gallery .image {
    width: 200px;
    height: 150px;
    background-color: #444;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

img{
    width: 200px;
    border-radius: 10px;
    animation: slideIn 1s ease-in-out forwards;
}


@keyframes slideIn {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
    color: #fff;
    font-size: 16px;
}
/* Responsiveness pour petits écrans */
@media screen and (max-width: 768px) {
  
    .gallery{
        width: 90%;
        flex-direction: column;
        /* Les cartes seront empilées sur petits écrans */
        align-items: center;
      
    }
}