:root {
  --color1: #c1a57d;
  --color2: #262626;
}

html {
  height: 100%;
}

body {
  height: 100%;
  position: relative;
  overflow-x: hidden;
  padding-top: 100px;
}

div.bg-img {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
}

.masthead {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.masthead:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
}

.masthead .masthead-content {
  position: relative;
  max-width: 40rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.masthead .masthead-content h1, 
.masthead .masthead-content .h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #fff, var(--color1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.masthead .masthead-content p {
  font-size: 1.2rem;
}

.masthead .masthead-content p strong {
  font-weight: 700;
}

@media (min-width: 992px) {
  .masthead {
    width: 75vw;
    min-height: 0;
    padding-bottom: 0;
  }
  .masthead:before {
    transform: skewX(-9deg);
    transform-origin: top right;
  }
  .masthead .masthead-content {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 2rem;
    padding-right: 7rem;
  }
  .masthead .masthead-content h1, 
  .masthead .masthead-content .h1 {
    font-size: 3.5rem;
  }
  .masthead .masthead-content p {
    font-size: 1.3rem;
  }	
}

@media (min-width: 1200px) {
  .masthead {
    width: 65vw;
  }
}

.logo {
  position: absolute;
  height: 100%;
  top: 12rem;
  right: 12rem;
  width: auto;
  animation: float 6s ease-in-out infinite;
  z-index: 5;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.social-icons {
  position: relative;
  z-index: 5 !important; /* Force le z-index */
}

.social-icons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 4rem;
  width: 4rem;
  border-radius: 100rem;
  transition: all 0.3s ease;
  background: var(--color2) !important;
  border: 2px solid transparent;
}

.social-icons .btn:hover {
  background: var(--color1) !important;
  transform: translateY(-5px) rotate(5deg);
  border-color: var(--color1);
  box-shadow: 0 10px 25px rgba(193, 165, 125, 0.4);
}

@media (min-width: 992px) {
  .social-icons {
    position: absolute;
    height: 100%;
    top: 0;
    right: 2.5rem;
    width: auto;
    z-index: 5;
  }
}

@media (max-width: 1199px) {
  .logo {
    display: none !important;
  }
}

.bg-insta {
  background-color: #1a1a1a;
}

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 30px rgba(193, 165, 125, 0.1);
  transition: all 0.3s ease;
  z-index: 10000 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
}

.navbar-brand img {
  height: 80px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.nav-link {
  position: relative;
  transition: all 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color1), #e8c9a1);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* ========== BUTTONS ========== */
.btn-instant {
  --bs-btn-color: #fff;
  --bs-btn-bg: #c1a57d;
  --bs-btn-border-color: #c1a57d;
  --bs-btn-hover-color: #343434;
  --bs-btn-hover-bg: #FFF;
  --bs-btn-hover-border-color: #FFF;
  --bs-btn-focus-shadow-rgb: 74, 111, 111;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-instant::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-instant:hover::before {
  left: 100%;
}

.btn-instant:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(193, 165, 125, 0.4);
}

.btn-instant-invert {
  --bs-btn-color: #fff;
  --bs-btn-bg: #c1a57d;
  --bs-btn-border-color: #c1a57d;
  --bs-btn-hover-color: #FFF;
  --bs-btn-hover-bg: #262626;
  --bs-btn-hover-border-color: #262626;
  --bs-btn-focus-shadow-rgb: 74, 111, 111;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-instant-invert::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-instant-invert:hover::before {
  left: 100%;
}

.btn-instant-invert:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(38, 38, 38, 0.4);
}

/* ========== CAROUSEL ========== */
.carousel {
  position: relative;
  z-index: 1; /* Assurez-vous que ce soit inférieur à celui de la navbar */
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
  filter: brightness(0.95);
  transition: all 0.5s;
}

.carousel-item.active img {
  filter: brightness(1);
  transform: scale(1.02);
}

.carousel-inner {
  border-radius: 20px;
  overflow: hidden;
}

.carousel-caption {
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent) !important;
  backdrop-filter: blur(5px);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(193, 165, 125, 0.8);
  border-radius: 50%;
  padding: 20px;
}

/* ========== SECTIONS ========== */
section {
  position: relative;
  z-index: 1;
}

.section-title {
  color: var(--color2);
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color1), transparent);
  animation: expand 2s ease-in-out infinite;
}

@keyframes expand {
  0%, 100% { width: 60px; }
  50% { width: 100px; }
}

/* ========== INFO CARDS ========== */
.info-card {
  background: linear-gradient(135deg, white, #fafafa);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(193, 165, 125, 0.1), transparent);
  transition: all 0.5s;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(193, 165, 125, 0.2);
}

.info-card:hover::before {
  top: -20%;
  right: -20%;
}

.info-card i {
  color: var(--color1);
  font-size: 3rem;
  margin-bottom: 20px;
  transition: all 0.4s;
  position: relative;
  z-index: 1;
}

.info-card:hover i {
  transform: scale(1.2) rotate(5deg);
}

#contact .info-card i {
  font-size: 1.5rem;
}

/* ========== MAP ========== */
.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
  position: relative;
}

.map-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--color1), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 20px;
  pointer-events: none;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, var(--color2), #1a1a1a);
  color: white;
  padding: 50px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color1), transparent);
}

footer a {
  color: var(--color1);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color1);
  transition: width 0.3s;
}

footer a:hover {
  color: #e8c9a1;
  transform: translateX(5px);
}

footer a:hover::after {
  width: 100%;
}

/* ========== GENERAL ========== */
a {
  color: var(--color1);
  text-decoration: underline;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ========== BOUTON SCROLL TO TOP ========== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color1), #d4a574);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(193, 165, 125, 0.4);
  transition: all 0.3s ease;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, #d4a574, var(--color1));
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(193, 165, 125, 0.6);
}

.scroll-top-btn:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  /* Réduire le logo du footer sur mobile */
  footer .img-fluid {
    max-width: 300px;
    width: 300px;
  }  

}

/* Mobile optimizations */
@media (max-width: 768px) {
  .carousel-item img {
    height: 300px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .info-card {
    padding: 30px 20px;
  }
}