:root{
  /* Thème climatisation clair : fond blanc + bleu (froid) + orange (chaud) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --text: #0f172a;
  --muted: #475569;

  /* Couleurs */
  --cold: #2563eb;
  --cold2: #1e40af;
  --hot: #f59e0b;
  --hot2: #d97706;

  /* Accent par défaut (CTA / mise en avant) */
  --accent: var(--cold);

  --card: #ffffff;
  --stroke: rgba(15,23,42,.10);

  --radius: 18px;
  --shadow: 0 14px 40px rgba(2,6,23,.10);
  --max: 1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: var(--bg);
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

.topbar{
  position:sticky; top:0; z-index:1000;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 28px rgba(2,6,23,.06);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{
  display:flex; gap:12px; align-items:center;
}
.brand img{width:44px; height:44px}
.brand .name{
  font-weight:700; letter-spacing:.2px;
  display:flex; flex-direction:column; line-height:1.05;
}
.brand .name span:last-child{font-weight:500; color:var(--muted); font-size:12.5px}

.menu{
  display:flex; gap:18px; align-items:center;
}
.menu a{
  color: var(--cold2);
  font-weight:600;
  font-size:14px;
  padding:10px 12px;
  border-radius:12px;
}
.menu a:hover{color: var(--cold2); background: rgba(37,99,235,.10)}

.cta{
  display:flex; gap:10px; align-items:center;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: #ffffff;
  color:var(--text);
  font-weight:800;
  font-size:14px;
}
.btn:hover{background: #f1f5f9}
.btn.primary{
  border: none;
  background: linear-gradient(90deg, var(--cold), var(--hot2));
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(37,99,235,.18), 0 10px 26px rgba(217,119,6,.12);
}
.btn.primary:hover{
  background: linear-gradient(90deg, var(--cold2), var(--hot2));
}

.burger{
  display:none;
  width:46px; height:46px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: #ffffff;
  color: var(--text);
}

.hero{
  padding:64px 0 34px;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap:24px;
  align-items:stretch;
}
.kicker{
  display:inline-flex;
  gap:10px; align-items:center;
  padding:10px 12px;
  border:1px solid rgba(37,99,235,.25);
  border-radius:999px;
  background: rgba(37,99,235,.08);
  color: var(--cold2);
  font-weight:800;
  font-size:13px;
}
.kicker .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--cold);
  box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}

.h1{
  margin:16px 0 10px;
  font-size:48px;
  line-height:1.02;
  letter-spacing:-.7px;
}
.sub{
  margin:0 0 20px;
  color: var(--muted);
  font-size:16.5px;
  line-height:1.55;
}
.heroActions{display:flex; gap:12px; flex-wrap:wrap; margin-top:10px}
.heroCard{
  border:1px solid rgba(15,23,42,.10);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.heroCard .img{
  height:320px;
  background: url("../img/hero-hp.webp") center/cover no-repeat;
  filter:saturate(1.05) contrast(1.05);
}
.heroCard .overlay{
  position:absolute; inset:auto 0 0 0;
  padding:16px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.92));
}
.pills{
  display:flex; gap:8px; flex-wrap:wrap;
}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(248,250,252,.95);
  color: rgba(15,23,42,.80);
  font-weight:800;
  font-size:12px;
}

.section{padding:36px 0}
.sectionTitle{
  display:flex; justify-content:space-between; gap:12px; align-items:flex-end;
  margin-bottom:16px;
}
.sectionTitle h2{
  margin:0;
  font-size:24px;
  letter-spacing:-.2px;
}
.sectionTitle p{margin:0; color:var(--muted)}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid rgba(15,23,42,.10);
  background: #ffffff;
  border-radius: var(--radius);
  padding:16px;
}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color:var(--muted); line-height:1.55}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.callout{
  border:1px solid rgba(59,130,246,.22);
  background: rgba(59,130,246,.07);
  border-radius: var(--radius);
  padding:18px;
}
.callout strong{color: var(--text)}
.callout p{margin:10px 0 0; color:var(--muted); line-height:1.55}

.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.gallery img{
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  height:210px;
  width:100%;
  object-fit:cover;
}

.form{
  display:grid;
  gap:12px;
}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background: #ffffff;
  color:var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
textarea.input{min-height:130px; resize:vertical}

.footer{
  padding:28px 0 34px;
  border-top:1px solid rgba(15,23,42,.10);
  background: #f8fafc;
}
.footerGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}
.small{color:var(--muted); font-size:13px; line-height:1.6}

.badges{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:10px;
}
.badge{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background: #ffffff;
  font-weight:800;
  font-size:12.5px;
  color: rgba(15,23,42,.78);
}

@media (max-width: 980px){
  .heroGrid{grid-template-columns:1fr}
  .h1{font-size:40px}
  .grid3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr}
  .menu, .cta{display:none}
  .burger{
  display:inline-flex;
  width:46px; height:46px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: #ffffff;
  color: var(--text);
}
  .mobileMenu{
    display:none;
    padding: 10px 0 16px;
  }
  .mobileMenu a{
    display:block;
    padding: 12px 12px;
    color: var(--muted);
    font-weight:700;
    border-radius:14px;
  }
  .mobileMenu a:hover{background: rgba(37,99,235,.10); color: var(--cold2)}
  .mobileMenu .row{display:grid; gap:8px}
}

/* Réalisations */
.galleryCards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.galleryCard{
  overflow:hidden;
  border-radius: var(--radius);
  border:1px solid rgba(15,23,42,.10);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(2,6,23,.06);
}
.galleryCard img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.galleryCard figcaption{
  padding:12px 14px 14px;
  color: var(--muted);
  font-size:13px;
  line-height:1.45;
}
.galleryCard figcaption strong{
  display:block;
  color: var(--text);
  font-size:14px;
  margin-bottom:4px;
}
@media (max-width: 980px){
  .galleryCards{grid-template-columns: 1fr}
  .galleryCard img{height:240px}
}

/* Réalisations — regroupement par chantier */
.chantiers{
  display:grid;
  gap:14px;
}
.chantier{
  border-radius: var(--radius);
  border:1px solid rgba(15,23,42,.10);
  background: #ffffff;
  overflow:hidden;
  box-shadow: 0 10px 28px rgba(2,6,23,.06);
}
.chantierHead{
  padding:14px 16px 10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.chantierHead h3{
  margin:0;
  font-size:16px;
  letter-spacing:-.2px;
}
.chantierHead p{
  margin:6px 0 0;
  color: var(--muted);
  font-size:13px;
  line-height:1.5;
}
.chantierTags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.chantierBody{
  padding:0 12px 14px;
}
.chantierGrid{
  display:grid;
  gap:10px;
  grid-template-columns: repeat(3, 1fr);
}
.chantierGrid.two{grid-template-columns: repeat(2, 1fr);}
.chantierGrid img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  display:block;
  background: #ffffff;
}
@media (max-width: 980px){
  .chantierGrid{grid-template-columns: 1fr;}
  .chantierGrid img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  display:block;
  background: #ffffff;
}
}

/* Lightbox (agrandissement photos) */
.lightboxOverlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.78);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 2000;
  padding: 18px;
}
.lightboxOverlay.open{display:flex;}
.lightboxPanel{
  width:min(1100px, 100%);
  max-height: 92vh;
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,14,22,.92);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.lightboxTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.lightboxTitle{
  margin:0;
  font-size:13px;
  color: rgba(255,255,255,.78);
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lightboxBtn{
  width:40px; height:40px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight:900;
  cursor:pointer;
}
.lightboxBtn:hover{background: rgba(255,255,255,.10);}
.lightboxStage{
  position:relative;
  background: rgba(0,0,0,.35);
}
.lightboxImg{
  width:100%;
  height: min(72vh, 780px);
  object-fit: contain;
  display:block;
  background: rgba(0,0,0,.25);
}
.lightboxNav{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
}
.lightboxNav .navBtn{
  pointer-events:auto;
  margin: 0 10px;
  width:44px; height:44px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.95);
  font-size:18px;
  cursor:pointer;
}
.lightboxNav .navBtn:hover{background: rgba(0,0,0,.40);}
