/* ============================================================
   MESUREPRO INC. – Global Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-hero:  #1a3fc4;   /* rich royal blue from reference image */
  --blue-dark:  #0d2a8a;
  --blue-main:  #1e50d4;
  --blue-light: #3b6ee8;
  --orange:     #f07c1a;   /* orange CTA button */
  --orange-hover:#d96a0a;
  --white:      #ffffff;
  --gray-bg:    #f5f7fa;
  --gray-light: #eef1f6;
  --gray-text:  #374151;
  --gray-mid:   #6b7280;
  --gray-border:#d1d5db;
  --font:       'Inter', 'Roboto', Arial, sans-serif;
  --radius:     14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-text);
  line-height: 1.6;
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Pousse le footer en bas quand le contenu est court */
.footer { margin-top: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── HEADER ───────────────────────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img   { width: 220px; height: auto; display: block; }
.footer-logo-img { height: 44px; width: auto; display: block; filter: brightness(0) invert(1); }

/* Nav */
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav-link {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-text);
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-link:hover      { color: var(--blue-main); background: var(--gray-light); }
.nav-link--active    { color: var(--blue-main); font-weight: 600; }

/* Badges */
.header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.badge-img {
  height: 58px;
  width: auto;
  display: block;
}
.header-badges .badge-img:first-child {
  height: 80px;
}
.badge-iso {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-main);
  border: 2px solid var(--blue-main);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero-wrap {
  background: var(--gray-bg);
  padding: 32px 32px 40px;
}
.hero-card {
  max-width: 1216px;
  margin: 0 auto;
  background: var(--blue-hero);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 380px;
  position: relative;
}

/* Hero left – text */
.hero-content {
  padding: 56px 52px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.hero-title {
  color: var(--white);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
}
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 460px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Primary (orange) button */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 13px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); }
.btn-primary--sm   { padding: 11px 22px; font-size: 0.85rem; }
.btn-primary--white {
  background: var(--white);
  color: var(--blue-main);
}
.btn-primary--white:hover { background: var(--gray-light); }

/* Secondary (outlined dark) button */
.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: var(--white);
  padding: 13px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); }

/* Hero right – image */
.hero-image-wrap {
  position: relative;
  overflow: hidden;
}
.hero-image-clip {
  position: absolute;
  inset: 0;
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a4fd8 0%, #1a3ab8 30%, #0f2a8f 60%, #162080 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Decorative lab illustration */
.lab-visual {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(255,255,255,.15) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,.03) 20px,
      rgba(255,255,255,.03) 40px
    );
}

/* ── TAGLINE BAND ─────────────────────────────────────────── */
.tagline-band {
  text-align: center;
  padding: 72px 24px;
  background: var(--white);
}
.tagline-band h2 {
  color: var(--blue-main);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.tagline-band p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--gray-mid);
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services {
  background: var(--gray-bg);
  padding: 72px 32px;
}
.section-title {
  text-align: center;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-mid);
  font-size: 0.9rem;
  margin-bottom: 48px;
}
.services-grid {
  max-width: 1216px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-top: 3px solid var(--blue-main);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30,80,212,.12);
}
.service-card--wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .service-card--wide { grid-column: span 2; } }

.service-icon { width: 36px; height: 36px; margin-bottom: 2px; }
.service-icon svg {
  width: 36px;
  height: 36px;
  stroke: #111827;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.service-card h3 { color: #111827; font-size: 0.95rem; font-weight: 700; }
.service-card p  { font-size: 0.85rem; color: var(--gray-mid); flex: 1; }
.card-link { color: var(--blue-main); font-size: 0.82rem; font-weight: 600; margin-top: auto; transition: color .2s; }
.card-link:hover { color: var(--orange); }
.iso-tag { position: absolute; top: 12px; right: 14px; font-size: 0.65rem; font-weight: 700; color: var(--blue-main); border: 1px solid var(--blue-main); border-radius: 3px; padding: 1px 6px; letter-spacing: 0.04em; }

.other-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 5px 16px;
  margin: 4px 0;
}
.other-list li { font-size: 0.83rem; color: var(--gray-mid); padding-left: 12px; position: relative; }
.other-list li::before { content: '–'; position: absolute; left: 0; color: var(--blue-light); }

/* ── CERTIFICATION PAGE ───────────────────────────────────── */
.certification {
  background: var(--white);
  padding: 72px 32px;
}
.certification-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.cert-text h2 { color: #111827; font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; letter-spacing: 0.04em; }
.cert-text p  { color: var(--gray-mid); font-size: 0.93rem; line-height: 1.85; margin-bottom: 20px; }
.cert-list    { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.cert-list li { color: var(--gray-text); font-size: 0.92rem; }

.cert-accreditation-link { margin-top: 28px; }
.cert-portal-link {
  display: inline-block;
  color: var(--blue-main);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
  line-height: 1.6;
}
.cert-portal-link:hover { color: var(--orange); }

.cert-image-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.cert-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

/* ── WHY US ───────────────────────────────────────────────── */
.why-us { background: #0d2a8a; padding: 72px 32px; }
.why-us-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-text h2  { color: var(--white); font-size: 1.3rem; font-weight: 800; margin-bottom: 18px; }
.why-text p   { color: #a8c4e0; font-size: 0.93rem; line-height: 1.8; margin-bottom: 24px; }
.why-list     { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.why-list li  { color: #cce0f5; font-size: 0.9rem; }

.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 24px 18px;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num   { color: var(--white); font-size: 1.7rem; font-weight: 800; }
.stat-label { color: #90b8d8; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── INDUSTRIES ───────────────────────────────────────────── */
.industries { background: var(--gray-bg); padding: 72px 32px; }
.industries-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.industry-item {
  text-align: center;
  padding: 26px 12px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.industry-item:hover { border-color: var(--blue-main); box-shadow: 0 4px 16px rgba(30,80,212,.1); }
.industry-icon { width: 40px; height: 40px; margin-bottom: 10px; }
.industry-icon svg { width: 40px; height: 40px; stroke: #111827; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.industry-item span { font-size: 0.72rem; font-weight: 700; color: #111827; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── CTA BAND ─────────────────────────────────────────────── */
.cta-band { background: var(--blue-hero); padding: 64px 32px; text-align: center; }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-band h2 { color: var(--white); font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,.78); margin-bottom: 28px; font-size: 0.95rem; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 20px 32px;
  text-align: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* ── DEVIS / CONTACT PAGES ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-hero) 0%, var(--blue-dark) 100%);
  padding: 80px 32px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 0.95rem; }
.page-hero small { color: rgba(255,255,255,.6); font-size: 0.82rem; }

.devis-section { background: var(--gray-bg); padding: 64px 32px; }
.devis-wrap {
  max-width: 860px; margin: 0 auto;
  background: var(--white); padding: 48px 52px;
  border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--blue-main); letter-spacing: 0.03em; }
.form-group input,
.form-group select,
.form-group textarea {
  border: none; border-bottom: 2px solid var(--blue-main);
  padding: 10px 4px; font-size: 0.9rem; font-family: var(--font);
  color: var(--gray-text); background: transparent; outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea {
  resize: vertical; min-height: 110px;
  border: 1px solid #d1d5db; border-radius: 6px; padding: 10px 12px;
}
.form-group textarea:focus { border-color: var(--blue-main); }
.form-group select { cursor: pointer; }

.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; }
.form-checkbox input[type="checkbox"] { margin-top: 3px; cursor: pointer; }
.form-checkbox label { font-size: 0.85rem; color: var(--gray-text); }
.form-checkbox a { color: var(--blue-main); text-decoration: underline; }

.btn-submit {
  display: inline-block; background: var(--blue-main); color: var(--white);
  padding: 13px 36px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.05em; border: none; border-radius: 8px;
  cursor: pointer; margin-top: 20px; transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* Contact page */
.contact-section { background: var(--gray-bg); padding: 72px 32px; }
.contact-wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.8fr; gap: 48px; align-items: start;
}
.contact-info h2 { color: #111827; font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; }
.contact-info p  { font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }
.contact-detail  { display: flex; flex-direction: column; gap: 16px; }
.contact-item    { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; }
.contact-item strong { color: #111827; display: block; margin-bottom: 2px; }
.contact-item > span { font-size: 1.1rem; }
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 2px;
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: #111827;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.contact-map { border-radius: 10px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.contact-map iframe { display: block; }

/* Services preview (index.html) */
.services-preview { background: var(--gray-bg); padding: 72px 32px; }
.services-preview-icons {
  max-width: 900px; margin: 0 auto 0;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px;
}
.preview-item {
  background: var(--white); border-radius: 10px; padding: 20px 10px;
  text-align: center; border: 1px solid var(--gray-border);
  transition: border-color .2s, box-shadow .2s;
}
.preview-item:hover { border-color: var(--blue-main); box-shadow: 0 4px 14px rgba(30,80,212,.1); }
.preview-item span { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.preview-item p { font-size: 0.72rem; font-weight: 600; color: #374151; line-height: 1.3; }

/* ── HAMBURGER BUTTON ─────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-card { grid-template-columns: 60% 40%; }
  .certification-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .why-us-inner { grid-template-columns: 1fr; gap: 36px; }
  .why-stats { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .devis-wrap { padding: 32px 24px; }
  .header-badges { gap: 6px; }
  .badge-img { height: 44px; }
  .services { padding: 48px 20px; }
  .certification { padding: 48px 20px; }
  .why-us { padding: 48px 20px; }
  .industries { padding: 48px 20px; }
  .cta-band { padding: 48px 20px; }
  .tagline-band { padding: 48px 20px; }
  .contact-section { padding: 48px 20px; }
  .devis-section { padding: 48px 20px; }
  .hero-wrap { padding: 20px; }
}

@media (max-width: 640px) {
  /* Header */
  .header-inner { height: 70px; padding: 0 10px; gap: 8px; }
  .logo-img { width: 140px; }
  .badge-img { height: 30px; }
  .header-badges .badge-img:first-child { height: 42px; }
  .header-badges { gap: 4px; }
  .nav-toggle { display: flex; }

  /* Nav becomes full-width dropdown */
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--gray-border);
    flex-direction: column;
    padding: 8px 0 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
    z-index: 98;
  }
  .nav.nav--open { display: flex; }
  .nav-link { padding: 13px 24px; border-radius: 0; font-size: 1rem; }
  .nav-link:hover { background: var(--gray-light); }

  /* Sections padding */
  .services { padding: 36px 16px; }
  .certification { padding: 36px 16px; }
  .why-us { padding: 40px 16px; }
  .industries { padding: 36px 16px; }
  .cta-band { padding: 40px 16px; }
  .tagline-band { padding: 40px 16px; }
  .contact-section { padding: 36px 16px; }
  .devis-section { padding: 36px 16px; }
  .hero-wrap { padding: 12px; }
  .hero-content { padding: 36px 24px; }
  .page-hero { padding: 52px 20px; }

  /* Grids */
  .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .why-stats { grid-template-columns: 1fr; gap: 12px; }
  .services-grid { grid-template-columns: 1fr; }

  /* Devis form */
  .devis-wrap { padding: 24px 16px; }

  /* Typography */
  .section-title { font-size: 1.1rem; }
  .tagline-band h2 { font-size: 1.1rem; }
  .why-text h2 { font-size: 1.1rem; }
  .cta-band h2 { font-size: 1.15rem; }

  /* Industry items */
  .industry-item { padding: 18px 8px; }
  .industry-icon { width: 32px; height: 32px; margin-bottom: 6px; }
  .industry-icon svg { width: 32px; height: 32px; }

  /* Cert image */
  .cert-image { max-width: 100%; }
}

@media (max-width: 380px) {
  .logo-img { width: 145px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 1.5rem; }
}
