* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background-color: #0d0d0d;
  color: #f2f2f2;
  line-height: 1.6;
}

header {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.8rem 0;
  background-color: rgba(0, 0, 0, 0.95);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f2f2f2;
  text-decoration: none;
  z-index: 1001;
  position: relative;
}

.logo span {
  color: #e63946;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1001;
}

nav {
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #e63946;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover:after {
  width: 100%;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;

  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(./assets/PICT0090.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

.hero-content span {
  font-size: 30px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
/* Correction pour l'animation du bouton */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #e63946;
  color: #f2f2f2;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative; /* Ajout de position relative */
  overflow: hidden; /* Gestion du débordement */
  z-index: 1; /* Assurer que le bouton est au-dessus */
}

.btn:hover {
  background-color: #c1121f;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajout d'une ombre au survol */
}

.btn:active {
  transform: translateY(-1px); /* Effet au clic */
}
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: #e63946;
  bottom: -10px;
  left: 25%;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
  padding-right: 2rem;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay-content {
  text-align: center;
  padding: 1rem;
}

.gallery-item-overlay-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.gallery-item-overlay-content p {
  font-size: 0.9rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.skill-item {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-10px);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e63946;
}

.skill-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.event-item {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.event-image {
  flex: 1;
  min-width: 250px;
}

.event-image img {
  width: 100%;
  border-radius: 8px;
}

.event-content {
  flex: 2;
  min-width: 300px;
}

.event-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.event-content .date {
  color: #e63946;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.label {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-link {
  color: #e63946;
  text-decoration: none;
  font-size: 1rem;
  word-break: break-word;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 480px) {
  .contact-form {
    padding: 1.5rem;
  }

  .label,
  .contact-link {
    font-size: 0.95rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  background-color: #2a2a2a;
  border: none;
  border-radius: 4px;
  color: #f2f2f2;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-btn {
  background-color: #e63946;
  color: #f2f2f2;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-btn:hover {
  background-color: #c1121f;
}

footer {
  background-color: #0a0a0a;
  padding: 2rem 0;
  text-align: center;
}

.social-links {
  margin-bottom: 1.5rem;
}

.social-links a {
  display: inline-block;
  margin: 0 0.5rem;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #e63946;
}

.copyright {
  font-size: 0.9rem;
  color: #aaa;
}

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

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

  .section-title h2 {
    font-size: 2rem;
  }

  .about-text {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .menu-toggle {
    display: block;
    color: #f2f2f2;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding-top: 80px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    margin-top: 0;
  }

  nav ul li {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 0.8rem 0;
    width: 100%;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .gallery-item {
    height: 200px;
  }

  .event-item {
    padding: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Modal for gallery images */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f2f2f2;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-caption {
  margin: 20px auto;
  width: 80%;
  text-align: center;
  color: #f2f2f2;
}

/* Lightbox navigation */
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #f2f2f2;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  transition: 0.3s ease;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
  color: #e63946;
}
