body {
    padding-top: 56px;
}

.left-aligned {
    margin-left: auto;
}

.bg-dark {
    background-color: #343a40 !important;
}

.bg-brown {
    background-color: #4d2814;
}

/* style header dry lab, entrepreneurship, and competition */
.bg-violet {
    background-color: #5B2045;
    padding: 2rem 0;
}

/* style header wet lab and safety */
.bg-orange {
    background-color: #DF3A03;
    padding: 2rem 0;
}

/* style header project, human practices, and team */
.bg-vert {
    background-color: #16645F;
    padding: 2rem 0;
}

.text-purple {
    color: #E4C0D7; 
}

.text-green {
    color: #8FCD75; 
}

/* style title and subtitle */
.lead {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif; 
}

.lead-titre {
    font-size: 6rem;
    font-weight: bold;
    font-family: 'Baloo 2', cursive;
    text-transform: uppercase;
}

.lead-titre-min {
    font-size: 5.5rem;
    font-weight: bold;
    font-family: 'Baloo 2', cursive;
    text-transform: uppercase;
}

.lead-titre-normal {
    font-size: 6rem;
    font-weight: bold;
    font-family: 'Baloo 2', cursive;
}

.lead-center {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Baloo 2', cursive; 
    align-items: center;
    display: flex;
    justify-content: center;
}

/* style image */
.img-fluid {
    max-width: 80%; 
    height: auto; 
}

.img-logo {
    max-width: 50%; 
    height: auto; 
}

.footer-image img {
    width: 100%; 
    height: auto; 
    display: block;
}

/* Responsive adjustments */

/* Mobile screens */
@media (max-width: 768px) {
    .lead-titre {
        font-size: 3.7rem; /* Reduce font size for small screens */
    }

    .lead-titre-min {
        font-size: 3.2rem; /* Reduce font size for small screens */
    }

    .lead-titre-normal {
        font-size: 3.7rem; /* Reduce font size for small screens */
    }

    .lead {
        font-size: 1rem; /* Smaller font for readability */
    }

    .img-fluid {
        max-width: 50%; /* Ensure images are fully responsive */
    }

    .img-logo {
        max-width: 80%; /* Slightly larger logo */
    }

    .footer-image img {
        width: 100%; /* Footer image adjusted */
    }

    .bg-violet, .bg-orange, .bg-vert {
        padding: 1.5rem 0; /* Adjust padding for mobile screens */
    }
}

@media (max-width: 480px) {

    .lead-titre-min {
        font-size: 2rem; /* Reduce font size for small screens */
    }
    .lead-titre-normal {
        font-size: 2.4rem; /* Reduce font size for small screens */
    }
    .lead-titre {
        font-size: 2.4rem; /* Reduce font size for small screens */
    }
}

/* Tablet screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .lead-titre {
        font-size: 4.7rem; /* Slightly smaller font for tablet screens */
    }

    .lead-titre-min {
        font-size: 4.5rem; /* Slightly smaller font for tablet screens */
    }

    .lead-titre-normal {
        font-size: 4.7rem; /* Slightly smaller font for tablet screens */
    }

    .lead {
        font-size: 1.125rem; /* Adjust font size for tablets */
    }

    .img-fluid {
        max-width: 60%; /* Ensure images adjust for tablet sizes */
    }

    .img-logo {
        max-width: 60%; /* Logo size adjustment */
    }
}

/* Larger screens and desktops */
@media (min-width: 1025px) {
    .lead-titre {
        font-size: 5.7rem; /* Original size for large screens */
    }

    .lead-titre-min {
        font-size: 5.5rem; /* Original size for large screens */
    }

    .lead-titre-normal {
        font-size: 5.7rem; /* Original size for large screens */
    }

    .lead {
        font-size: 1.25rem; /* Original size for large screens */
    }

    .img-fluid {
        max-width: 70%; /* Maintain the size for large screens */
    }

    .img-logo {
        max-width: 50%; /* Maintain the size for large screens */
    }
}


/* CALLOUT */
.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e9ecef;
    border-left-width: 0.25rem;
    border-radius: 0.25rem;
}

.bd-callout h4 {
    margin-bottom: 0.25rem;
}

.bd-callout p:last-child {
    margin-bottom: 0;
}

.bd-callout code {
    border-radius: 0.25rem;
}

.bd-callout + .bd-callout {
    margin-top: -0.25rem;
}

.bd-callout-info {
    border-left-color: #5bc0de;
}

.bd-callout-warning {
    border-left-color: #f0ad4e;
}

.bd-callout-danger {
    border-left-color: #d9534f;
}

/* footer */
footer a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}


.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px;
  /*Fix for safari gap*/
  min-height: 100px;
  max-height: 150px;
  transform: rotate(180deg);
}

/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}


@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

.mirrored {
    transform: scaleX(-1); 
    overflow: visible;
  }



/* Home */
#grad {
    height: 300px;
    background-image: linear-gradient(#93c84a, #f7fff4);
    position: relative;
}

/* Images principales */
.home-image img, 
.home-image2 img {
    margin: 0; /* Supprime les marges */
    padding: 0; /* Supprime les paddings */
    width: 100%; 
    height: auto; 
    display: block;
    position: relative;
    z-index: 2; /* Priorité sur l'empilement */
}

/* Image supplémentaire (extra-image) */
.extra-image {
    position: relative;
    z-index: 1;
    margin-top: -455px; /* Maintien du chevauchement par défaut */
}

.extra-image img {
    width: 100%; 
    height: auto;
    display: block;
    position: relative;
}

/* Image flottante */
.img-top {
    position: absolute;
    top: 16%;
    right: 2%; 
    transform: translate(0, 0); 
    max-width: 9vw; 
    height: auto; 
}

/* Fond vert */
.bg-green {
    background-color: #f7fff4;
    position: relative;
    padding-bottom: 20px;
}

/* Responsivité */
@media (max-width: 1024px) {
    #grad {
        height: 200px;
    }

    /* Responsivité pour extra-image */
    .extra-image {
        margin-top: -300px; /* Réduction du chevauchement */
    }

    .img-top {
        top: 20%;
        max-width: 30vw;
    }
}

@media (max-width: 768px) {
    #grad {
        height: 150px;
    }

    /* Ajustement supplémentaire pour extra-image */
    .extra-image {
        margin-top: -200px; /* Réduction supplémentaire */
    }

    .img-top {
        top: 25%;
        max-width: 15vw;
    }
}

@media (max-width: 480px) {
    #grad {
        height: 100px;
    }

    /* Extra-image totalement visible sur petits écrans */
    .extra-image {
        margin-top: -100px; /* Limiter le chevauchement */
    }

    .img-top {
        top: 30%;
        max-width: 10vw;
    }
}
