/* ROOT COLORS */
:root {
  --green-dark: #0f5a3a;
  --green-title: #2d5e49;
  --text-main: #353b1f;
  --button-green: #2d5e49;
  --lettuce-green: #519F53;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* GLOBAL */
body {
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
  display: flex;
  flex-direction: column;

  background:

    /* voile blanc */
    radial-gradient(circle at 50% 20%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.70) 40%,
      rgba(255, 255, 255, 0.35) 70%,
      transparent 100%),

    /* halo vert central */
    radial-gradient(circle at 55% 55%,
      rgba(123, 190, 139, 0.40) 0%,
      rgba(123, 190, 139, 0.22) 40%,
      rgba(123, 190, 139, 0.10) 70%,
      transparent 100%),

    /* halo vert clair en bas */
    radial-gradient(circle at 30% 85%,
      rgba(168, 220, 160, 0.40) 0%,
      rgba(168, 220, 160, 0.22) 40%,
      rgba(168, 220, 160, 0.10) 70%,
      transparent 100%),

    /* halo jaune à droite */
    radial-gradient(circle at 90% 50%,
      rgba(245, 231, 180, 0.32) 0%,
      rgba(245, 231, 180, 0.18) 40%,
      rgba(245, 231, 180, 0.08) 70%,
      transparent 100%);

  background-size: cover;
  background-position: center;
}

/* TOP BAR */
.topbar {
  height: 48px;
  width: 100%;
  background-color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-link{
    width: 22px;
    height: 22px;
}

.topbar-link img {
  width: 22px;
  filter: brightness(0) invert(1);
}

/* HERO SECTION */
.hero {
  position: relative;
  flex: 1;
  height: calc(100vh - 48px); /* Keep inside viewport */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow: hidden; /* Prevent char overflow */
}

.hero-inner {
  text-align: center;
  max-width: 760px;
  z-index: 2;
}

/* LOGO */
.hero-logo {
  height: 120px;
  margin: 0 auto 40px;
}

.hero-logo img {
  height: 100%;
}

/* TITLES & TEXT */
.hero-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--green-title);
}

.hero-text {
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* BUTTON (FLIP EFFECT — CORRECTED VERSION) */
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 55px;
  padding: 14px 36px;
  background-color: var(--lettuce-green);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  
}

/* Visible "window" for the animation */
.hero-button-label {
  display: block;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3em;
  position: relative;
}

/* Stack the two lines vertically - START WITH FIRST TEXT VISIBLE */
.hero-button-label-inner {
  display: flex;
  flex-direction: column;
  transform: translateY(0);  /* Start with first text visible */
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Lines themselves */
.hero-button-label-inner span {
  display: block;
  text-align: center;
  white-space: nowrap;
}

/* On hover = move up to show second text (which is below) */
.hero-button:hover .hero-button-label-inner {
  transform: translateY(-50%);  /* Move up by 50% (one line height) */
}



/* CHARACTER FIXED AT BOTTOM */
.hero-character {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-width: 340px;
  pointer-events: none;
  display:flex;
}

.hero-character img {
  width: 100%;
  height: auto;
}


/* =============================== */
/* RESPONSIVE BREAKPOINTS */
/* =============================== */

/* TABLET */
@media (max-width: 1024px) {
  .hero-logo {
    height: 110px;
  }

  .hero-character {
    max-width: 280px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    max-height: 100vh;
    overflow: visible;
  }

  .hero {
    height: auto;
    min-height: calc(100vh - 48px);
    padding: 32px 16px 60px;
  }

  .hero-logo {
    height: 90px;
    margin-bottom: 25px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-text {
    font-size: 0.9rem;
  }

  .hero-button {
    padding: 12px 26px;
  }

  .hero-character {
    max-width: 220px;
    opacity: 0.9;
    bottom: -10px;
  }
}

/* TINY PHONES */
@media (max-width: 420px) {
  .topbar {
    height: 42px;
    padding: 0 14px;
  }

  .hero {
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-text {
    font-size: 0.82rem;
  }

  .hero-button {
    padding: 10px 22px;
  }

  .hero-character {
    max-width: 170px;
    bottom: -20px;
    opacity: 0.85;
  }
}