
/* =================================================================
   HERO SECTION
   ================================================================= */

.hero-section {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0px var(--space-md);
  align-items: flex-start;
}

.hero-content .logo-container {
  width: 100%;
}

.hero-content h1 {
  font-size: 55px;
  font-weight: normal;
  line-height: 0.9;
  margin-bottom: var(--space-md);
}

.hero-content p {
  font-size: var(--font-size-xl);
  margin-top: var(--space-md);
  font-weight: normal;
}

.hero-content .buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-lg);
}

/* Hero Image */
.hero-image {
  display: none;
  position: absolute;
  top: 0%;
  right: 0px;
  width: 45vw;
  height: 100%;
  overflow: visible;
}

.hero_image img {
  max-height: 100%;
  height: auto;
}

/* Hero SVG Colors */
.hero-yellow { fill: #f5bf42; }
.hero-purple { fill: #7743f9; }
.hero-red { fill: #fc4733; }
.hero-light-green { fill: #6f936e; }
.hero-cyan { fill: #00c2bd; }
.hero-white { fill: #fff; }
.hero-dark-green { fill: #025f63; }

.hero-image-mobile {
  display: block;
  width: 100vw;
}

/* =================================================================
   CARDS SECTION
   ================================================================= */

.home-page .cards-section {
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
}

.home-page .cards-section h2 {
  text-align: center;
}

.home-page .cards-section .cards-container {
  max-width: 1200px;
  width: 100%;
  margin: 75px auto;
  box-sizing: border-box;
}

.home-page .cards-section .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.home-page .cards-section .swiper-cards-mobile {
  display: none;
}

.home-page .cards-section .swiper-navigation-cards {
  display: none;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.home-page .cards-section .navigation-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--color-primary);
  font-size: 20px;
}

/* Individual Card Styling */
.home-page .home-card {
  min-height: 450px;
  background-color: var(--color-white);
  border-radius: 25px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
  overflow: hidden;
}

.home-page .home-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.home-page .home-card .home-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-page .home-card .home-card-image {
  height: 400px;
  max-width: none;
  max-height: none;
  overflow: visible;
}

.home-page .home-card .home-card-number {
  font-size: var(--font-size-md);
  font-weight: normal;
  color: var(--color-black);
}

.home-page .home-card .home-card-title {
  margin-top: var(--space-md);
  color: var(--color-black);
  font-size: var(--font-size-xxl);
  font-weight: bold;
  padding-right: 50px;
}

/* =================================================================
   TRUSTED BY LOGOS
   ================================================================= */

.trusted-by-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 0 auto;
  margin-top: 70px;
}

.trusted-by-logos figure {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 180px;
  position: relative;
}

.trusted-by-logos figure img {
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

/* BLOG POSTS */
.home-page .blog-section .carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: var(--space-xl);
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  overflow: visible;
}

.home-page .blog-section .carousel-track {
  display: flex;
  gap: 25px;
  transition: transform 0.5s ease;
}

.home-page .blog-section .carousel-slide {
  width: 290px;
}

.home-page .blog-section .carousel-navigation {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  display: flex;
  justify-content: space-between;
}

.home-page .blog-section .carousel-button img {
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  color: var(--color-white);
  cursor: pointer;
  width: 30px;
}

.home-page .blog-section .carousel-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .home-page .blog-section .carousel-button {
    display: none;
  }
}
/* END BLOG SECTION */

/* POST CARD */
.home-page .post-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
  width: 100%;
  height: 100%;
  max-width: 290px;
}

.home-page .post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.home-page .post-card .post-title {
  color: var(--color-black);
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
} 

.home-page .post-card .post-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.home-page .post-card .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .post-card .post-content {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
}

.home-page .post-card .author-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.home-page .post-card .author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.home-page .post-card .author-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-page .post-card .author-name {
  font-size: var(--font-size-md);
  font-weight: bold;
  color: var(--color-black);
}

.home-page .post-card .author-email {
  font-size: var(--font-size-sm);
  color: var(--color-grey);
}

.home-page .post-card .post-meta {
  margin-bottom: var(--space-md);
}

.home-page .post-card .post-date {
  font-size: var(--font-size-sm);
  color: var(--color-grey);
}

.home-page .post-card .post-description {
  font-size: var(--font-size-sm);
  color: var(--color-grey);
  margin: 0;
  line-height: 1.5;
}
/* END POST CARD */

/* =================================================================
   MEDIA QUERIES
   ================================================================= */

@media (max-width: 1250px) {
  .home-page .home-card {
    padding: 1.3rem;
  }

  .home-page .home-card .home-card-title {
    font-size: 1.7rem;
    margin-top: 0.3rem;
  }
  
  .home-page .home-card .home-card-image{
    height: 320px;
  }

  .home-page .cards-section{
    margin-top: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .home-page .home-card .home-card-title {
    font-size: 28px;
  }
  .home-page .cards-section .cards-grid {
    display: none;
  }
  
  .home-page .cards-section .cards-container {
    padding: 0;
    overflow: visible;
    margin: 45px 0 0 0;
  }
  
  .home-page .cards-section .swiper-cards-mobile {
    display: block;
    overflow: visible;
  }
  
  .home-page .cards-section .swiper-navigation-cards {
    display: flex;
    margin: var(--space-md) var(--space-lg) 0;
  }
  
  .home-page .cards-section .swiper-slide {
    width: auto;
    height: auto;
  }

  /* Uniformiser la hauteur des cartes dans le swiper mobile */
  .home-page .home-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  /* Uniformiser la hauteur des images et conteneurs sur mobile */
  .home-page .home-card .home-image-container {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-page .home-card .home-card-image {
    height: 290px;
    width: auto;
    object-fit: contain;
  }

  /* Blog carousel mobile styling */
  .home-page .blog-section .carousel-container {
    padding: 0;
    overflow: visible;
    margin: var(--space-xl) 0 0;
  }
  
  .home-page .blog-section .swiper-blog-posts {
    overflow: visible;
  }
  
  .home-page .blog-section .carousel-slide {
    width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .home-page .blog-section .post-card {
    width: 100%;
    max-width: 100%;
  }
  
  .home-page .blog-section .carousel-button {
    display: none;
  }

  .hero-content .logo-container img {
    max-width: 150px;
    margin-top: 34px;
  }
}

@media (min-width: 768px) {
  .hero-section {
    display: flex;
    height: 80vh;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-sm);
  }

  .hero-content {
    width: 50%;
  }

  .hero-image {
    display: block;
    width: 50vw;
  }

  .hero-image-mobile {
    display: none;
  }

  .hero-content .buttons-container {
    flex-wrap: wrap;
  }

  .hero-content p {
    font-size: var(--font-size-lg);
  }
}

@media (min-width: 1025px) {
  .hero-image{
    top: -8%;
    width: 45vw;
  }

  .hero-section {
    margin-bottom: 170px;
  }

  .hero-content {
    width: 45%;
    padding: var(--space-xl) var(--space-xl) 0px var(--space-lg);
  }
  
  .hero-content .logo-container {
    width: 200px;
  }

  .hero-content .logo-container img {
    max-width: none;
  }

  .hero-content .buttons-container {
    flex-wrap: nowrap;
  }
  
  .hero-content h1 {
    font-size: 65px;
  }
}

@media (min-width: 1250px) {
  .hero-section {
    margin-bottom: 300px;
  }
}