:root {
  --bg: #f5f5f5;
  --bg-alt: #ffffff;
  --primary: #0c3b2e;
  --primary-light: #145c44;
  --accent: #f2b03b;
  --text: #1f1f1f;
  --muted: #666666;
  --radius: 8px;
  --shadow-soft: 0 8px 20px rgba(0,0,0,0.06);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Langues */
body.lang-fr .lang-en {
  display: none;
}

body.lang-en .lang-fr {
  display: none;
}

/* Header */

.site-header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo img {
  height: 64px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.main-nav a {
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--primary);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
}

.lang-switch button {
  border: 1px solid var(--primary);
  background: transparent;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-switch button.active,
.lang-switch button:hover {
  background: var(--primary);
  color: #fff;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */

.hero {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(135deg, #ffffff, #e3f2ec);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 3vw, 3rem);
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.hero-highlight {
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn .phone {
  font-weight: 500;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-light);
}

.btn.secondary {
  border-color: var(--primary);
  color: var(--primary);
  background: #ffffff;
}

.btn.secondary:hover {
  background: #eef7f3;
}

.btn.tertiary {
  border-color: #d0d0d0;
  background: #ffffff;
  color: var(--text);
}

.center {
  text-align: center;
}

/* Home services */

.home-services {
  padding: 3rem 0 2.5rem;
}

.home-services h2,
.why-us h2,
.projects-strip h2,
.cta h2,
.page-header h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--bg-alt);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Why us */

.why-us {
  padding: 2.5rem 0;
  background: #ffffff;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.why-grid ul {
  padding-left: 1.1rem;
}

.why-grid li {
  margin-bottom: 0.5rem;
}

.why-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* Projects strip */

.projects-strip {
  padding: 2.5rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.projects-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* CTA */

.cta {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(135deg, #0c3b2e, #145c44);
  color: #ffffff;
  text-align: center;
}

.cta p {
  margin-bottom: 1rem;
}

/* Page header */

.page-header {
  padding: 2.5rem 0 1.5rem;
  background: #ffffff;
}

/* Services detail */

.services-detail {
  padding: 2.5rem 0 3rem;
}

.service-detail-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.service-detail-card h2 {
  margin-top: 0;
  color: var(--primary);
}

.service-detail-card .image img {
  border-radius: var(--radius);
}

/* Contact */

.contact-section {
  padding: 2.5rem 0 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-info p {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.contact-form {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #cccccc;
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Footer */

.site-footer {
  background: #0c3b2e;
  color: #ffffff;
  padding: 1.1rem 0;
  margin-top: 0;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
}

/* Utils */

.margin-top-lg {
  margin-top: 2rem;
}

/* Responsive */

@media (max-width: 840px) {
  .hero-inner,
  .why-grid,
  .service-detail-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .hero-image {
    order: -1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
  }

  .main-nav li + li {
    border-top: 1px solid #ececec;
    padding-top: 0.4rem;
  }

  .logo img {
    height: 54px;
  }
}