:root {
  --blue: #0d47a1;
  --blue-light: #f5f9ff;
  --accent: #0d6efd;
  --muted: #333;
  --border: #cfcfcf;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #fff;
  color: var(--muted);
  scroll-behavior: smooth;
  padding-top: 75px;
}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  padding: 0.6rem 1rem;
  transition: background-color 0.25s ease;
}
.navbar-brand {
  font-weight: 700;
  color: var(--blue);
}
.navbar.scrolled {
  background: var(--accent) !important;
}
.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
  color: #fff !important;
}

body.dark-mode {
  background: #121212;
  color: #e4e4e4;
}

body.dark-mode .navbar {
  background: #1e1e1e !important;
}

body.dark-mode .navbar .nav-link {
  color: #e4e4e4 !important;
}

body.dark-mode .navbar .navbar-brand {
  color: #fff !important;
}

body.dark-mode .btn-cta {
  background: #0d6efd;
  color: white;
}

body.dark-mode .btn-outline-secondary {
  border-color: #e4e4e4;
  color: #e4e4e4;
}

body.dark-mode .btn-outline-secondary:hover {
  background: #e4e4e4;
  color: #121212;
}

body.dark-mode .box,
body.dark-mode .devis,
body.dark-mode .contact {
  background: rgba(30, 30, 30, 0.9);
  color: #f1f1f1;
  border-color: #333;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.05);
}

body.dark-mode h1,
body.dark-mode h3 {
  color: #0d6efd;
}

body.dark-mode .site-footer {
  background: #1a1a1a;
  color: #ccc;
  border-top-color: #333;
}

body.dark-mode #hero {
  background-image: linear-gradient(
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.6)
  ), url("/assets/images/jon-tyson-_o0aonObEt8-unsplash.jpg"); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#darkToggle {
  transition: all 0.3s ease;
}

#hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(13, 71, 161, 0.4), rgba(13, 71, 161, 0.4)),
    url("/assets/images/jon-tyson-_o0aonObEt8-unsplash.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 8rem 1.5rem;
  color: #fff;
}

#hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

#hero .subtitle {
  font-size: 1.3rem;
  color: #f3f3f3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.content-wrap {
  max-width: 1800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "about services"
    "arguments services"
    "arguments zones";
  gap: 2rem;
  width: 100%;
}

.box {
  border: 2px solid var(--border);
  background: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.30; /* plus visible */
  z-index: 0;
  transition: opacity 0.4s ease;
}
.box:hover::before {
  opacity: 0.35;
}

.about::before {
  background-image: url("");
}
.services::before {
  background-image: url("");
}
.arguments::before {
  background-image: url("");
}
.zones::before {
  background-image: url("");
}

.box * {
  position: relative;
  z-index: 1;
}

.box h3 {
  margin: 0 0 1rem;
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
}
.box p {
  margin: 0;
  line-height: 1.9;
  font-size: 1.15rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.zones ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.zones ul li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}
.highlight {
  margin-top: 18px;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.15rem;
}

.devis,
.contact {
  border: 2px solid var(--border);
  padding: 60px;
  text-align: center;
  background: #fff;
  margin-top: 40px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.contact {
  background: var(--blue-light);
}

.btn-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.2);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}
.btn-cta:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
}

.small-divider {
  width: 90px;
  height: 5px;
  background: var(--accent);
  margin: 12px auto 18px;
  border-radius: 3px;
}

.site-footer {
  margin-top: 60px;
  padding: 20px 0;
  text-align: center;
  color: #666;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1400px) {
  .content-wrap {
    max-width: 90vw;
    padding: 0 5rem;
  }
  .box {
    padding: 80px;
    font-size: 1.2rem;
  }
  .box h3 {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .site-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "about"
      "services"
      "arguments"
      "zones";
  }
  .box {
    padding: 30px;
  }
  .content-wrap {
    padding: 0 1.5rem;
  }
  #hero {
    min-height: 50vh;
    background-attachment: scroll;
  }
  #hero h1 {
    font-size: 2.2rem;
  }
  #hero .subtitle {
    font-size: 1.2rem;
  }
}
