/* ===================================================
   BC MÉCANIQUE — Feuille de style
   Palette : navy #1a2332  |  orange #d97120  |  gris clair #f4f4f2
   =================================================== */

:root {
  --navy:       #1a2332;
  --navy-light: #253347;
  --orange:     #d97120;
  --orange-dk:  #b85e18;
  --gray-bg:    #f4f4f2;
  --gray-mid:   #6b7280;
  --white:      #ffffff;
  --text:       #2c2c2c;
  --font:       'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(0,0,0,0.08);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── UTILITAIRES ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section     { padding: 5rem 0; }
section h2  {
  font-size: 1.9rem; font-weight: 700;
  color: var(--navy); text-align: center;
  margin-bottom: 2.5rem;
}
.btn-primary {
  display: inline-block;
  background: var(--orange); color: var(--white);
  padding: .85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer;
  transition: background .2s;
}
.btn-primary:hover { background: var(--orange-dk); }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 200;
  background: rgba(26,35,50,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
}
.logo { display: flex; align-items: center; gap: .7rem; }
.logo-text { color: var(--white); font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  color: #bcc5d0; font-size: .92rem; letter-spacing: .02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }

/* burger (mobile) */
.burger {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--navy);
  background-image: url('../img/hero-bg.jpg');
  background-size: cover; background-position: center;
  position: relative;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,.82) 0%, rgba(26,35,50,.65) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding-top: 5rem;
  max-width: 700px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white); font-weight: 800;
  margin-bottom: .4rem;
}
.slogan {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--orange); font-style: italic;
  margin-bottom: .8rem;
}
.hero-sub {
  font-size: .95rem; color: #9baabd;
  margin-bottom: 2rem; letter-spacing: .03em;
}

/* ── SERVICES ── */
#services { background: var(--gray-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.service-img {
  height: 210px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  background-size: cover; background-position: center;
}
.service-body { padding: 1.5rem; }
.service-body h3 {
  font-size: 1.05rem; color: var(--navy);
  font-weight: 700; margin-bottom: .65rem;
}
.service-body p { color: var(--gray-mid); font-size: .93rem; }

/* ── À PROPOS ── */
#about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.about-img {
  height: 380px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  background-size: cover; background-position: center;
}
.about-text h2 { text-align: left; margin-bottom: 1.25rem; }
.about-text p  { color: var(--gray-mid); margin-bottom: 1rem; }

/* ── CONTACT ── */
#contact { background: var(--navy); }
#contact h2 { color: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}
.contact-info p {
  color: #8fa0b4; font-size: .95rem;
  margin-bottom: .6rem; line-height: 1.6;
}
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #2e3f52;
  background: rgba(255,255,255,.04);
  color: var(--white);
  font-family: var(--font); font-size: .95rem;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--orange);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #4a5f73; }
.contact-form textarea { resize: vertical; }
.form-notice { font-size: .85rem; color: #8fa0b4; min-height: 1.2em; }

/* ── FOOTER ── */
footer {
  background: #111820;
  padding: 1.4rem 0; text-align: center;
}
footer p { color: #3d4f60; font-size: .82rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .burger { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .5rem 0; }

  .about-inner { grid-template-columns: 1fr; }
  .about-img   { height: 260px; }
  .contact-inner { grid-template-columns: 1fr; }
}
