:root {
    --bg-canvas: #f4f1ea;       /* Beige clair (couleur toile) */
    --primary-dark: #2c3e50;    /* Bleu pétrole (élégance et profondeur) */
    --accent-gold: #c2913f;     /* Ocre/Or (rappel du cadre ou de la signature) */
    --text-main: #3e3e3e;       /* Gris anthracite pour la lecture */
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-canvas); /* Fond général beige doux */
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
}

/* Navigation colorée */
header {
    padding: 1.5rem 5%;
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

nav { display: flex; justify-content: space-between; align-items: center; }
.logo { color: var(--white); font-weight: bold; font-size: 1.2rem; letter-spacing: 2px; }

nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { 
    text-decoration: none; 
    color: #bdc3c7; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    transition: color 0.3s;
}
nav a:hover { color: var(--accent-gold); }

/* Section Héro avec un dégradé élégant */
#hero {
    height: 60vh;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), 
                url('votre-image-fond.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

#hero h1 { color: var(--accent-gold); font-size: 3.5rem; margin-bottom: 10px; }

/* Galerie */
#oeuvres { background-color: var(--white); }
h2::after { 
    content: ""; 
    display: block; 
    width: 60px; 
    height: 3px; 
    background: var(--accent-gold); 
    margin: 1rem auto; 
}


/* 1. Règle de base pour toutes les images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. La Grille : On utilise auto-fill pour bien répartir les 25 images */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    padding: 20px 0;
}

/* 3. Le conteneur (Assure-toi que ton HTML utilise bien la classe "image-container") */
.image-container {
    width: 100%;
    height: 350px; /* C'est ici qu'on fixe la hauteur commune */
    overflow: hidden;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* LE CADRAGE MAGIQUE : Remplit sans déformer */
    transition: transform 0.5s ease;
}

/* 4. L'info sous l'image */
.item-info {
    padding: 15px 0;
    border-top: 1px solid var(--accent-gold);
    margin-top: 10px;
    background: var(--white); /* Pour être sûr que le texte soit sur fond propre */
}

/* Effet au survol */
.gallery-item:hover img {
    transform: scale(1.1);
}


.item-info h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.item-info p {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* Optimisation pour mobile (écarts plus petits) */
@media (max-width: 600px) {
    .gallery-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

/* Biographie avec bloc de couleur */
#biographie {
    background-color: var(--primary-dark);
    color: var(--white);
}

#biographie h2 { color: var(--accent-gold); }

.bio-container { 
    display: flex; 
    gap: 4rem; 
    align-items: center; 
}

.bio-image img { 
    border: 8px solid var(--white); /* Effet cadre photo */
    box-shadow: 10px 10px 0px var(--accent-gold);
}

/* Liens et Contact */
#liens { background-color: var(--white); }
.links-list a {
    color: var(--primary-dark);
    font-weight: bold;
    border-left: 3px solid var(--accent-gold);
    padding-left: 10px;
    transition: 0.3s;
}
.links-list a:hover { padding-left: 20px; color: var(--accent-gold); }

#contact { background-color: var(--bg-canvas); }

.contact-card { 
    background: var(--white);
    border: none;
    border-top: 5px solid var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

footer {
    background: #1a252f;
    color: #7f8c8d;
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
}


#lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); /* Fond noir transparent */
    cursor: zoom-out;
}

#lightbox img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
    border: 3px solid white;
}

.close {
    position: absolute;
    top: 20px; right: 40px;
    color: white; font-size: 50px; cursor: pointer;
}