:root {
  --primary: #e87918;
  --primary-dark: #bd5610;
  --dark: #17202a;
  --dark-blue: #101820;
  --text: #555d66;
  --light: #f6f7f9;
  --white: #ffffff;
  --border: #e6e8eb;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
.logo,
.btn,
.nav {
  font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3 {
  color: var(--dark);
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 20px;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 15px;
}

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.container {
  width: min(1120px, 90%);
  margin: auto;
}

/* Navigation */
.header {
  position: fixed;
  z-index: 1000;
  width: 100%;
  background: rgba(16, 24, 32, 0.96);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav a {
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  color: var(--white);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.8rem;
}

/* Hero */
.hero {
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  background:
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=85")
    center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.9), rgba(16, 24, 32, 0.35)),
    linear-gradient(0deg, rgba(16, 24, 32, 0.25), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.hero-tag,
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  margin: 18px 0;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 570px;
  color: #e7e9eb;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  color: var(--dark);
  background: var(--white);
}

.btn-secondary {
  color: var(--white);
  background: var(--dark);
}

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

.btn-light {
  color: var(--dark);
  background: var(--white);
}

.btn-light:hover {
  color: var(--white);
  background: var(--dark);
}

.full-width {
  width: 100%;
}

/* Statistiques */
.stats {
  position: relative;
  background: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 30px 15px;
  color: var(--white);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.stat-item span {
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 100px 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.about-image {
  position: relative;
}

.about-image img {
  height: 530px;
  border-radius: 4px;
}

.experience-badge {
  position: absolute;
  right: -25px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  color: var(--white);
  background: var(--primary);
  text-align: center;
  box-shadow: var(--shadow);
}

.experience-badge strong {
  font-size: 2.3rem;
  font-family: "Montserrat", sans-serif;
}

.experience-badge span {
  font-size: 0.75rem;
}

.about-content p {
  max-width: 560px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 25px 0 30px;
  list-style: none;
}

.check-list li {
  color: var(--dark);
  font-weight: 600;
}

.check-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  margin-right: 10px;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.75rem;
}

/* Services */
.services-section {
  background: var(--light);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-heading p {
  max-width: 580px;
  margin: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  padding: 32px 25px;
  background: var(--white);
  border-bottom: 3px solid transparent;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-7px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  background: #fff0e4;
  border-radius: 50%;
  font-size: 1.8rem;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  min-height: 85px;
  font-size: 0.9rem;
}

.service-card a {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Réalisations */
.heading-flex {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  text-align: left;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: var(--dark);
}

.project-card img {
  height: 410px;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.project-info {
  position: absolute;
  z-index: 1;
  right: 25px;
  bottom: 25px;
  left: 25px;
  color: var(--white);
}

.project-info span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-info h3 {
  margin-top: 5px;
  color: var(--white);
}

/* CTA */
.cta {
  padding: 70px 0;
  color: var(--white);
  background:
    linear-gradient(rgba(16, 24, 32, 0.92), rgba(16, 24, 32, 0.92)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1800&q=80")
    center/cover no-repeat;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta p {
  margin-bottom: 0;
}

.section-label.light {
  color: var(--primary);
}

/* Contact */
.contact {
  background: var(--light);
}

.contact-grid {
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.contact-details div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-details strong {
  color: var(--dark);
}

.contact-details span {
  font-size: 0.9rem;
}

.contact-form {
  padding: 35px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--dark);
  border: 1px solid var(--border);
  outline: none;
  font: inherit;
  resize: vertical;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-message {
  display: none;
  margin-top: 15px;
  color: #218739;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer */
.footer {
  color: #cbd0d5;
  background: var(--dark-blue);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.footer p {
  max-width: 300px;
  margin-top: 15px;
  font-size: 0.9rem;
}

.footer-links,
.socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover,
.socials a:hover {
  color: var(--primary);
}

.copyright {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-columns {
    gap: 40px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid .project-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark-blue);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 16px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 650px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .two-columns,
  .services-grid,
  .projects-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .projects-grid .project-card:last-child {
    grid-column: auto;
  }

  .about-image img {
    height: 400px;
  }

  .experience-badge {
    right: 15px;
  }

  .heading-flex,
  .cta-content {
    display: block;
  }

  .heading-flex .btn,
  .cta-content .btn {
    margin-top: 25px;
  }

  .contact-form {
    padding: 25px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section {
    padding: 70px 0;
  }
}