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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0e0e0e;
  color: #e6dac4;
  font-family: 'Urbanist', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.btn {
  padding: 0.7rem 1.5rem;
  border: 1px solid #e6dac4;
  border-radius: 12px;
  background: transparent;
  color: #e6dac4;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
}

.btn:hover {
  background: #e6dac4;
  color: #0e0e0e;
}

.btn.secondary {
  margin-top: 1rem;
}

.main-nav {
  display: flex;
  align-content: center;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  height: 90px;
  padding: 0 64px;
  background-color: #0e0e0e;
  border: 1px solid #222;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  z-index: 999;
  transition: width 0.6s ease, padding 0.6s ease, height 0.4s ease;
  overflow: visible;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.logo {
  position: relative;
  transition: left 0.6s ease, transform 0.6s ease;
  cursor: pointer;
  z-index: 1000;
}

.logo a img {
  height: 40px;
  transition: transform 0.6s ease, height 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  transition: opacity 0.4s ease;
}

.nav-links a {
  font-size: 1.3rem;
  font-weight: 500;
  color: #e6dac4;
  transition: color 0.3s ease;
}

.main-nav.compact {
  width: 180px;
  padding: 0 64px;
  height: 90px;
  overflow: hidden;
}

.main-nav.compact .navbar-container {
  justify-content: center;
}

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

.main-nav.compact .nav-links {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 2rem;
}

@media (hover: hover) and (pointer: fine) {
  .logo a img:hover {
    height: 41px;
  }

  .nav-links a:hover {
    color: #d3b88c;
  }

  .main-nav.compact:hover {
    width: 90%;
    max-width: 700px;
    padding: 2rem 4rem;
    height: 90px;
  }

  .main-nav.compact:hover .navbar-container {
    justify-content: space-between;
  }

  .main-nav.compact:hover .logo {
    position: relative;
    left: 0;
    transform: translateX(0);
  }

  .main-nav.compact:hover .nav-links {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url('images/motif-rose-noire.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 700;
  color: #D8CFBC;
  margin: 0 3rem;
}

.hero p {
  margin: 3rem auto;
  max-width: 600px;
  color: #FFFBF4;
  font-weight: 400;
  font-size: 1rem;
}

.about {
  padding: 8rem 2rem;
  background: #1a1a19;
  display: flex;
  justify-content: center;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  gap: 2rem;
}

.about-image {
  flex: 1 1 300px;
  max-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  border: 2px solid #1a1a19;
}

.about-text {
  flex: 2 1 500px;
  max-width: 800px;
  color: #e6dac4;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #FFFBF4;
}

.work {
  padding-bottom: 200px;
  background: #0e0e0e;
  margin: 100px 3rem 0;
}

.work h2 {
  text-align: center;
  font-size: 2.2rem;
  margin: 3rem;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 0 auto;
}

.work-item {
  position: relative;
}

.work-item img {
  width: 100%;
  height: auto;
  border: 2px solid #222;
  border-radius: 15px;
  display: block;
}

.work-item p {
  text-align: center;
  margin-top: 0.5rem;
  color: #FFFBF4;
  font-weight: 400;
  font-size: 1.2rem;
}

.footer {
  background: #1a1a1a;
  color: #e6dac4;
  padding: 2rem 1rem;
  border-top: 1px solid #222;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  flex-direction: column;
  font-weight: 500;
}

.contact {
  display: flex;
  justify-content: center;
  margin-top: 100px;
}

.footer .social-icons {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
  justify-content: center;
}

.footer .social-icons img {
  width: 60px;
  height: 60px;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.footer .social-icons img:hover {
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  .main-nav {
    top: 50px;
    width: 180px;
    padding: 0.35rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90px;
    overflow: hidden;
  }

  .main-nav.compact {
    height: 90px;
    justify-content: flex-start;
  }

  .main-nav.open {
    height: 280px;
    width: 180px;
    padding-top: 20px;
    justify-content: flex-start;
  }

  .main-nav.open .logo {
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

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

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .main-nav.open .nav-links {
    padding-top: 300px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(50%);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    padding: 1rem;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-container p {
    flex: 1;
    text-align: center;
  }
}
