/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #ffffff;
}

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

/* LAYOUT */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-body {
  flex: 1;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  min-height: 90px;
  padding: 0 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(229, 231, 235, 0.6);

  transition: background 0.3s ease;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 35px;
  align-items: center;
}

.navbar a {
  text-decoration: none;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 500;

  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #b45309;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  width: 110px;
}

.navbar.scrolled {
  background: rgba(255, 255, 255);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* HERO */

.hero-section {
  padding: 140px 20px;

  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("assets/hero_section.jpeg");

  background-size: cover;
  background-position: center;

  text-align: center;

  color: white;
}

.hero-content {
  max-width: 850px;
  margin: auto;
}

.hero-tag,
.section-tag {
  display: inline-block;

  padding: 8px 18px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.15);

  font-size: 0.85rem;

  margin-bottom: 25px;
}

.hero-section h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);

  line-height: 1.1;

  margin-bottom: 25px;
}

.hero-section p {
  max-width: 650px;

  margin: auto auto 40px;

  font-size: 1.1rem;

  line-height: 1.7;
}

.btn {
  display: inline-block;

  padding: 16px 35px;

  border-radius: 50px;

  background: #b45309;

  color: white;

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s;
}

.btn:hover {
  background: #92400e;

  transform: translateY(-3px);
}

/* TITRES SECTIONS */

.services,
.projects,
.contact {
  padding: 100px 20px;
}

.services,
.contact {
  background: #ffffff;
}

.projects {
  background: #f8fafc;
}

.services > h2,
.section-header h2,
.contact h2 {
  font-size: 2.5rem;

  margin-bottom: 15px;
}

.services > p,
.section-header p,
.contact p {
  color: #6b7280;
}

/* SERVICES */

.services {
  text-align: center;
}

.cards {
  max-width: 1200px;

  margin: 50px auto 0;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.card {
  background: white;

  border-radius: 20px;

  overflow: hidden;

  border: 1px solid #e5e7eb;

  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card img {
  height: 220px;

  width: 100%;

  object-fit: cover;
}

.card h2 {
  font-size: 1.3rem;

  padding: 20px 20px 0;
}

.card .content {
  padding: 0 25px 30px;

  color: #6b7280;

  line-height: 1.6;
}

/* REALISATIONS */

.projects {
  text-align: center;
}

.section-header {
  max-width: 700px;

  margin: 0 auto 50px;
}

.projects-grid {
  max-width: 1200px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 30px;
}

.project-card {
  background: white;

  border-radius: 20px;

  overflow: hidden;

  text-align: left;

  border: 1px solid #e5e7eb;

  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.project-card img {
  width: 100%;

  height: 320px;

  object-fit: cover;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  margin-top: 0;

  font-size: 1.4rem;
}

.project-content p {
  color: #6b7280;

  line-height: 1.6;
}

/* CONTACT */

.contact {
  background: #f8fafc;
}

.contact-content {
  max-width: 700px;

  margin: auto;

  text-align: center;
}

.contact form {
  margin-top: 40px;

  display: flex;

  flex-direction: column;

  gap: 20px;
}

.contact input,
.contact textarea {
  width: 100%;

  padding: 17px 20px;

  border-radius: 12px;

  border: 1px solid #d1d5db;

  font-size: 1rem;

  font-family: inherit;
}

.contact textarea {
  min-height: 160px;

  resize: vertical;
}

.contact button {
  padding: 17px;

  border: none;

  border-radius: 50px;

  background: #111827;

  color: white;

  font-size: 1rem;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

.contact button:hover {
  background: #b45309;
}

/* FOOTER */

.page-footer {
  background: #111827;

  color: white;

  padding: 70px 20px 25px;
}

.footer-content {
  max-width: 1200px;

  margin: auto;

  display: grid;

  grid-template-columns: 2fr 1fr 1fr;

  gap: 50px;
}

.footer-brand h3 {
  font-size: 1.5rem;

  margin-top: 0;
}

.footer-brand p {
  color: #9ca3af;

  line-height: 1.7;

  max-width: 350px;
}

.footer-links,
.footer-legal {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.footer-links h4,
.footer-legal h4 {
  margin-bottom: 10px;

  font-size: 1rem;
}

.footer-links a,
.footer-legal a {
  color: #9ca3af;

  text-decoration: none;

  transition: 0.3s;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;

  margin: 50px auto 0;

  padding-top: 25px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  text-align: center;
}

.footer-bottom p {
  margin: 0;

  color: #9ca3af;

  font-size: 0.9rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .navbar {
    padding: 20px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .logo {
    position: static;

    transform: none;

    margin: auto;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 100px 20px;
  }
}

@media (max-width: 500px) {
  .services,
  .projects,
  .contact {
    padding: 70px 20px;
  }

  .services > h2,
  .section-header h2,
  .contact h2 {
    font-size: 2rem;
  }

  .project-card img {
    height: 230px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;

    gap: 35px;
  }
}
