/* Configuration de base */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Éviter le défilement horizontal */
}

/* En-tête fixe avec menu de navigation */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0);
    border-bottom: 0px solid #ddd;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    flex: 1;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-right: 20px;
}

.nav-list li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-list li a:hover {
    color: #f9f5d8; /* Changer la couleur du texte au survol */
}

.site-title {
    flex: 2;
    text-align: center;
}

.site-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Section Principale avec Image en Arrière-Plan */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('images/oeuvre-principale.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9f5d8;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    background: rgba(0, 0, 0, 0); /* Fond semi-transparent pour le texte */
    padding: 10px;
    border-radius: 0px;
}

.hero-content h2 {
    font-size: 60px;
    margin: 0 0 10px;
    font-weight: 400;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
}

/* Section d'Informations */
.info-section {
    padding: 0px 0px;
    background-color: #fff;
    text-align: center;
}

.info-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.info-section p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Galerie */
.gallery-section {
    padding: 50px 20px;
    background-color: #fff;
}

.gallery-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Animation pour faire apparaître les éléments au défilement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item.visible {
    opacity: 1;
    animation: fadeInUp 0.6s forwards;
}

/* Pour les écrans mobiles */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
/* Styles de base pour le header */
.main-header {
    background-color: transparent;
    color: #f4f4f4; /* Couleur du texte par défaut */
    transition: background-color 0.8s, box-shadow 0.8s; /* Transition fluide */
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Styles pour le header lorsque la page est défilée */
.header-scrolled {
    background-color: #ffffff; /* Couleur de fond lorsque défilé */
    color: #f4f4f4; /* Couleur du texte lorsque défilé */
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.6); /* Ombre pour plus de contraste */
}
