@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&family=Roboto:wght@300;400;500&display=swap");

:root {
  --gold: #d4af37;
  --gold-dark: #b5952f;
  --black: #000000;
  --darker: #0f0f0f;
  --dark: #1a1a1a;
  --gray: #888888;
  --white: #ffffff;
}

body {
  background-image: url("/assets/img/bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
   background-attachment: fixed;

  font-family: "Roboto", sans-serif;
  background-color: var(--black);
  color: var(--white);
}

/* Typography */
.font-oswald {
  font-family: "Oswald", sans-serif;
}
.text-gold {
  color: var(--gold) !important;
}
.text-gray {
  color: var(--gray) !important;
}
.bg-darker {
  background-color: var(--darker);
}
.bg-black {
  background-color: var(--black);
}

/* Titre avec contour (Outline Text) */
.text-outline-gold {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  font-weight: 700;
}

.letter-spacing-2 {
  letter-spacing: 2px;
}
.letter-spacing-3 {
  letter-spacing: 3px;
}

/* Navbar */
.navbar {
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}
.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--white) !important;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 80%;
}

/* Buttons with Skew Effect (Biaisé) */
.btn-skew {
  border-radius: 0;
  transform: skewX(-15deg);
  transition: all 0.3s ease;
}
.btn-skew span {
  display: inline-block;
  transform: skewX(15deg); /* Counter skew for text */
}
.btn-gold {
  background-color: var(--gold);
  color: var(--black);
  border: 2px solid var(--gold);
}
.btn-gold:hover {
  background-color: transparent;
  color: var(--gold);
}
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--black);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
    center/cover no-repeat fixed; /* fixed = parallax simple */
  position: relative;
}
.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  /* Ajout d'un dégradé bas pour fondre avec la section suivante */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.8) 80%,
    #000 100%
  );
}

/* Scroll Mouse Animation */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 20px;
  position: relative;
}
.mouse::before {
  content: "";
  width: 3px;
  height: 6px;
  background: var(--gold);
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  animation: scrollMouse 2s infinite;
}
@keyframes scrollMouse {
  0% {
    top: 5px;
    opacity: 1;
  }
  100% {
    top: 20px;
    opacity: 0;
  }
}

/* Sections */
.py-100 {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Image Frame Effect */
.image-frame {
  position: relative;
  z-index: 1;
}
.image-frame img {
  width: 100%;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
.image-frame:hover img {
  filter: grayscale(0%);
}
.frame-border {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  z-index: -1;
  transition: transform 0.3s ease;
}
.image-frame:hover .frame-border {
  transform: translate(10px, 10px);
}

/* Gallery Overlay */
.gallery-item {
  position: relative;
  overflow: hidden;
  height: 300px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.8); /* Gold transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Utility */
.divider {
  width: 60px;
  height: 3px;
}
.hover-gold:hover {
  color: var(--gold) !important;
  transition: 0.3s;
}
.bg-service {
  background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
    url("https://images.unsplash.com/photo-1634480491893-1b32d2b5167e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-attachment: fixed;
  background-size: cover;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .display-1 {
    font-size: 3.5rem;
  }
  .hero-section {
    background-attachment: scroll;
  } /* Disable parallax on mobile for performance */
  .frame-border {
    display: none;
  }
  .py-100 {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}
