/* Modern Navbar Styling */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #ffc107;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover {
  color: #ffc107 !important;
  transform: translateY(-2px);
}

#Home {
    position: relative;
    background-image: url('src/store-image.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: #ffffff;
    padding: 100px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    z-index: 0;
}

#Home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

#Home h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

#Home p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
  /* Optional: add subtle text shadow to improve readability */
  #Home h1, #Home p {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  }
  .products{
    background-color: #f0f0f0;
    padding: 50px 0;
  }
  .products h1{
    color: #333;
    text-align: center;
    margin-bottom: 50px;
    }
  .card-body{
    max-height: 150px;
    overflow-y: auto;
  }
  .card-body::-webkit-scrollbar {
    width: 6px;
  }
  .card-body::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 5px;
  } 
  /* Style de base pour les cartes */
.products {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

.products h1 {
  color: #333 !important;
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 15px;
}

.products h1::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, transparent, #ffc107, transparent);
}

.products h1::after {
  content: '★';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #f8f9fa;
  padding: 0 15px;
  color: #ffc107;
  font-size: 1.2rem;
}

.card {
  border: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: white;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 193, 7, 0.1));
  opacity: 0;
  transition: all 0.4s ease;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  opacity: 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  border: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

.card-img-top {
  transition: transform 0.8s ease;
  height: 200px;
  object-fit: contain;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  background: linear-gradient(to right, #ffc107, #ff9800);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
}

.card:hover .card-title {
  opacity: 1;
  transform: scale(1.05);
}

.card-text {
  color: #6c757d;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  margin-bottom: auto;
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffc107;
  margin-top: 1rem;
  padding: 0.5rem;
  text-align: center;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.price::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffc107, transparent);
}
.contact {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" stroke="%23ffc107" stroke-width="0.5" fill="none" opacity="0.1"/></svg>') repeat;
  opacity: 0.1;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 2rem;
  background: linear-gradient(120deg, #ffc107, #ff9800);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, transparent, #ffc107, transparent);
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.contact .form-floating {
  position: relative;
}

.contact .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 1rem;
  height: auto;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.contact .form-control:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
  background: white;
}

.contact .form-floating label {
  padding-left: 1rem;
  color: #6c757d;
}

.contact .form-floating label i {
  margin-right: 0.5rem;
}

.contact-btn {
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  background: linear-gradient(45deg, #ffc107, #ff9800);
  border: none;
  position: relative;
  overflow: hidden;
}

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

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

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

.contact-btn i {
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.contact-btn:hover i {
  transform: translateX(3px);
}

footer {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  padding-bottom: 2rem;
}

footer h5, footer h6 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

footer h5::after, footer h6::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: #ffc107;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

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

.footer .social-links a {
  margin-right: 1rem;
  font-size: 1.2rem;
}

.footer .social-links a:hover {
  transform: translateY(-3px);
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffc107;
  color: black;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #ffca2c;
  transform: scale(1.1);
}
