@charset "UTF-8";
.header {
  background: #151515 url("../images/bg_homepage.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.header .text-container {
  z-index: 10;
}

#typing-text {
  visibility: hidden;
}

.navbar {
  transition: all 0.5s ease-in-out;
}

.navbar-sticky {
  opacity: 0.8;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.about-img {
  width: 400px !important;
}

.board {
  background: #151515 url("../images/bg_homepage.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.board::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.board .container {
  z-index: 10;
}

.carousel-inner {
  height: 600px;
  background: #000;
  border-radius: 2rem;
}

.carousel-item {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.carousel-item img {
  height: 100%;
  object-fit: contain;
}

.training-content p.lead {
  flex: 1 1 60%;
}

.training-images {
  flex: 1 1 40%;
}

.map iframe {
  left: 0;
  top: 0;
  height: 400px;
  width: 100%;
  border: none;
}

.contact_form {
  background: #151515 url("../images/bg_homepage.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.contact_form::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.contact_form .container {
  z-index: 10;
}

.lazy-section {
  opacity: 0;
  transform: translateY(20px); /*petit décalage vers le bas */
  transition: opacity 600ms ease, transform 600ms ease;
}

.lazy-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.slide {
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

/* Décalage initial selon direction */
.slide[data-direction=left] {
  transform: translateX(-150px);
}

.slide[data-direction=right] {
  transform: translateX(150px);
}

/* Quand la section devient visible */
.lazy-section.in-view .slide {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 200ms; /* petit délai pour que l'animations se fasse après celle du texte*/
}

.btn {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Effet quand on survole */
.btn:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 4px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px); /* petit effet de "flottement" */
}

/* Effet quand on clique */
.btn:active {
  transform: translateY(2px); /* le bouton s’enfonce */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.shdw {
  display: inline-block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.rounded-top-5 {
  border-top-left-radius: 1.5rem !important;
  border-top-right-radius: 1.5rem !important;
}

#apod-card {
  border-radius: 1rem; /* équivalent de rounded-5 */
  overflow: hidden; /* on coupe tout ce qui dépasse des coins */
}

/* On enlève la vilaine bordure du footer */
#apod-card .card-footer {
  border-top: none;
}

.social-icon {
  transition: transform 0.2s ease-in-out;
}

.social-icon:hover {
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .header .social i {
    font-size: 30px;
  }
  .header .roles {
    font-size: 18px !important;
  }
  .about-content {
    flex-direction: column;
  }
  .meetus-content {
    flex-direction: column;
  }
  .navbar {
    background: var(--bs-dark);
    height: 60px;
    position: relative;
  }
  .logo {
    width: 50px;
  }
  .navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
  }
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
  }
  .navbar-nav .nav-link {
    padding-left: 0.5rem; /* espace à gauche pour les liens */
    padding-right: 0.5rem;
  }
  .carousel-inner {
    height: 400px;
  }
  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}
@supports (-webkit-touch-callout: none) {
  .background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../images/bg_homepage.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
  }
  .header {
    background: none;
  }
  .background_board {
    position: fixed;
    top: 0;
    left: 0;
    background-image: url("../images/bg_homepage.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
  }
  .board {
    background: none;
  }
  .background_contact {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../images/bg_homepage.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
  }
  .contact_form {
    background: none;
  }
}
