/* === Header === */
.main-header {
  position: relative;
  height: 80vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/atelier-vegetal03.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-content {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px !important;
  z-index: 10;
}

.logo img {
  width: 150px;
  height: auto;
  display: block;
}

/* === style des liens du menu BS === */
.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 5px 0 !important;
  margin: 0 12px;
  border-bottom: 2px solid transparent;
  display: inline-block;
}

.navbar-nav .nav-link:hover {
  color: #8bc34a !important;
  border-bottom-color: green;
}

/* === bouton bootstrap pour le burger === */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5) !important;
  padding: 6px 10px !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3C/svg%3e") !important;
}

.btn-cta {
  background-color: green;
  padding: 10px 20px;
  color: #ffffff !important;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
}

.btn-cta:hover {
  background-color: green;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4);
}

.hero-text {
  z-index: 5;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease-out;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* === Section & Content === */
.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 80px 50px;
  gap: 40px;
  background-color: #ffffff;
}

.feature-item {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background-color: #ffffff;
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 3.5rem;
  color: green;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounceIn 1s ease-out;
}

.feature-item h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.mid-accroche {
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
  font-style: italic;
  font-size: 1.3rem;
  color: #2c2c2c;
  max-width: 800px;
  margin: 0 auto;
  display: block;
  animation: revealGlitchBlur 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.mid-accroche img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.galerie {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 40px 10px;
}

.carte {
  width: 300px;
  border: 1px solid #2c2c2c;
  text-align: center;
}

.carte img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.carte h3 {
  font-size: 15px;
  color: #2c2c2c;
  margin: auto;
}

.carte p {
  font-size: 15px;
  color: #2c2c2c;
  margin: auto;
  line-height: 1.4;
  padding-bottom: 20px;
}

.carte a {
  font-weight: bold;
  color: #2c2c2c;
}

.highlight {
  display: flex;
  align-items: center;
  padding: 80px 50px;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight-img,
.highlight-text {
  flex: 1;
}

.highlight-img img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  height: auto;
}

.highlight-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333333;
}

.highlight-text p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #666666;
}

/* ==Footer===*/
footer {
  background-color: #2c2c2c;
  color: #ffffff;
  text-align: center;
  padding: 40px 10px;
}

.footer-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: green;
}

.footer-content p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  opacity: 0.8;
}

.social-nav {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.social-nav a {
  color: #ffffff;
  margin: 0 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-nav a:hover {
  color: green;
  transform: scale(1.2) rotate(10deg);
}

.copyright {
  margin: 0;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* === Responsive === */

/* === Tablette === */
@media (max-width: 1023px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }

  .features {
    justify-content: center;
  }

  .feature-item {
    min-width: 200px;
    max-width: 45%;
  }

  .highlight {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
}

/* === Mobile & Burger === */
@media (max-width: 767px) {
  .header-content {
    padding: 15px 20px !important;
    background-color: rgba(0, 0, 0, 0.9);
  }

  .navbar-collapse {
    background-color: transparent;
    padding-top: 15px;
    width: 100%;
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 10px 0 !important;
    margin: 5px 0;
    width: 100%;
    border-bottom: none;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
    display: block;
    margin: 10px auto 0 auto;
  }

  .main-header {
    height: auto;
    min-height: 70vh;
    justify-content: center;
  }

  .hero-text {
    margin-top: 80px;
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

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

  .features {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
  }

  .feature-item {
    max-width: 100%;
    width: 100%;
  }

  .highlight-text h2 {
    font-size: 1.8rem;
  }
}

/* === Animations (Keyframes) === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    opacity: 1;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealGlitchBlur {
  0% {
    opacity: 0;
    filter: blur(20px) brightness(1.5);
    transform: scale(0.95) skewX(10deg);
    letter-spacing: -2px;
  }
  60% {
    opacity: 0.8;
    filter: blur(4px) brightness(1.2);
    transform: scale(1.02) skewX(-5deg);
    letter-spacing: 2px;
  }
  85% {
    opacity: 1;
    filter: blur(1px) brightness(1);
    transform: scale(0.99) skewX(0deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) skewX(0deg);
    letter-spacing: normal;
  }
}
