/* ============================================================
   BIMVIZER — Design System
   Couleurs:  bg=#f8f8f8  text=#151515  primary=#3a73b6
              gold=#a26c13  footer-gold=#F5A623  footer-bg=#151515
   Polices:   Arial (body)  Merriweather (headings)
   Max-width: 960px (content)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Root tokens ---- */
:root {
  --bg:          #f8f8f8;
  --text:        #151515;
  --primary:     #3a73b6;
  --gold:        #a26c13;
  --footer-gold: #F5A623;
  --footer-bg:   #151515;
  --teal:        #50E3C2;
  --white:       #ffffff;
  --max-w:       960px;
  --radius:      4px;
  --transition:  0.25s ease;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.25;
}
h1 { font-size: 40px; }
h2 { font-size: 33px; }
h3 { font-size: 28px; }
h4 { font-size: 23px; }
h5 { font-size: 19px; }
h6 { font-size: 16px; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
.section { padding: 64px 0; }
.section--white  { background: var(--white); color: var(--text); }
.section--light  { background: var(--bg);    color: var(--text); }
.section--dark   { background: var(--footer-bg); color: var(--white); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
  border: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover { opacity: 0.88; }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--ghost:hover { background: var(--primary); color: var(--white); }
.btn--white {
  background: var(--white);
  color: var(--primary);
}
.btn--white:hover { background: var(--bg); }

/* ---- Grid ---- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.row--reverse { flex-direction: row-reverse; }
.col-6 { flex: 0 0 calc(50% - 16px); max-width: calc(50% - 16px); }
.col-4 { flex: 0 0 calc(33.333% - 22px); max-width: calc(33.333% - 22px); }
.col-3 { flex: 0 0 calc(25% - 24px); max-width: calc(25% - 24px); }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
.logo-link img {
  height: 48px;
  width: auto;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover,
.site-nav a.active { background: var(--bg); color: var(--primary); }
.site-nav a.nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 9px 18px;
}
.site-nav a.nav-cta:hover { opacity: 0.88; }

/* Hamburger */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('../assets/images/nature.png') center/cover no-repeat;
  color: var(--white);
  padding: 80px 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 600px; }
.hero h1 {
  color: var(--white);
  font-size: 40px;
  margin-bottom: 20px;
}
.hero p {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: 32px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 { color: var(--gold); margin-bottom: 20px; }
.about-text p  { color: var(--text); margin-bottom: 16px; }
.about-text .btn { margin-top: 8px; }
.about-images {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 16px;
  align-items: start;
  perspective: 1000px;
  padding: 24px 40px 48px 16px;
}

/* ── 3D parallelepiped block effect ─────────────────────────── */
.img-3d-wrap {
  position: relative;
  display: block;
  border-radius: 2px;
  transform: rotateY(-18deg) rotateX(5deg);
  transform-style: preserve-3d;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.img-3d-wrap::before,
.img-3d-wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(58,115,182,0.22), rgba(21,21,21,0.42));
  transform-style: preserve-3d;
}
.img-3d-wrap::before {
  top: 10px;
  right: -18px;
  width: 18px;
  height: calc(100% - 2px);
  transform: rotateY(90deg);
  transform-origin: left center;
  filter: brightness(0.72);
}
.img-3d-wrap::after {
  left: 9px;
  bottom: -18px;
  width: calc(100% - 1px);
  height: 18px;
  transform: rotateX(90deg);
  transform-origin: center top;
  filter: brightness(0.62);
}
.img-3d-wrap:hover {
  transform: rotateY(-10deg) rotateX(3deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.2);
}
.img-3d-wrap--secondary {
  margin-top: 52px;
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.3),
    0 6px 14px rgba(0, 0, 0, 0.2);
}
.img-3d-wrap img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  transform: translateZ(18px);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-section { padding: 48px 0; background: var(--bg); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item h2 {
  color: var(--primary);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-item p { color: var(--text); font-size: 16px; }

/* ============================================================
   SERVICE SECTIONS (alternating image/text)
   ============================================================ */
.service-section { padding: 64px 0; }
.service-section--overlay {
  position: relative;
  background-color: #50E3C2;
  background-image:
    linear-gradient(rgba(21,21,21,0.72), rgba(21,21,21,0.72)),
    var(--service-bg-img, url('../assets/images/hero-bg.png'));
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.service-section--overlay h2 { color: var(--white); }
.service-section--overlay p  { color: rgba(255,255,255,0.9); }

.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.service-layout--reverse { direction: rtl; }
.service-layout--reverse > * { direction: ltr; }

.service-text h2 { color: var(--gold); margin-bottom: 16px; }
.service-section--overlay .service-text h2 { color: var(--white); }
.service-text p  { margin-bottom: 16px; }
.service-text .btn { margin-top: 8px; }
.service-image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 420px;
}

/* ============================================================
   SERVICES CARDS PAGE
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.service-card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.service-card__body { padding: 24px; }
.service-card__body h3 { color: var(--primary); margin-bottom: 10px; }
.service-card__body p  { color: var(--text); font-size: 15px; margin-bottom: 16px; }

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.project-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform var(--transition);
}
.project-card:hover { transform: translateY(-4px); }
.project-card__img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.project-card__body { padding: 20px; }
.project-card__body h3 { color: var(--primary); font-size: 20px; margin-bottom: 8px; }
.project-card__meta { font-size: 13px; color: #666; margin-bottom: 8px; }
.project-card__body p  { font-size: 15px; color: var(--text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { color: var(--gold); margin-bottom: 24px; }
.contact-info-list { margin-bottom: 32px; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
}
.contact-info-list li span.icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.map-wrapper {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}
.map-wrapper img { width: 100%; }

/* Form */
.contact-form h2 { color: var(--gold); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group .required { color: #c00; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.form-check input { margin-top: 3px; flex-shrink: 0; }
.form-check label { font-size: 14px; color: var(--text); }
.form-submit { text-align: left; }
.form-msg { margin-top: 12px; font-size: 14px; }
.form-msg--error { color: #c00; }
.form-msg--success { color: #2a7a2a; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 72px 0 48px;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('../assets/images/nature.png') center/cover no-repeat;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   SECTION TITLE BLOCK
   ============================================================ */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { color: var(--gold); margin-bottom: 12px; }
.section-title p  { font-size: 17px; color: #555; max-width: 680px; margin: 0 auto; }
.section-title--white h2 { color: var(--white); }
.section-title--white p  { color: rgba(255,255,255,0.85); }

/* ============================================================
   ABOUT PAGE — TEAM / VALUES
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.value-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.value-card__icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card__icon svg { transition: transform 0.3s ease; }
.value-card:hover .value-card__icon svg { transform: scale(1.1); }

/* ---- Services nav (sticky, premium) ---- */
.service-card[id] { scroll-margin-top: 110px; }
section[id]       { scroll-margin-top: 90px;  }

.services-nav {
  position: sticky;
  top: 80px;
  z-index: 100;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.services-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  background: #f1f5f9;
  color: #0f172a;
  transition: all 0.3s ease;
}
.services-nav a:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}
.services-nav a.active {
  background: #2563eb;
  color: #fff;
}

@media (max-width: 768px) {
  .services-nav {
    top: 64px;
    gap: 8px;
    padding: 10px;
  }
  .services-nav a { padding: 8px 12px; font-size: 13px; }
}

/* ---- Services nav dropdown (header) ---- */

.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-radius: var(--radius);
  min-width: 260px;
  padding: 6px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { display: flex; }
.nav-dropdown__menu a {
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown__menu a:hover { background: var(--bg); color: var(--primary); }

/* ---- Clients slider ---- */
.clients-slider {
  overflow: hidden;
  padding: 40px 0;
}
.clients-slider .slider-track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: clients-scroll 20s linear infinite;
}
.clients-slider .slider-track img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.clients-slider .slider-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}
@keyframes clients-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.value-card h3 { color: var(--primary); font-size: 20px; margin-bottom: 10px; }
.value-card p  { color: var(--text); font-size: 15px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.team-card { text-align: center; }
.team-card__img {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  background: var(--bg);
  border: 3px solid var(--primary);
}
.team-card h3 { color: var(--primary); margin-bottom: 4px; }
.team-card p  { font-size: 14px; color: #666; }

/* ============================================================
   AUDIT BIM PAGE
   ============================================================ */
.process-steps {
  counter-reset: steps;
  margin-top: 40px;
}
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}
.step-num {
  counter-increment: steps;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-body h3 { color: var(--gold); margin-bottom: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer-col h4 {
  font-family: 'Merriweather', serif;
  color: var(--footer-gold);
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--footer-gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: background var(--transition);
}
.social-links a:hover { background: var(--footer-gold); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  h1 { font-size: 35px; }
  h2 { font-size: 29px; }
  h3 { font-size: 24px; }
  .about-grid,
  .service-layout,
  .contact-grid { grid-template-columns: 1fr; }
  .service-layout--reverse { direction: ltr; }
  .about-images { grid-template-columns: 1fr; padding: 16px 20px 32px 8px; }
  .about-images .img-3d-wrap--secondary { display: none; }
  .img-3d-wrap,
  .img-3d-wrap--secondary {
    transform: rotateX(4deg) rotateY(-8deg);
  }
  .img-3d-wrap:hover { transform: rotateX(3deg) rotateY(-6deg); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .section { padding: 48px 0; }
  .hero { min-height: 420px; padding: 60px 0; }
  .hero h1 { font-size: 28px; }

  /* Mobile nav */
  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 4px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 16px; border-radius: var(--radius); }

  /* Mobile dropdown: flatten inside the column nav */
  .nav-dropdown { display: flex; flex-direction: column; align-items: stretch; }
  .nav-dropdown > a::after { display: none; }
  .nav-dropdown__menu {
    position: static;
    display: flex;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .nav-dropdown__menu a { padding: 8px 12px; font-size: 14px; }

  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .col-6, .col-4, .col-3 { flex: 0 0 100%; max-width: 100%; }
}
