/**
 * HOMEPAGE CUSTOM STYLES (style_homepage.css)
 * Matches Figma mockup node 350:1485
 */

:root {
  --primary-blue: #046197;
  --dark-blue: #02476b;
  --accent-green: #8cc63f;
  --accent-green-hover: #7eb338;
  --text-dark: #333333;
  --text-muted: #666666;
  --bg-light: #f5f7f8;
  --border-color: #e2e8f0;
}

/* Base resets & typography */
.homepage-body,
.banniere-leaneo,
.hp-workflows,
.hp-video-section,
.hp-modules-section,
.hp-mid-banner,
.hp-testimonials-section {
  font-family: 'DM Sans', 'Inter', 'Open Sans', sans-serif;
}

/* SECTION 0: HERO BANNER */
#banniere.banniere-leaneo {
  height: 600px !important;
  position: relative;
  background-size: cover;
  background-position: center;
}

#banniere .filtre {
  height: 100% !important;
  box-sizing: border-box !important;
  padding-top: 115px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
}

/* Overlay the header absolute to let content sit underneath */
#banniere .bandeau-sup {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 100px !important;
  z-index: 100 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#banniere .bandeau-sup.site-header {
  position: fixed !important;
  height: auto !important;
  display: block !important;
  flex-direction: initial !important;
  justify-content: initial !important;
}

.hp-hero-content-wrapper {
  max-width: 986px;
  width: 100%;
  text-align: center;
  color: white;
}

.hp-hero-content-wrapper h1 {
  font-size: 48px !important;
  font-weight: 700 !important;
  margin: 0 0 64px 0 !important;
  /* Spacing below Heading: 64px */
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.hp-hero-content-wrapper .hp-hero-sub {
  font-size: 24px !important;
  font-weight: 400 !important;
  margin: 0 0 64px 0 !important;
  /* Spacing below Paragraph: 64px */
  opacity: 0.95;
  line-height: 1.5;
  text-align: center;
}

.hp-hero-btn-container {
  display: flex;
  justify-content: center;
}

/* CTA BUTTON SYSTEM */
.hp-btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-green);
  color: white !important;
  font-weight: 700;
  font-size: 18px;
  height: 66px;
  /* default section button height */
  border-radius: 40px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(140, 198, 63, 0.4);
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0 36px;
}

.hp-btn-large:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 198, 63, 0.5);
}

.hp-btn-large i {
  margin-left: 10px;
  font-size: 18px;
}

/* Button modifiers */
.hp-hero-content-wrapper .hp-btn-large {
  height: 75px !important;
  width: 100% !important;
  max-width: 531px !important;
}

.hp-workflows-left .hp-btn-large {
  width: 100% !important;
  max-width: 271px !important;
}

.hp-video-section .hp-btn-large {
  width: 100% !important;
  max-width: 230px !important;
}

.hp-modules-section .hp-btn-large {
  width: 100% !important;
  max-width: 447px !important;
}

/* SECTION 1: WORKFLOWS */
.hp-workflows {
  padding: 70px 0 0 0;
  background: white;
}

.hp-workflows-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 65px 60px 65px;
}

.hp-workflows-left {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hp-section-title {
  text-align: center !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  line-height: 46px !important;
  color: #0478b2 !important;
  margin-top: 0 !important;
  margin-bottom: 60px !important;
  position: relative !important;
  padding-bottom: 0 !important;
}

.hp-section-title::after {
  display: none !important;
  /* disable global layout h2 underlines */
}

.hp-workflows-text {
  width: 100%;
  margin-bottom: 76px;
}

.hp-workflows-left p {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px !important;
  line-height: 30px !important;
  color: #333333 !important;
  text-align: justify;
  margin-top: 0;
  margin-bottom: 24px;
}

.hp-workflows-left p:last-child {
  margin-bottom: 0;
}

.hp-workflows-right {
  flex: 1;
  max-width: 600px;
  display: flex;
  justify-content: flex-end;
}

.hp-workflows-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 20px;
}

/* SECTION 2: VIDEO SECTION */
.hp-video-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  text-align: center;
}

.hp-video-section h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 40px;
}

.hp-video-section h2::after {
  display: none;
}

.hp-video-wrapper {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.hp-video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background-color: #000;
  border: 4px solid white;
}

.hp-video-container iframe,
.hp-video-container .hp-video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hp-video-cover {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hp-video-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.hp-video-cover:hover::before {
  background: rgba(0, 0, 0, 0.35);
}

.hp-play-btn {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(140, 198, 63, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hp-video-cover:hover .hp-play-btn {
  transform: scale(1.1);
  background-color: var(--accent-green-hover);
}

.hp-play-btn i {
  color: white;
  font-size: 32px;
  margin-left: 6px;
}

/* SECTION 3: MODULES */
.hp-modules-section {
  padding: 80px 0;
  background-color: white;
  text-align: center;
}

.hp-modules-section h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 50px;
}

.hp-modules-section h2::after {
  display: none;
}

.hp-modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.hp-module-card {
  background: white;
  border-radius: 16px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  height: 100%;
}

.hp-module-card img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.hp-module-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.hp-modules-bottom-text {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--text-dark);
}

/* SECTION 4: MID-BANNER */
.hp-mid-banner {
  background: url('../images_figma/homepage_mid_bg.png') no-repeat center center;
  background-size: cover;
  height: 193px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  color: white;
}

.hp-mid-banner h3 {
  font-size: 25px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  max-width: 1100px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* SECTION 5: CLIENTS & TESTIMONIALS */
.hp-testimonials-section {
  padding: 70px 0 60px 0;
  background-color: var(--bg-light);
  text-align: center;
}

.hp-testimonials-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px !important;
  font-weight: 700 !important;
  line-height: 46px !important;
  color: #0478b2 !important;
  margin-top: 0 !important;
  margin-bottom: 60px !important;
}

.hp-testimonials-section h2::after {
  display: none;
}

/* Client Logos list style */
.hp-clients-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-items: center;
  align-items: center;
  row-gap: 40px;
  max-width: 1310px;
  margin: 0 auto 60px auto;
  padding: 0;
}

.hp-client-logo {
  width: 100%;
  max-width: 218px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.hp-client-logo img {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Testimonials Container and Cards */
.hp-testimonials-container-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 65px 60px 65px;
  gap: 70px;
}

.hp-testimonial-nav {
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-blue);
  flex-shrink: 0;
  outline: none;
  border: none;
  background-color: transparent;
}

.hp-testimonial-nav i {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-testimonials-container {
  display: flex;
  flex: 1;
  max-width: 984px;
  border-radius: 20px;
  overflow: hidden;
  padding: 60px 40px;
  position: relative;
  justify-content: space-between;
}

.hp-testimonial-col {
  flex: 1;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.hp-testimonial-divider {
  width: 1px;
  background-color: var(--border-color);
  align-self: stretch;
  margin: 0;
}

.hp-testimonial-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 34px;
  border: none !important;
  box-shadow: none !important;
}

.hp-testimonial-info {
  margin-top: 26px;
}

.hp-testimonial-info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  margin: 0 0 4px 0 !important;
  color: #0478b2 !important;
}

.hp-testimonial-info p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.hp-testimonial-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 18px !important;
  line-height: 30px !important;
  color: #666666 !important;
  font-style: italic !important;
  position: relative;
  margin: 0 !important;
  text-align: center;
  max-width: 398px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hp-workflows-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
    padding: 0 20px 40px 20px !important;
  }

  .hp-workflows-left,
  .hp-workflows-right {
    max-width: 100% !important;
    width: 100% !important;
  }

  .hp-workflows-left p {
    text-align: center !important;
  }

  .hp-workflows-text {
    margin-bottom: 40px !important;
  }

  .hp-modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-clients-row {
    grid-template-columns: repeat(3, 1fr) !important;
    row-gap: 20px !important;
    padding: 0 20px !important;
  }

  .hp-testimonials-container-wrapper {
    padding: 0 20px 40px 20px !important;
    gap: 20px !important;
  }

  .hp-testimonials-container {
    flex-direction: column !important;
    padding: 40px 20px !important;
  }

  .hp-testimonial-divider {
    width: 100% !important;
    height: 1px !important;
    background-color: var(--border-color) !important;
    margin: 40px 0 !important;
    align-self: center !important;
  }

  .hp-testimonial-col {
    padding: 0 !important;
  }
}

@media (max-width: 768px) {
  .hp-workflows .hp-section-title {
    font-size: 32px !important;
    line-height: 38px !important;
    margin-bottom: 40px !important;
  }

  .hp-hero-content-wrapper h1 {
    font-size: 32px !important;
    margin-bottom: 30px !important;
  }

  .hp-hero-content-wrapper .hp-hero-sub {
    font-size: 18px !important;
    margin-bottom: 40px !important;
  }

  .hp-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-clients-row {
    grid-template-columns: repeat(2, 1fr) !important;
    row-gap: 15px !important;
  }

  .hp-testimonials-section h2 {
    font-size: 28px !important;
    line-height: 34px !important;
    margin-bottom: 40px !important;
  }

  .hp-testimonial-avatar {
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 24px !important;
  }

  .hp-testimonial-info {
    margin-top: 20px !important;
  }

  .hp-testimonial-text {
    font-size: 16px !important;
    line-height: 26px !important;
  }

  .hp-mid-banner h3 {
    font-size: 20px;
  }

  .hp-testimonial-nav {
    display: none !important;
  }

  .hp-testimonials-container-wrapper {
    gap: 0 !important;
  }
}

@media (max-width: 480px) {
  .hp-modules-grid {
    grid-template-columns: 1fr;
  }

  .hp-clients-row {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }

  .hp-btn-large {
    width: 100%;
    font-size: 16px;
    padding: 14px 20px;
  }
}
