:root {
  --primary-color: #590808;
  --secondary-color: #913d34;
  --accent-color: #ffe5dc;
  --highlight-color: #7ca4ff;
  --text-color: #333;
  --background-color: #fff;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
}

h1 {
  color: white;
  font-size: 2.5rem !important;
  font-weight: 700;
}
h2 {
  color: var(--primary-color);
  font-size: 2.5rem !important;
}
.navbar-brand img {
  height: 50px;  
  width: auto;   
}
.project-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}

.project-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--secondary-color);
}


/* 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 {
  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 h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Improve text readability */
}
/* team styles */
.team .card {
  text-align: center;
  overflow: hidden;
}

.team .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team .card:hover .card-img-top {
  transform: scale(1.1);
}

.team .card-body {
  background-color: var(--accent-color);
}

.team .card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team .card-text {
  color: var(--secondary-color);
}

/* finich team styles */

/* Call to Action Section Styles */
#cta {
  padding: 6rem 0;
  background: linear-gradient(rgba(89, 8, 8, 0.8), rgba(145, 61, 52, 0.8)),
    no-repeat center center;
}

#cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#cta p {
  font-size: 1.25rem;
  line-height: 1.8;
}

#cta .btn {
  background-color: var(--background-color);
  border: none;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* Section Présentation */
#presentation {
  background-color: var(--background-color);
  padding: 4rem 0;
  overflow: hidden;
}

#presentation .presentations {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

#presentation h2 {
  animation: fadeInDown 1s ease-out;
}

#presentation h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

#presentation h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  animation: fadeInLeft 1s ease-out;
}

#presentation p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  animation: fadeInRight 1s ease-out;
}

#presentation p.text-justify {
  text-align: justify;
}

#presentation img.img-fluid {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-out;
}

#presentation img.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Styles pour la section Texte + Image */
#presentation .row.align-items-center {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#presentation .row.align-items-center h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

#presentation .row.align-items-center p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

#presentation .row.align-items-center img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 400px;
  height: 250px;
}

#presentation .row.align-items-center img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  #presentation h2 {
    font-size: 2rem;
  }

  #presentation h3 {
    font-size: 1.5rem;
  }

  #presentation p {
    font-size: 1rem;
  }

  #presentation .row.align-items-center {
    flex-direction: column;
  }

  #presentation .row.align-items-center img {
    margin-top: 1.5rem;
  }
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

