/* Home Page CSS */

/* Background */
/* Light grey background */
html {
    background-color: #ECEFF3;  
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    /* Background image */
    background: url("../Images/Team_Picture/2024-2025/Team_Picture_scaled.jpg");
    background-size: 100% auto; 
    background-position: top center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.welcome_container h1 {
    color: white;
    font-size: 37px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    font-family: 'Amaranth';
}

nav {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
}

.welcome_container {
  padding-top: 50px;
  padding-bottom: 15%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
}

#home_logo {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Home content */

.content_container {
    background-color: white;
}

.home_img {
  max-width: 1000px;
  width: 90%;
  height: auto;
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
  margin: 0 auto;
}

/* Home container */

/* Home container styles
 * This container holds the main content of the home page.
 * It is composed of two columns:
 * - one with a picture of the section
 * - one with a title, a description, and a button to navigate to the section.
 */

.home_container {
  width: 100%;
  display: flex;
  flex-direction: row; /* <- ici on passe en ligne */
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.home_container .column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 50%; /* Each column takes half the width of the container */
}


.home_container img {
  max-width: 100%;
  aspect-ratio: 4 / 3; /* Warning: This may not work in all browsers if we need to support older browsers we should use a div to maintain aspect ratio */
  object-fit: cover;
  display: block;
}

.home_container h1,
.home_container h2,
.home_container h3,
.home_container p {
  max-width: 600px;
  text-align: center;
  margin: 10px 0;
}

.home_container .button {
  background-color: #F93847; 
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  align-self: center;
  text-decoration: none;
}

.home_container .button:hover {
  background-color: #d82c3a;
  cursor: pointer;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* right arrow icon */
.home_container .button::after {
  content: " →";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.home_container .button:hover::after {
  transform: translateX(4px);
}

/* Responsive Design (Temporary TODO, to improve later) */
@media (max-width: 768px) {
  .home_container {
    flex-direction: column;
  }

  .home_container .column {
    width: 100%;
  }

  .home_container img {
    aspect-ratio: auto;
  }
}
