:root {
  --primary-color: #590808;
  --secondary-color: #913d34;
  --accent-color: #ffe5dc;
  --highlight-color: #7ca4ff;
  --text-color: #333;
  --background-color: #fff;
  --border-color : orangered ;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
}
img {
  width: 90px;
}

main {
  padding-top: 70px;
}

h1 {
  color: white;
  font-size: 2.5rem !important;
  font-weight: 700;
  
}
/* navbar styles */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(89, 8, 8, 0.9);
}

.navbar-brand,
.nav-link {
  color: var(--accent-color) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--highlight-color) !important;
}

.navbar-toggler {
  border-color: var(--accent-color);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 229, 220, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* navbar styles ends */
/* hero section */
.hero {
  background: linear-gradient(rgba(89, 8, 8, 0.8), rgba(145, 61, 52, 0.8)),
    no-repeat center center;
  background-size: cover;
  height: 30vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
/* end hero section */

.hero h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.contacts .map iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
}

.contact-addresses h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  margin-bottom: 1rem;
}

.list-unstyled i {
  margin-right: 0.5rem;
  color: var(--highlight-color);
}

/* Floating Label Container */
.form-div {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Input & Textarea Styling */
.form-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 5px;
  outline: none;
  background: none;
  position: relative;
  z-index: 1;
  
}

/* Label Styling */

/* Ensure label stays above the input field */

.form-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1rem;
  color: var(--text-color);
  padding: 0 0.3rem;
  transition: 0.3s ease-in-out;
  z-index: 10; /* Ensure label is above input */

}

/* Move Label Up When Input is Focused */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: var(--secondary-color);
  background-color: white;
  z-index: 10;
  padding: 0 5px;
  
}

/* Ensure Input Has No Placeholder */
.form-input::placeholder {
  opacity: 0;
  border-color: 2px solid var(--border-color);
}


.contact-form .btn-primary:hover {
  box-shadow: 0 10px 36px rgba(235, 64, 12, 0.5);
  border: 2px solid var(--border-color);
}

/* footer styles */
.footer {
  background-color: var(--primary-color);
  color: var(--accent-color);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--highlight-color);
  margin-bottom: 1.5rem;
}

.footer .about-us p {
  margin-bottom: 1.5rem;
}

.footer .list-inline-item a {
  color: var(--accent-color);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.footer .list-inline-item a:hover {
  color: var(--highlight-color);
}

.footer .contact-list {
  list-style: none;
  padding: 0;
}

.footer .contact-list li {
  margin-bottom: 1rem;
}

.footer .contact-list i {
  margin-right: 0.5rem;
  color: var(--highlight-color);
}

.copyright {
  border-top: 1px solid var(--secondary-color);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}





.map-container {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;

  margin: 2rem auto; /* Centrer la carte */
}

/* Footer structuré comme dans l'index */
.footer .top-footer {
  display: flex;
  justify-content: space-around;
  padding: 0 20px;
}

.footer .about-us,
.footer .contact-us {
  flex: 1;
  max-width: 45%;
}

.footer .about-us h5,
.footer .contact-us h5 {
  color: var(--highlight-color);
  margin-bottom: 1.5rem;
}

.footer .about-us p {
  margin-bottom: 1.5rem;
}

.footer .list-inline {
  padding: 0;
  list-style: none;
}

.footer .list-inline-item {
  display: inline-block;
  margin-right: 1rem;
}

.footer .list-inline-item a {
  color: var(--accent-color);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.footer .list-inline-item a:hover {
  color: var(--highlight-color);
}

.footer .contact-list {
  list-style: none;
  padding: 0;
}

.footer .contact-list li {
  margin-bottom: 1rem;
}

.footer .contact-list i {
  margin-right: 0.5rem;
  color: var(--highlight-color);
}

.copyright {
  border-top: 1px solid var(--secondary-color);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .l-form {
    padding: 2rem;
  }

  .form__title {
    font-size: 1.8rem;
  }

  .l-form {
    width: 100%;
    max-width: 100%;
  }

  .form__input,
  textarea,
  select {
    font-size: 0.9rem;
  }

  .form__button {
    font-size: 1rem;
  }

  .footer .top-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer .about-us,
  .footer .contact-us {
    max-width: 100%;
    margin-bottom: 2rem;
  }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}