/* HMS BTP Mulhouse — stylesheet */

:root {
  --orange: #E8631C;
  --orange-dark: #C8531D;
  --orange-light: #F5A26E;
  --orange-pale: #FDF1EA;
  --text: #2A2A2A;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --bg: #F7F7F5;
  --border: #E5E7EB;
  --dark: #2A2A2A;
  --darker: #1F1F1F;
}

* { box-sizing: border-box; }
img[loading="lazy"] { opacity: 0; transition: opacity .35s ease; }
img[loading="lazy"].img-loaded { opacity: 1; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  --hdr-bg: #fff;
  --hdr-border: var(--border);
  --hdr-text: var(--text);
  --hdr-muted: var(--muted);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-border);
}

/* Transparent overlay variant — sits on top of a hero video/image */
.site-header.header-overlay {
  --hdr-bg: transparent;
  --hdr-border: transparent;
  --hdr-text: #fff;
  --hdr-muted: rgba(255,255,255,0.85);
  position: fixed;
  top: 0; left: 0; right: 0;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.header-overlay.is-scrolled {
  --hdr-bg: #fff;
  --hdr-border: var(--border);
  --hdr-text: var(--text);
  --hdr-muted: var(--muted);
}
.site-header.header-overlay .logo-main,
.site-header.header-overlay .nav-links > a,
.site-header.header-overlay .nav-dropdown-btn,
.site-header.header-overlay .header-phone-num,
.site-header.header-overlay .icon-btn:not(.icon-btn-call) svg { color: var(--hdr-text); stroke: var(--hdr-text); }
.site-header.header-overlay .logo-sub,
.site-header.header-overlay .header-phone-hours { color: var(--hdr-muted); }
.site-header.header-overlay .nav-links > a.active,
.site-header.header-overlay .nav-dropdown-btn.active { color: var(--orange); }
.site-header.header-overlay .header-contact { border-left-color: rgba(255,255,255,0.3); }
.site-header.header-overlay.is-scrolled .header-contact { border-left-color: var(--border); }
.site-header.header-overlay .icon-btn:not(.icon-btn-call) { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
.site-header.header-overlay.is-scrolled .icon-btn:not(.icon-btn-call) { background: #fff; border-color: var(--border); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}
.logo { display: flex; flex-direction: column; }
.logo-main { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.logo-main .accent { color: var(--orange); }
.logo-sub { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--text); font-weight: 600; font-size: 15px; }
.nav-links > a:hover { color: var(--orange); }
.nav-links > a.active { color: var(--orange); font-weight: 700; }

.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--text);
  font-weight: 600; font-size: 15px; cursor: pointer;
  font-family: inherit; padding: 8px 0;
}
.nav-dropdown-btn.active { color: var(--orange); font-weight: 700; }
.nav-dropdown-btn svg { stroke: currentColor; transition: transform .15s; }
.nav-dropdown-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-radius: 10px; padding: 10px; min-width: 280px;
  display: none; flex-direction: column; gap: 2px;
}
.nav-dropdown-menu.open { display: flex; }
.nav-dropdown-menu a {
  padding: 12px 14px; border-radius: 8px; color: var(--text);
  font-size: 14px; font-weight: 600;
}
.nav-dropdown-menu a:hover { background: var(--bg); }
.nav-dropdown-menu a.active { color: var(--orange); font-weight: 700; background: var(--orange-pale); }

.header-contact {
  display: flex; align-items: center; gap: 16px;
  border-left: 1px solid var(--border); padding-left: 20px;
}
.header-phone { display: flex; flex-direction: column; align-items: flex-end; }
.header-phone-num { font-weight: 800; color: var(--text); font-size: 15px; }
.header-phone-hours { font-size: 11px; color: var(--muted); font-weight: 600; }
.btn-devis {
  background: var(--orange); color: #fff; padding: 12px 22px;
  border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.btn-devis:hover { background: var(--orange-dark); }

.nav-mobile-toggle { display: none; align-items: center; gap: 10px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn-call {
  background: var(--orange); border: none; border-radius: 50%; color: #fff;
}

.mobile-menu {
  display: none;
  background: #fff; border-top: 1px solid var(--border);
  padding: 14px 20px 20px; flex-direction: column; gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 6px; font-weight: 600; color: var(--text); font-size: 16px;
  min-height: 44px; display: flex; align-items: center;
}
.mobile-menu a.strong { font-weight: 700; }
.mobile-menu a.active { color: var(--orange); font-weight: 700; }
.mobile-menu .group-label {
  padding: 10px 6px 4px; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.mobile-menu .sep { border-top: 1px solid var(--border); margin-top: 6px; }
.mobile-menu .call-btn {
  margin-top: 10px; text-align: center; padding: 14px; border: 2px solid var(--orange);
  color: var(--orange); font-weight: 700; border-radius: 8px; font-size: 15px;
}
.mobile-menu .devis-btn {
  margin-top: 8px; text-align: center; padding: 14px; background: var(--orange);
  color: #fff; font-weight: 700; border-radius: 8px; font-size: 15px;
}

@media (max-width: 1023px) {
  .nav-desktop { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  background-image: linear-gradient(rgba(20,20,20,0.72), rgba(20,20,20,0.5)), url('../img/excavator-hero.jpg');
  background-size: cover; background-position: center;
}
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 80px 20px; width: 100%; }

/* Video hero variant (homepage) */
.hero--video { min-height: 700px; overflow: hidden; background: #1a1a1a; background-image: none; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(15,15,15,0.6), rgba(15,15,15,0.4));
}
.hero--video .hero-inner { position: relative; z-index: 2; padding-top: 140px; }
.hero-content { max-width: 680px; }
.eyebrow { color: var(--orange-light); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: clamp(32px, 6vw, 54px); font-weight: 800; line-height: 1.08; margin: 0 0 20px; letter-spacing: -1px; }
.hero p { color: rgba(255,255,255,0.88); font-size: 17px; line-height: 1.6; margin: 0 0 32px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-primary {
  background: var(--orange); color: #fff; padding: 16px 28px; border: none;
  border-radius: 8px; font-weight: 700; font-size: 16px; display: inline-block; cursor: pointer;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline-light {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.5);
  color: #fff; padding: 16px 28px; border-radius: 8px; font-weight: 700; font-size: 16px;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.22); }

/* Page hero (dark, non-image) for inner pages */
.page-hero {
  position: relative; padding: 80px 20px 60px;
  background: linear-gradient(180deg, #2A2A2A, #3a3a3a);
}
.page-hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; margin: 0 0 16px; letter-spacing: -0.5px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- Trust bar ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--border); }
.trust-bar .container { padding: 28px 20px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-around; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .title { font-weight: 800; font-size: 15px; }
.trust-item .sub { font-size: 12px; color: var(--muted); }

/* ---------- Generic sections ---------- */
section { }
.section { padding: 72px 20px; max-width: 1280px; margin: 0 auto; }
.section-narrow { padding: 64px 20px; max-width: 1000px; margin: 0 auto; }
.section-white { background: #fff; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 0; letter-spacing: -0.5px; }
h2.section-title { font-size: 24px; font-weight: 800; margin: 0 0 16px; }
h2.section-title-lg { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; margin: 0; letter-spacing: -0.5px; }

.grid { display: grid; gap: 24px; }
.grid-services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: center; }
.grid-features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform .2s, box-shadow .2s;
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 22px; }
.card-body .title { font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.card-link { color: var(--orange); font-weight: 700; font-size: 14px; }

.gallery-img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; display: block; }

.testimonial {
  background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.testimonial p { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0 0 14px; }
.testimonial .author { font-weight: 700; font-size: 13px; }

.zone-section { background: var(--dark); padding: 56px 20px; }
.zone-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.zone-inner h2 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 18px; }
.zone-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: rgba(255,255,255,0.08); color: #fff; padding: 9px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; }

.cta-section { padding: 60px 20px; background: var(--dark); }
.cta-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-inner h2 { color: #fff; font-size: 26px; font-weight: 800; margin: 0 0 14px; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 15px; margin: 0 0 24px; }

.info-box { background: var(--dark); border-radius: 12px; padding: 24px; }
.value-box { background: var(--bg); border-radius: 12px; padding: 24px; }
.value-box svg { margin-bottom: 10px; }
.value-box .title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.value-box p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }

.feature-row {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border-radius: 10px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.feature-row svg { flex-shrink: 0; margin-top: 2px; }
.feature-row .title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.feature-row .sub { color: var(--muted); font-size: 14px; }
.feature-list { display: flex; flex-direction: column; gap: 14px; }

.material-box { background: var(--bg); border-radius: 12px; padding: 24px; }
.material-box .title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.material-box p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

.example-quote { background: var(--bg); border-radius: 12px; padding: 22px; }
.example-quote p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.example-quote .author { font-weight: 700; font-size: 13px; }
.example-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 24px; }
.example-imgs img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }

/* ---------- Realisations filter/gallery ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
  padding: 10px 20px; border-radius: 20px; font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: inherit; border: 2px solid var(--border);
  background: #fff; color: var(--text);
}
.filter-chip.active { border-color: var(--orange); background: var(--orange); color: #fff; }

.project-card { cursor: pointer; }
.project-card .cat { color: var(--orange); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.project-card .title { font-weight: 800; font-size: 16px; }
.project-card img { height: 190px; }
.project-card .card-body { padding: 18px 20px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px; max-width: 640px; width: 100%;
  max-height: 88vh; overflow-y: auto;
}
.modal-box img { width: 100%; height: 260px; object-fit: cover; display: block; border-radius: 16px 16px 0 0; }
.modal-content { padding: 28px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.modal-head .cat { color: var(--orange); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.modal-head h3 { font-size: 22px; font-weight: 800; margin: 0; }
.modal-close {
  background: var(--bg); border: none; border-radius: 8px; width: 36px; height: 36px;
  flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-body { display: flex; flex-direction: column; gap: 16px; }
.modal-body .label { font-weight: 700; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.modal-body p { margin: 0; font-size: 15px; line-height: 1.6; }
.modal-duration { background: var(--bg); border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.modal-duration span { font-weight: 700; font-size: 14px; }

/* ---------- Contact page ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 36px; }
.contact-col { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 24px; }
.contact-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.contact-card iframe { border: 0; display: block; }
.contact-card-body { padding: 24px; }
.contact-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row svg { flex-shrink: 0; margin-top: 2px; }
.contact-row .title { font-weight: 700; font-size: 15px; }
.contact-row .val { color: var(--muted); font-size: 14px; }
.rating-box {
  background: var(--dark); border-radius: 14px; padding: 22px 24px; display: flex; align-items: center; gap: 14px;
}
.rating-box .title { color: #fff; font-weight: 800; font-size: 15px; }
.rating-box .sub { color: var(--muted-2); font-size: 13px; }

.form-box {
  flex: 1; min-width: 320px; background: #fff; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  padding: 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff;
}
.field textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; text-align: center; }
.form-success {
  display: none; background: var(--orange-pale); border: 1px solid var(--orange); color: var(--orange-dark);
  border-radius: 8px; padding: 16px; font-weight: 700; font-size: 14px; text-align: center;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: #fff; padding: 60px 20px 30px; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col.wide { min-width: 240px; }
.footer-logo { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.footer-logo .accent { color: var(--orange); }
.footer-col p { color: var(--muted-2); font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-heading { font-weight: 700; margin-bottom: 14px; font-size: 15px; }
.footer-coords { color: #D1D5DB; font-size: 14px; line-height: 1.8; }
.footer-coords a { color: #fff; font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links a { color: #D1D5DB; }
.footer-links a:hover { color: #fff; }
.footer-zone { color: #D1D5DB; font-size: 14px; line-height: 1.7; }
.footer-bottom {
  max-width: 1280px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid #3F3F3F;
  color: var(--muted-2); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

@media (max-width: 640px) {
  .hero { min-height: 520px; }
}
