
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #111111;
  --muted: #4a4f55;
  --accent: #c3c9c9;
  --border: #c3c9c9;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: NeueHaasGrotesk, Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height: 1.5; }
a { color: #111; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 24px; }
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; backdrop-filter: blur(6px); background: rgba(255,255,255,0.92); z-index: 10; --header-height: 112px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-height); padding: 10px 0; }
.brand-mark { height: calc(var(--header-height) - 20px); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a.active { text-decoration: underline; text-underline-offset: 6px; }
.btn { padding: 12px 20px; border-radius: 12px; font-weight: 700; display: inline-block; }
.btn-pill { border-radius: 999px; }
.btn-light { background: #fff; color: #111; border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-dark { background: #3a3a3a; color: #fff; border: 1px solid #3a3a3a; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: #111; }
main { padding-top: 24px; }
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; color: var(--muted); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }

/* HERO edge-to-edge */
.hero-full, .hero-ipad { width:100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-top: -24px; position: relative; }
.hero-full-bg { position: relative; height: 62vh; min-height: 420px; }
.hero-full-bg::before { content: ""; position: absolute; inset: 0; background: url('/assets/img/hero-bg.jpg') center 55%/cover no-repeat; filter: brightness(0.55); }
.hero-full .hero-full-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.hero-full h1 { font-size: 64px; line-height: 1.05; color: #fff; margin: 0 0 8px; }
.hero-full .lead { color: #e8e8ea; font-size: 18px; max-width: 850px; }
.cta-row { display:flex; gap:16px; margin-top: 16px; flex-wrap: wrap; }

/* Alternating bands full width with soft transitions */
.band { width:100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); position: relative; }
.band:before { content:""; position:absolute; left:0; right:0; top:-18px; height:18px;
  background: linear-gradient(to bottom, rgba(195,201,201,0), rgba(195,201,201,0.18)); pointer-events:none;
}
.band.alt:before { background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.06)); }
.band .inner { max-width:1080px; margin:0 auto; padding:40px 24px; }
.band.alt { background: #c3c9c9; transition: background-color .35s ease; }

/* Layouts */
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: #fff; border: 1px solid var(--border); padding: 18px; border-radius: 16px; }
label { display: grid; gap: 6px; }
input, select, textarea { background: #fff; border: 1px solid var(--border); color: #111; padding: 10px 12px; border-radius: 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hidden { display: none; }
.center { text-align:center; }

/* Sections */
.sf-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.sf-image img { border-radius: 16px; width: 100%; height: auto; display: block; border:1px solid var(--border); background:#fff; }
.bubbles { display:grid; grid-template-columns: 1fr; gap:16px; margin-top: 12px; }
.bubble { background:#fff; border:1px solid var(--border); border-radius:16px; padding:16px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.bubble h3 { margin: 0 0 6px; color:#111; }

/* Contact */
.portrait-side img { width: 180px; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.contact-info { display:flex; flex-direction:column; gap:6px; font-size: 15px; margin-top: 8px; }
.contact-info .name { font-weight:700; }
.contact-social { display:flex; gap:12px; align-items:center; margin-top:6px; }
.contact-social a svg { width:22px; height:22px; display:block; }
.form small.muted { color: #4a4f55; display:block; margin-top:6px; }

/* Underlined titles */
#savoir-faire h2, .approche h1, .engagements h1, #contact h2, #avis h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Before/After slider */
.compare { position: relative; width: 100%; max-width: 100%; overflow: hidden; border-radius: 16px; border:1px solid var(--border); background:#fff; }
.compare img { display:block; width:100%; height:auto; }
.compare-top { position:absolute; inset:0; width:50%; overflow:hidden; border-right: 2px solid #111; z-index:1; }
.compare-top img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.compare-slider { position: relative; z-index:2; width:100%; margin-top: 8px; -webkit-appearance:none; appearance:none; height: 6px; background: #c3c9c9; border-radius: 4px; }
.compare-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #111; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.compare-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #111; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }

/* Engagements layout like Savoir-faire */
.eng-left { display:grid; grid-template-columns: 320px 1fr; gap: 24px; align-items:start; }
.eng-left .media img { width:100%; height:auto; border-radius:16px; border:1px solid var(--border); }

/* Gallery + Lightbox */
.gallery-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; }
.gallery-grid .tile { overflow:hidden; border-radius: 14px; border: 1px solid var(--border); background:#fff; cursor:pointer; }
.gallery-grid img { width:100%; height:260px; object-fit: cover; display:block; }
.lightbox { position:fixed; inset:0; background:rgba(0,0,0,.8); display:none; align-items:center; justify-content:center; z-index:9999; }
.lightbox img { max-width:90vw; max-height:90vh; border-radius:12px; }
.lightbox.show { display:flex; }
.lightbox-close { position:absolute; top:20px; right:24px; color:#fff; font-size:28px; cursor:pointer; }

@media (max-width: 1024px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
  .hero-full h1 { font-size: 48px; }
}
@media (max-width: 860px){
  .grid-3, .grid-2, .sf-grid { grid-template-columns:1fr; }
  .band .inner { padding: 32px 24px; }
  .eng-left { grid-template-columns:1fr; }
}
@media (max-width: 540px){
  .site-header { --header-height: 80px; }
  .brand-mark { height: calc(var(--header-height) - 18px); }
  .hero-full-bg { height: 54vh; min-height: 360px; }
  .hero-full h1 { font-size: 36px; }
  .hero-full .lead { font-size: 16px; }
  .cta-row { gap:10px; }
  .cta-row .btn { width: 100%; text-align: center; }
  .portrait-side { display:flex; justify-content:center; }
  .portrait-side img { width:150px; }
  .contact-info { margin: 8px 0 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 170px; }
  .site-footer .container { padding: 18px; }
}

#avis.band.alt { margin-top: 64px; }

@media (max-width: 540px){
  #avis.band.alt { margin-top: 80px; }
}

.hero-ipad .hero-ipad-bg::before { content:""; position:absolute; inset:0; background:url('/assets/img/sketchup-ipad.png') center/cover no-repeat; filter: brightness(0.75); }

@media (max-width: 540px){
  .hero-ipad .hero-ipad-bg { position: relative; height: 60vh; min-height: 460px; }
}

/* --- Mobile Navigation --- */
.nav-toggle { display: none; background: #c3c9c9; color:#111; border: 1px solid #aeb4b4; font-size: 22px; line-height: 1; padding: 10px 12px; cursor: pointer; border-radius: 10px; z-index: 20; }
.mobile-menu { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998; display: none; }
.mobile-menu[hidden] { display: none !important; }
.mobile-menu.open { display: block; }
.mobile-menu-inner { position: absolute; top: 0; right: 0; width: 82vw; max-width: 360px; height: 100%; background: #fff; border-left: 1px solid var(--border); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu-inner nav { display: grid; gap: 8px; }
.mobile-menu-inner a { padding: 10px 8px; border-radius: 8px; border: 1px solid var(--border); color: #111; }
.mobile-close { align-self: flex-end; background: transparent; border: 0; font-size: 28px; cursor: pointer; }

@media (max-width: 860px){
  /* Hide inline links but keep the Devis button */
  .nav a:not(.btn) { display: none; }
  .nav-toggle { display: none; background: #c3c9c9; color:#111; border: 1px solid #aeb4b4; font-size: 22px; line-height: 1; padding: 10px 12px; cursor: pointer; border-radius: 10px; z-index: 20; }
}

@media (max-width: 540px){
  .hero-full { margin-bottom: 24px; }
}

.header-inner{ position: relative; }
@media (max-width: 860px){
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav{ margin-left:auto; }
}

.hero-ipad { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-top: -24px; position: relative; }
.hero-ipad .hero-ipad-bg { position: relative; height: 60vh; min-height: 460px; overflow: hidden; }
.hero-ipad .hero-ipad-bg::after { content:""; position:absolute; inset:0; background: rgba(0,0,0,0.25); }
.hero-ipad-img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; object-position: center; display:block; }
@media (max-width: 540px){
  .hero-ipad .hero-ipad-bg { height: 52vh; min-height: 320px; }
}
