/* =========================================
   1. VARIABLES & RESET
========================================= */
:root {
    --primary: #335979;        /* Bleu principal */
    --primary-dark: #203a52;
    --accent: #D1A67D;         /* Bois/Or */
    --accent-hover: #b88d63;
    
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --text-main: #333333;
    --text-light: #666666;

    --container-width: 1200px;
    --header-height: 80px;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary); color: white; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

/* =========================================
   2. HEADER & NAV
========================================= */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: var(--header-height);
}

.header-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px;
    height: 100%;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 50px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .title { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.logo-text .subtitle { font-size: 0.85rem; font-weight: 600; color: var(--text-light); }

/* Navigation Desktop */
.nav-desktop { display: none; gap: 30px; align-items: center; }
.nav-desktop a { font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.nav-desktop a:hover { color: var(--accent); }

.btn-contact {
    background: var(--primary); color: white !important;
    padding: 10px 20px; border-radius: 4px;
}
.btn-contact:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Affichage Desktop : Cache le burger */
@media (min-width: 992px) {
    .nav-desktop { display: flex; }
    .burger { display: none !important; }
}

/* =========================================
   3. MENU MOBILE
========================================= */
.burger {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 30px; height: 20px; cursor: pointer; z-index: 2000;
}
.burger span {
    height: 3px; width: 100%; background: var(--primary);
    border-radius: 3px; transition: 0.3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 1400; opacity: 0; pointer-events: none; transition: 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }

.mobile-menu {
    position: fixed; top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: white; z-index: 1500;
    display: flex; flex-direction: column; padding: 80px 30px;
    transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.mobile-menu.open { right: 0; }

.mobile-menu nav { display: flex; flex-direction: column; gap: 25px; }
.mobile-menu a { font-size: 1.2rem; font-weight: 600; color: var(--primary); border-bottom: 1px solid #eee; padding-bottom: 10px; }

.close-menu {
    position: absolute; top: 20px; right: 25px;
    font-size: 40px; color: var(--primary); cursor: pointer; line-height: 1;
}

/* =========================================
   4. HERO
========================================= */
.hero {
    position: relative; height: 90vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; color: white; text-align: center;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%;
    background: url('img/accueilwide.png') center/cover no-repeat; z-index: -2;
}
.hero-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: -1;
}
.hero-content { max-width: 800px; padding: 20px; z-index: 1; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.btn { padding: 15px 30px; border-radius: 50px; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary); }

/* =========================================
   5. PRESTATIONS
========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card {
    background: white; border-radius: var(--radius); padding: 40px 30px;
    box-shadow: var(--shadow); text-align: center;
    border-bottom: 4px solid transparent; transition: 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); }

.card-icon {
    height: 80px; margin-bottom: 20px;
    display: flex; justify-content: center; align-items: center;
}
.card-icon img { height: 100%; width: auto; object-fit: contain; }

.card h3 { color: var(--primary); margin-bottom: 15px; }

.check-list { text-align: left; margin-top: 20px; padding-left: 10px; }
.check-list li { padding-left: 25px; position: relative; margin-bottom: 8px; color: var(--text-light); }
.check-list li::before { content: "✔"; color: var(--accent); position: absolute; left: 0; }

/* =========================================
   6. ATELIER & REALISATIONS
========================================= */
.atelier-section { padding: 100px 0; background: white; overflow: hidden; }
.atelier-container {
    max-width: var(--container-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 0 20px; align-items: center;
}
.divider { width: 60px; height: 4px; background: var(--accent); margin-bottom: 30px; }
.atelier-visual img { width: 100%; border-radius: var(--radius); box-shadow: 15px 15px 0px var(--accent); }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.gallery-item { position: relative; height: 280px; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; bottom: 0; width: 100%; padding: 15px;
    background: rgba(0,0,0,0.7); color: white; text-align: center;
    transform: translateY(100%); transition: 0.3s;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); }

/* =========================================
   7. CONTACT
========================================= */
.contact-wrapper { max-width: 420px; justify-content: center; align-items: center; }
.contact-info h2 { color: white; margin-bottom: 20px; }
.info-block { margin-bottom: 20px; padding-left: 15px; border-left: 3px solid var(--accent); }
.info-block strong { margin-bottom: 20px; display: block; font-size: 0.9rem; opacity: 0.7; }
.info-block a, .info-block span { font-size: 1.2rem; font-weight: 600; color: white; }

/* =========================================
   8. FOOTER & LIGHTBOX
========================================= */
.footer { background: #1a1a1a; color: #777; padding: 30px 0; text-align: center; font-size: 0.9rem; }

.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 3000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.lightbox.visible { opacity: 1; pointer-events: all; }
.lightbox-content { max-width: 90%; max-height: 90vh; border: 2px solid white; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; cursor: pointer; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .atelier-container, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .atelier-visual img { box-shadow: 10px 10px 0px var(--accent); }
    .contact-map-placeholder { display: none; } /* On cache le gros logo sur mobile pour gagner de la place */
}

.no-scroll { overflow: hidden; }