:root {
    --bg-dark: #121212;
    --bg-light-dark: #1E1E1E;
    --accent-primary: #E67E22;
    --accent-secondary: #6D4C41;
    --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; 
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}
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; text-transform: uppercase; }
.reveal { position: relative; transform: translateY(100px); opacity: 0; transition: all 1s ease; }
.reveal.active { transform: translateY(0px); opacity: 1; }

/* --- HEADER & NAVIGATION --- */
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 img { max-height: 50px; }
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; text-transform: uppercase; }
nav a:hover { color: var(--accent-primary); }

/* --- SECTION HERO --- */
#hero { background-image: url('img/realisations/voirie-1.jpg'); 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-primary); color: #fff; 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-primary); cursor: pointer; font-size: 1rem; }
.cta-button:hover { background-color: transparent; color: var(--accent-primary); }

/* --- SECTION ENTREPRISE --- */
#entreprise { background-color: transparent; }
.content-box { background-color: var(--bg-light-dark); padding: 3rem; border-radius: 8px; }
.content-box h2 { margin-top: 0; }
.company-content { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.president-word, .company-desc { flex: 1; min-width: 300px; }
.president-word { display: flex; flex-direction: column; align-items: center; text-align: center; }
.president-pic { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; }
.president-word h3, .company-desc h3 { color: var(--accent-primary); margin-bottom: 1.5rem; font-size: 1.6rem; }
.president-word blockquote { border-left: none; padding-left: 0; font-style: italic; color: var(--text-secondary); margin: 0; max-width: 400px; }
.president-word cite { display: block; text-align: center; margin-top: 1rem; font-weight: bold; }

/* --- SECTION COMPÉTENCES (ACCORDÉON) --- */
.accordion-item { border-bottom: 1px solid #333; }
.accordion-title { background: none; border: none; color: var(--text-primary); cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 1.4rem; padding: 1.5rem 0; width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; }
.accordion-title span { font-size: 2rem; transition: transform 0.3s ease; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.5s ease; }
.accordion-content p { color: var(--text-secondary); padding: 0 0 1.5rem 0; }
.accordion-item.open .accordion-content { max-height: 200px; padding-bottom: 1.5rem; }
.accordion-item.open .accordion-title span { transform: rotate(45deg); }
.accordion-item.open .accordion-title { color: var(--accent-primary); }

/* --- RÉALISATIONS --- */
#realisations { background-color: var(--bg-light-dark); }
.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 --- */
.contact-content { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-start; }
.contact-details, .contact-form-container { flex: 1; min-width: 300px; }
.contact-details h3, .contact-form-container h3 { color: var(--accent-primary); margin-bottom: 1rem; }
.contact-details address { font-style: normal; line-height: 2.2; }
.contact-details a { color: var(--text-primary); text-decoration: none; transition: color 0.3s ease; }
.contact-details a:hover { color: var(--accent-primary); }
.map-container { margin-top: 2rem; border-radius: 5px; overflow: hidden; }
.contact-form input, .contact-form textarea { width: 100%; background-color: #2a2a2a; border: 1px solid #333; color: var(--text-primary); padding: 0.9rem; margin-bottom: 1rem; border-radius: 5px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; transition: border-color 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-primary); }
.copy-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.copy-icon:hover {
    color: var(--accent-primary);
}
.copy-icon svg {
    width: 20px;
    height: 20px;
}
.copy-icon .icon-check {
    display: none;
    color: #27ae60;
}

/* --- FOOTER --- */
footer { background: #000; text-align: center; padding: 2rem; 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-primary); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) { h2 { font-size: 2rem; } #hero h1 { font-size: 2.5rem; } }
@media (max-width: 768px) { header .container { flex-direction: column; gap: 1rem; } section { padding: 60px 0; } .gallery-item { flex-basis: calc(50% - 1rem); } }
@media (max-width: 600px) { .gallery-item { flex-basis: 100%; } }