/* =========================================================
   JB Multiservices 68 - Feuille de style
   Recréation statique du site Wix (responsive, sans framework)
   ========================================================= */

:root {
  --navy:        #072337;   /* fond sombre : header, hero, footer */
  --navy-text:   #052748;   /* titres sur fond crème */
  --cream:       #f5ece6;   /* fond des sections claires + texte clair */
  --cream-dark:  #ece0d8;
  --input-bg:    #ccc2bd;   /* fond des champs de formulaire */
  --req:         #d64d3f;   /* astérisque champ obligatoire */
  --font: 'Syne', 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy-text);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: .3px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 40px;
  transition: all .2s ease;
}
.btn-outline {
  color: #fff;
  border: 2px solid #fff;
  background: transparent;
  padding: 14px 34px;
  font-size: 1rem;
}
.btn-outline:hover { background: #fff; color: var(--navy); }

.btn-solid {
  color: var(--cream);
  background: var(--navy-text);
  border: none;
  padding: 16px 60px;
  font-size: 1.15rem;
}
.btn-solid:hover { background: #0a355f; }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 120px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { height: 104px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 500;
  transition: opacity .2s ease;
}
.main-nav a:hover { opacity: .7; }
.main-nav .nav-call {
  border: 2px solid var(--cream);
  border-radius: 40px;
  padding: 8px 22px;
  font-size: 1.1rem;
}
.main-nav .nav-call:hover { background: var(--cream); color: var(--navy); opacity: 1; }

/* Bouton menu (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 34px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 460px;
  background: url('images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 35, 55, .45);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: 1px;
}
.hero-clip {
  display: block;
  margin: 0 auto 30px;
  height: 300px;
  width: auto;
  max-width: 82%;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  background: #000;
  object-fit: cover;
}

/* ================= BIENVENUE ================= */
.welcome {
  background: var(--cream);
  padding: 60px 0 40px;
  text-align: center;
}
.welcome h2 {
  color: var(--navy-text);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  margin: 0 0 34px;
}
.welcome p {
  color: var(--navy-text);
  font-size: 1.25rem;
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: left;
}
.welcome strong { font-weight: 700; }

.brand-logo {
  margin: 40px auto 0;
  max-width: 420px;
}
.brand-logo img { width: 100%; height: auto; }

/* ================= SERVICES ================= */
.services {
  background: var(--cream);
  padding: 20px 0 70px;
}
.services-title {
  color: var(--navy-text);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  text-align: center;
  margin: 50px 0 40px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 40px;
}
.service-block {
  background: #fff;
  border-radius: 10px;
  padding: 30px 32px;
  box-shadow: 0 10px 26px rgba(5, 39, 72, .10);
}
.service-block h3 {
  color: var(--navy-text);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.3;
}
.service-block p {
  color: var(--navy-text);
  margin: 0 0 16px;
  font-size: 1.02rem;
}
.service-block ul {
  margin: 0;
  padding-left: 22px;
}
.service-block li {
  color: var(--navy-text);
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
}
.services-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.services-track::-webkit-scrollbar { height: 8px; }
.services-track::-webkit-scrollbar-thumb {
  background: var(--navy-text);
  border-radius: 4px;
}
.service-card {
  flex: 0 0 auto;
  width: 300px;
  margin: 0;
  scroll-snap-align: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(5, 39, 72, .18);
}
.service-card img {
  width: 300px;
  height: 534px;
  object-fit: cover;
}

/* ---------- Avant / Après ---------- */
.services-intro {
  text-align: center;
  color: var(--navy-text);
  font-size: 1.1rem;
  margin: -22px 0 34px;
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-bottom: 20px;
}
.ba-card {
  margin: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(5, 39, 72, .10);
}
.ba-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #fff;
}
.ba-imgs img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.ba-card figcaption {
  text-align: center;
  color: var(--navy-text);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 10px 16px;
}

/* ================= DEMANDE DE DEVIS ================= */
.quote {
  background: var(--cream);
  padding: 30px 0 70px;
}
.quote h2 {
  color: var(--navy-text);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  margin: 0 0 34px;
}
.quote-form { max-width: 900px; }
.quote-form .row {
  display: flex;
  gap: 20px;
}
.quote-form .field {
  flex: 1;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.field-code { max-width: 200px; }
.quote-form label {
  color: var(--navy-text);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.req { color: var(--req); }
.quote-form input,
.quote-form select,
.quote-form textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy-text);
  background: var(--input-bg);
  border: none;
  border-radius: 2px;
  padding: 14px 14px;
  width: 100%;
}
.quote-form textarea { resize: vertical; min-height: 150px; }
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--navy-text);
  outline-offset: 1px;
}
.form-submit {
  text-align: center;
  margin-top: 20px;
}

/* ================= WAVE DIVIDER ================= */
.wave-divider {
  background: var(--cream);
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}
.wave-divider path { fill: var(--navy); }

/* ================= FOOTER ================= */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 0 0 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 20px 24px 0;
}
.footer-map {
  position: relative;
  min-height: 280px;
  border-radius: 4px;
  overflow: hidden;
  background: #0d3050;
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--cream);
  text-decoration: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 20px;
}
.map-fallback span {
  font-weight: 400;
  font-size: .95rem;
  opacity: .85;
  text-decoration: underline;
}
.footer-map iframe {
  position: relative;
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
  filter: saturate(1.05);
}
.footer-info h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 14px 0 10px;
  color: var(--cream);
}
.footer-info p {
  font-size: 1.05rem;
  margin: 0 0 24px;
  color: var(--cream);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding-top: 16px;
}
.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.05rem;
  transition: opacity .2s ease;
}
.footer-links a:hover { opacity: .7; }
.footer-social img {
  width: 26px;
  height: 26px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-info h3 { font-size: 1.6rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 400px; padding: 10px 0 20px; }
  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 1.2rem;
  }
  .main-nav .nav-call {
    width: auto;
    margin-top: 8px;
    padding: 10px 26px;
  }
  .welcome p { font-size: 1.1rem; }
  .quote-form .row { flex-direction: column; gap: 0; }
  .field-code { max-width: 100%; }
  .header-inner { min-height: 88px; }
  .header-logo { height: 72px; }
  .service-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-block { padding: 24px 22px; }
  .hero-clip { height: 230px; max-width: 74%; }
}

@media (max-width: 480px) {
  .service-card, .service-card img { width: 250px; }
  .service-card img { height: 445px; }
  .btn-solid { padding: 14px 40px; width: 100%; }
}
