: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);
}

main {
  padding-top: 70px;
}

h2 {
  color: var(--primary-color);
  font-size: 2.5rem !important;
}
.navbar-brand img {
  height: 50px;
  width: auto;
}
/* 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.4), rgba(145, 61, 52, 0.8)),
    url(images/background.jpg) no-repeat center center;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--accent-color);
}

.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 */

/* Objectifs Stratégiques section */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--secondary-color);
  font-weight: 600;
}
/* Objectifs Stratégiques section end*/

/* departements section */
.departements {
  background-color: #f8f9fa;
}

.dept-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dept-card:hover {
  transform: translateY(-5px);
}

.dept-card i {
  font-size: 2.5rem;
  color: var(--primary-color); 
  margin-bottom: 1rem;
}

.dept-card h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.dept-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.animate__animated {
  animation-duration: 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

.services .card {
  text-align: center;
  padding: 2rem;
  background-color: var(--accent-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.services .card i {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
/* departements section end*/

/* project section  */
.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);
}

.project-card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.project-theme {
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.card-text strong {
  color: var(--primary-color);
  min-width: 120px;
  display: inline-block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  animation: fadeIn 0.6s ease-out forwards;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}
.project-card:nth-child(3) {
  animation-delay: 0.4s;
}
.evenements {
  background-color: #fff;
}
/* project section  end*/
/* event section */
.event-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-image {
  height: 200px;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(89, 8, 8, 0.9),
    rgba(145, 61, 52, 0.9)
  );
}

.gradient-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.gradient-overlay h3 {
  color: white;
  font-size: 2rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.event-card.online {
  border-left-color: #4caf50;
}

.event-card.online .event-badge {
  background: #4caf50;
}

.event-content {
  padding: 1.5rem;
}

.trainer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.trainer-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary-color);
  flex-shrink: 0;
}

.trainer-details h4 {
  color: var(--secondary-color);
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
}

.position {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.event-meta {
  display: grid;
  gap: 0.8rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #555;
}

.meta-item i {
  width: 25px;
  text-align: center;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .event-image {
    height: 150px;
  }

  .gradient-overlay h3 {
    font-size: 1.5rem;
  }

  .trainer-info {
    flex-direction: column;
    text-align: center;
  }

  .trainer-photo {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 992px) {
  .gradient-overlay h3 {
    font-size: 2.2rem;
  }
}

/* event section end */

/* gallery section */
section.gallery .gallery-title h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

section.gallery .gallery-work a.gallery-link {
  position: relative;
  display: block;
  overflow: hidden;
}

section.gallery .gallery-work .gallery-link img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

section.gallery .gallery-work .gallery-link .gallery-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  color: var(--accent-color);
  background-color: rgba(89, 8, 8, 0.9);
  z-index: 2;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

section.gallery .gallery-work .gallery-link .gallery-hover i {
  font-size: 2.5rem;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

section.gallery .gallery-work .gallery-link:hover .gallery-hover {
  opacity: 1;
}

section.gallery .gallery-work .gallery-link:hover .gallery-hover i {
  transform: scale(1);
}

section.gallery .gallery-work .gallery-overlay {
  background-color: rgba(0, 0, 0, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

section.gallery .gallery-work .gallery-overlay:target {
  opacity: 1;
  visibility: visible;
}

section.gallery .gallery-overlay .overlay-img img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

section.gallery .gallery-overlay .overlay-text {
  padding: 2rem;
}

section.gallery .gallery-overlay .overlay-text h4 {
  font-size: 1.75rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

section.gallery .gallery-overlay .overlay-text ul {
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

section.gallery .gallery-overlay .overlay-text li a {
  color: var(--highlight-color);
  font-size: 0.9rem;
}

section.gallery .gallery-overlay .overlay-text p {
  font-size: 1.1rem;
  color: var(--accent-color);
  line-height: 1.6;
  margin-bottom: 2rem;
}

section.gallery .gallery-overlay .overlay-text a.btn {
  background-color: var(--secondary-color);
  color: var(--accent-color);
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

section.gallery .gallery-overlay .overlay-text a.btn:hover {
  background-color: var(--primary-color);
}

section.gallery .gallery-overlay .overlay-text a.close {
  color: var(--accent-color);
  font-size: 2rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

section.gallery .gallery-overlay .overlay-text a.close:hover {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  section.gallery .gallery-title h3 {
    font-size: 2rem;
  }

  section.gallery .gallery-overlay .row {
    flex-direction: column;
  }

  section.gallery .gallery-overlay .overlay-text h4 {
    font-size: 1.5rem;
  }

  section.gallery .gallery-overlay .overlay-text p {
    font-size: 1rem;
  }
}

/* gallery styles ends */
.shaking {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}


