:root {
  --navy: #293A46;
  --navy-light: #34495a;
  --green: #8EB22E;
  --orange: #F69214;
  --blue: #0885C8;
  --muted: #6b7680;
  --border: #e1e4e7;
  --bg: #f4f5f6;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, Arial, sans-serif; color: var(--navy); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { letter-spacing: -.2px; }

/* En-tete */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-header-inner { max-width: 1140px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { height: 64px; width: auto; }
.site-nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--navy); }
.site-nav-links { display: flex; gap: 32px; }
.site-nav-links a { color: var(--navy); font-weight: 600; font-size: 15px; padding: 8px 2px; border-bottom: 3px solid transparent; transition: border-color .15s, color .15s; }
.site-nav-links a:hover { color: var(--green); }
.site-nav-links a.actif { border-bottom-color: var(--green); }

@media (max-width: 680px) {
  .site-nav-toggle { display: block; }
  .site-nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--border); box-shadow: 0 8px 16px rgba(0,0,0,.1); }
  .site-nav-links.ouvert { display: flex; }
  .site-nav-links a { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .site-logo { height: 50px; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; padding: 64px 20px 70px; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--green), var(--orange), var(--blue)); }
.hero h1 { font-size: 34px; margin: 0 0 14px; font-weight: 800; }
.hero p { font-size: 18px; color: #d7dde0; max-width: 640px; margin: 0 auto 30px; }
@media (max-width: 680px) { .hero h1 { font-size: 26px; } .hero p { font-size: 16px; } }

.presentation-wrap { display: flex; align-items: center; gap: 50px; }
.logo-intro { display: block; height: 280px; width: auto; flex-shrink: 0; }
@media (max-width: 800px) {
  .presentation-wrap { flex-direction: column; text-align: center; gap: 20px; }
  .presentation-wrap h2, .presentation-wrap p { text-align: center !important; }
  .logo-intro { height: 160px; }
}

.btn { display: inline-block; background: var(--green); color: #fff; padding: 14px 30px; border-radius: 9px; font-weight: 700; font-size: 15px; box-shadow: 0 4px 14px rgba(142,178,46,.35); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: #7a9c27; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(142,178,46,.45); }

/* Sections generales */
.section { max-width: 1140px; margin: 0 auto; padding: 60px 24px; }
.section h2 { font-size: 28px; text-align: center; margin: 0 0 10px; font-weight: 800; }
.section-soustitre { text-align: center; color: var(--muted); margin: 0 0 44px; font-size: 16px; }
.section-alt { background: var(--bg); }

/* Cartes metiers (accueil) */
.grille-services-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 800px) { .grille-services-detail { grid-template-columns: 1fr; } }
.carte-service-detail { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 32px 26px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.carte-service-detail:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.09); }
.carte-service-detail .pastille-grande { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(0,0,0,.18); border: 3px solid; }
.carte-service-detail h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.carte-service-detail h3 .sous-titre-carte { font-size: 14px; font-weight: 600; color: var(--muted); }
.carte-service-detail p { color: var(--muted); margin: 0; font-size: 15px; text-align: left; }

/* Galerie realisations */
.grille-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.photo-item { border-radius: 12px; overflow: hidden; border: 5px solid var(--green); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); cursor: zoom-in; transition: transform .18s, box-shadow .18s; }
.photo-item:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.1); }
.photo-item img { width: 100%; height: 210px; object-fit: cover; transition: transform .3s; }
.photo-item:hover img { transform: scale(1.04); }
.photo-item .legende { padding: 10px 12px; font-size: 13px; color: var(--muted); }

#lightbox { display: none; position: fixed; inset: 0; background: rgba(20,26,31,.92); z-index: 100; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
#lightbox.ouvert { display: flex; }
#lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-infos p { margin: 8px 0; font-size: 15.5px; }
form.formulaire label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 4px; }
form.formulaire input, form.formulaire textarea { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 7px; font-size: 15px; font-family: inherit; transition: border-color .15s; }
form.formulaire input:focus, form.formulaire textarea:focus { outline: none; border-color: var(--green); }
.msg-ok { background: #e9f3da; border: 1px solid var(--green); color: #3a5c00; padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; }
.msg-err { background: #fbe3e0; border: 1px solid #c0392b; color: #7a0000; padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; }

/* Pied de page */
.site-footer { background: var(--navy); color: #cfd6da; margin-top: 40px; }
.site-footer-inner { max-width: 1140px; margin: 0 auto; padding: 36px 24px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer-siret { color: #8c98a0; font-size: 12px; align-self: center; }
