:root {
    --bg-dark: #121212;
    --bg-light-dark: #1E1E1E;
    --accent-color: #D4A056;
    --text-primary: #E0E0E0;
    --text-secondary: #888888;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.7; color: var(--text-primary); background-color: var(--bg-dark); overflow-x: hidden; }
h1, h2, h3, .logo { font-family: 'Montserrat', sans-serif; font-weight: 600; color: #fff; letter-spacing: 0.5px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 80px 0; }
h2 { text-align: center; margin-bottom: 60px; font-size: 2.2rem; }
.reveal { position: relative; transform: translateY(100px); opacity: 0; transition: all 1s ease; }
.reveal.active { transform: translateY(0px); opacity: 1; }
header { background: rgba(18, 18, 18, 0.7); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; padding: 1.2rem 0; border-bottom: 1px solid #2a2a2a; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav a { text-decoration: none; color: var(--text-primary); font-weight: 400; font-size: 0.9rem; transition: color 0.3s ease; letter-spacing: 1px; }
nav a:hover { color: var(--accent-color); }
#hero { background-image: url('img/5ce9a9d3-f5f4-4716-b206-27268a15cb4f.png'); background-size: cover; background-position: center; position: relative; padding: 100px 0; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8)); }
#hero .container { position: relative; }
#hero h1 { font-size: 3rem; margin-bottom: 1rem; }
#hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; color: var(--text-secondary); }
.cta-button { background-color: var(--accent-color); color: #121212; padding: 0.9rem 2.2rem; text-decoration: none; border-radius: 5px; font-family: 'Montserrat', sans-serif; font-weight: 600; transition: all 0.3s ease; border: 1px solid var(--accent-color); cursor: pointer; font-size: 1rem; }
.cta-button:hover { background-color: transparent; color: var(--accent-color); }
#engagements { background-color: var(--bg-dark); padding: 60px 0; display: flex; justify-content: space-around; text-align: center; gap: 2rem; flex-wrap: wrap; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; }
.engagement-item { flex-basis: 300px; }
.engagement-item h3 { color: var(--accent-color); margin-bottom: 0.5rem; font-size: 1.2rem; }
.engagement-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* --- SERVICES --- */
.expertise-list-container ul { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; column-count: 3; column-gap: 40px; }
.expertise-list-container li { margin-bottom: 1rem; padding-left: 35px; position: relative; font-size: 1rem; color: var(--text-primary); }
.expertise-list-container li::before { content: '✓'; position: absolute; left: 0; top: 1px; color: var(--accent-color); font-size: 1.2rem; font-weight: bold; }

/* --- RÉALISATIONS --- */
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.gallery-item { flex-basis: calc(25% - 1rem); min-width: 280px; height: 250px; position: relative; overflow: hidden; border-radius: 5px; }
.gallery-item::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); transition: opacity 0.3s ease; }
.gallery-item:hover::after { opacity: 0; }
.gallery-item a { display: block; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* --- CONTACT (mis à jour pour centrage vertical) --- */
#contact { 
    background-color: var(--bg-light-dark); 
    padding-bottom: 60px;
}
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-around;
    align-items: center; /* <<< IMPORTANT : Centre les éléments verticalement */
    margin-top: 40px;
}
.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding-left: 1rem;
}
.contact-info p {
    margin-bottom: 0.7rem;
}
.contact-info p a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info p a:hover {
    color: var(--accent-color);
}
.contact-button-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
    border-left: 1px solid #333;
    padding-left: 2rem;
    padding-right: 1rem;
}
.contact-button-container p { 
    margin: 1rem 0 1.5rem 0; 
    color: var(--text-secondary);
}

/* --- FOOTER --- */
footer { 
    margin-top: 80px; 
    background: rgba(18, 18, 18, 0.5); 
    backdrop-filter: blur(5px); 
    text-align: center; 
    padding: 1.5rem; 
    color: var(--text-secondary); 
    font-size: 0.8rem; 
    border-top: 1px solid #2a2a2a; 
}

/* --- LIGHTBOX --- */
.lightbox { position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); display: none; justify-content: center; align-items: center; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { max-width: 90%; max-height: 85%; object-fit: contain; animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }
.lightbox-close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s ease; }
.lightbox-close:hover { color: var(--accent-color); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1300px) { .gallery-item { flex-basis: calc(33.333% - 1rem); } }
@media (max-width: 992px) { h2 { font-size: 2rem; } #hero h1 { font-size: 2.5rem; } .expertise-list-container ul { column-count: 2; } }
@media (max-width: 768px) { 
    header .container { flex-direction: column; gap: 1.5rem; } 
    section { padding: 60px 0; } 
    .gallery-item { flex-basis: calc(50% - 1rem); }
    .contact-info, .contact-button-container {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
    .contact-button-container {
        border-left: none;
        padding-top: 2rem;
    }
}
@media (max-width: 600px) { .gallery-item { flex-basis: 100%; } .expertise-list-container ul { column-count: 1; } }