#fh5co-home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fh5co-home .content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 90%;
  max-width: 1600px;
  height: 100%;
}

#fh5co-home .text-container {
  flex: 0 0 50%;
  text-align: left;
  padding: 0 4rem 0 0; /* padding à droite seulement, à gauche = 0 */
}

#fh5co-home .text-container h1 {
  font-size: 6rem;
  font-weight: 600;
  color: #542e2a;
  margin-bottom: 4rem;
  line-height: 1.2;
}

#fh5co-home .hero-text p {
  font-size: 3rem;
  color: #542e2a;
  margin-bottom: 3rem;
  line-height: 1.5;
}

#fh5co-home .cta-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#fh5co-home .btn-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  padding: 1rem;
  width: 100%;
  max-width: 500px;
}

#fh5co-home .btn-row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-between;
  align-items: stretch;
}

#fh5co-home .fox-container {
  max-width: 240px;
}

#fh5co-home .fox-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

#fh5co-home .btn-row .signup-btn {
  display: block;
  flex: 1;
  text-align: center;
  font-size: 2.7rem;
  font-weight: 390;
  padding: 1.2rem 2rem;
  border-radius: var(--skribi-btn-radius);
  background: var(--skribi-orange);
  color: #fff;
  border: 2px solid var(--skribi-orange);
  transition: all 0.3s ease;
  white-space: nowrap;
}

#fh5co-home .btn-row .signup-btn.secondary {
  background: #fff;
  color: var(--skribi-orange);
}

#fh5co-home .signup-btn.primary-full {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 2.7rem;
  font-weight: 390;
  padding: 1.2rem 2rem;
  border-radius: var(--skribi-btn-radius);
  background: var(--skribi-orange);
  color: #fff;
  border: 2px solid var(--skribi-orange);
  transition: all 0.3s ease;
  white-space: nowrap;
}

#fh5co-home .signup-btn:hover,
#fh5co-home .signup-btn.secondary:hover,
#fh5co-home .signup-btn.primary-full:hover {
  transform: translateY(-2px);
}

#fh5co-home .carousel-hero {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-swiper {
  width: 100%;
  max-width: 480px;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.hero-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}



/* RESPONSIVE */

@media (max-width: 1200px) {



  #fh5co-home .text-container h1 {
    font-size: 4rem;
  }
  #fh5co-home .content-wrap {
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }
  #fh5co-home .images-container {
    margin-top: 4rem;
  }

  #fh5co-home .carousel-hero {
    display: none;
}

#fh5co-home .cta-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}



}


/* GRAND ÉCRAN > 1180px : rien à changer (mise en page à gauche/droite avec renard et carrousel) */

/* iPads : entre 631px et 1180px */
@media (min-width: 631px) and (max-width: 1180px) {
  #fh5co-home .content-wrap {
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
  }

  #fh5co-home .text-container {
    padding: 2rem;
    text-align: center;
  }

  #fh5co-home .cta-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  #fh5co-home .btn-group {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    max-width: 450px;
  }
  
  #fh5co-home .btn-row {
    gap: 1.5rem;
  }
  
  #fh5co-home .btn-row .signup-btn,
  #fh5co-home .btn-row .signup-btn.secondary {
    font-size: 2rem;
  }
  
  #fh5co-home .signup-btn.primary-full {
    font-size: 2rem;
  }

  #fh5co-home .fox-container {
    display: none;
  }

  #fh5co-home .carousel-hero {
    display: flex;
    margin-top: 2rem;
  }

  .hero-swiper {
    max-width: 480px;
    height: 380px;
  }
}

/* iPad paysage et tablettes larges */
@media (min-width: 801px) and (max-width: 1180px) {
  #fh5co-home .carousel-hero {
    max-height: 40vh;
  }
  .hero-swiper {
    max-width: 60vw;
    height: 36vh;
    min-height: 220px;
  }
}




@media (max-width: 631px) {
  #fh5co-home {
    height: 100vh; /* pleine hauteur écran */
  
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #fh5co-home .content-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    width: 100%;
    max-height: 100%;
    box-sizing: border-box;
  }

  #fh5co-home .text-container {
    padding: 0;
  }

  #fh5co-home .text-container h1 {
    font-size: 2.5rem;
  }

  #fh5co-home .hero-text p {
    font-size: 1.8rem;
    line-height: 1.4;
    text-align: center;
  }

  #fh5co-home .cta-wrap {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }

  #fh5co-home .btn-group {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  #fh5co-home .btn-row {
    gap: 1rem;
  }

  #fh5co-home .btn-row .signup-btn,
  #fh5co-home .btn-row .signup-btn.secondary {
    font-size: 2rem;
    padding: 1rem 1.2rem;
  }
  
  #fh5co-home .signup-btn.primary-full {
    font-size: 2rem;
    padding: 1rem 1.5rem;
  }

  #fh5co-home .carousel-hero {
    display: contents;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 35vh; /* limite la hauteur pour qu'il tienne dans la page */
  }

  .hero-swiper {
    width: 100%;
    max-width: 300px;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .hero-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #fh5co-home .fox-container {
    display: none;
  }
}

/* iPad Mini portrait et tablettes < 800px */
@media (min-width: 431px) and (max-width: 800px) {
  #fh5co-home .carousel-hero {
    max-height: 35vh;
  }
  .hero-swiper {
    max-width: 80vw;
    height: 30vh;
    min-height: 180px;
  }
  #fh5co-home .text-container h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
  }
  #fh5co-home .hero-text p {
    margin-bottom: 1.5rem;
  }
  #fh5co-home .btn-group {
    max-width: 300px;
  }
  
  #fh5co-home .btn-row {
    gap: 1rem;
  }
  
  #fh5co-home .btn-row .signup-btn,
  #fh5co-home .btn-row .signup-btn.secondary {
    font-size: 2rem;
  }
  
  #fh5co-home .signup-btn.primary-full {
    font-size: 2rem;
  }
}

/* iPhone 12 Pro, iPhone Mini, Galaxy S20 Ultra, etc. */
@media (min-width: 401px) and (max-width: 430px) {
  #fh5co-home .carousel-hero {
    max-height: 32vh;
  }
  .hero-swiper {
    max-width: 95vw;
    height: 28vh;
    min-height: 140px;
  }
  #fh5co-home .text-container h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  #fh5co-home .hero-text p {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  #fh5co-home .btn-group {
    max-width: 280px;
    gap: 1.2rem;
  }
  
  #fh5co-home .btn-row {
    gap: 0.8rem;
  }
  
  #fh5co-home .btn-row .signup-btn,
  #fh5co-home .btn-row .signup-btn.secondary {
    font-size: 2rem;
    padding: 0.9rem 1rem;
  }
  
  #fh5co-home .signup-btn.primary-full {
    font-size: 2rem;
    padding: 0.9rem 1.2rem;
  }
}



/* iPhone SE, Galaxy S8+ et petits écrans < 400px */
@media (max-width: 400px) {
  #fh5co-home .carousel-hero {
    max-height: 28vh;
  }
  .hero-swiper {
    max-width: 90vw;
    height: 24vh;
    min-height: 120px;
  }
  #fh5co-home .text-container h1 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }
  #fh5co-home .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  #fh5co-home .btn-group {
    max-width: 260px;
    gap: 1rem;
  }
  
  #fh5co-home .btn-row {
    gap: 0.8rem;
  }
  
  #fh5co-home .btn-row .signup-btn,
  #fh5co-home .btn-row .signup-btn.secondary {
    font-size: 2rem;
    padding: 0.8rem 0.8rem;
  }
  
  #fh5co-home .signup-btn.primary-full {
    font-size: 2rem;
    padding: 0.9rem 1rem;
  }
}



