/* Style pour le site de Sylvain Mercier */

/* Réinitialisation et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f8f9fa;
    position: relative;
    min-height: 100vh;
}

/* Image de fond fixe */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://sylvain1963.in/collection_museale/3L'Archive Silencieuse de Babel.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.09;
   /* filter: blur(10px) grayscale(40%) brightness(1.1); */
    z-index: -1;
}


/* #background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.65);
    z-index: -1;
} */

#background-overlay {
    display: none; /* On supprime le voile blanc */
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.intro {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.collection-title {
    color: #3498db;
    font-weight: bold;
}

hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* Section galerie */
.gallery-section {
    margin-bottom: 60px;
}

.gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

/* Grille de galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Éléments de galerie */
.gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e0e0e0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.image-container {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.description {
    padding: 15px;
}

.description h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.description p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Pied de page */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    color: #666;
}

footer p {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}