/* --- Hero plein écran --- */
.landing-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* en haut */
    align-items: center;
    text-align: center;
    min-height: 60vh;          /* réduit pour remonter le carousel */
    padding: 20px 20px 20px 20px;
    background: #f5f8fa;
    position: relative;
    box-sizing: border-box;
}

/* Logo très large */
.landing-hero img {
    width: 100%;
    max-width: 900px;          /* logo grand pour écrans larges */
    height: auto;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-20px);
    animation: logoFadeIn 1s forwards;
    animation-delay: 0.3s;
}

/* Texte slogan */
.landing-hero p.lead {
    font-size: 1.2rem;           /* texte plus grand */
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 1s forwards;
    animation-delay: 0.8s;
}

/* Boutons */
.landing-hero .btn-group a {
    display: inline-block;
    margin: 0 10px;
    padding: 16px 32px;
    font-size: 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    animation: btnFadeIn 0.8s forwards;
}

/* Bouton S'inscrire */
.landing-hero .btn-signup {
    background-color: #2c7a7b;
    color: #fff;
    animation-delay: 1.3s;
}

/* Bouton Se connecter */
.landing-hero .btn-login {
    background-color: #e2e8f0;
    color: #2d3748;
    animation-delay: 1.5s;
}

/* Bouton Accéder à mon profil (bleu) */
.landing-hero .btn-profile {
    background-color: #3498db;
    color: #fff;
    animation-delay: 1.4s;
}

/* Effets hover */
.landing-hero .btn-signup:hover { background-color: #276764; }
.landing-hero .btn-login:hover { background-color: #cbd5e0; }
.landing-hero .btn-profile:hover { background-color: #2980b9; }


/* --- Animations --- */
@keyframes logoFadeIn { to { opacity:1; transform: translateY(0); } }
@keyframes textFadeIn { to { opacity:1; transform: translateY(0); } }
@keyframes btnFadeIn { to { opacity:1; transform: translateY(0); } }

/* --- Carousel des fonctionnalités --- */
.feature-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 20px 0;
    margin-top: 20px;
    position: relative;
}

.feature-carousel .feature {
    flex: 0 0 280px;
    background: #f5f8fa;
    border-radius: 10px;
    padding: 20px;
    scroll-snap-align: start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-carousel .feature:hover {
    transform: translateY(-5px);
}

.feature-carousel .feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #2c7a7b;
}

.feature-carousel .feature h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.feature-carousel .feature p {
    margin: 0;
    color: #555;
}

/* Scrollbar invisible sur Chrome/Safari */
.feature-carousel::-webkit-scrollbar {
    display: none;
}

/* Flèches de navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2c7a7b;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* --- Stats --- */
.landing-stats {
    background: #edf2f7;
    padding: 60px 20px;
    text-align: center;
}

.landing-stats .stat {
    display: inline-block;
    margin: 0 20px;
}

.landing-stats .stat .number {
    font-size: 2rem;
    color: #2c7a7b;
}

.landing-stats .stat .label {
    font-size: 1rem;
    color: #555;
}

/* --- Testimonials --- */
.landing-testimonials {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.landing-testimonials blockquote {
    font-style: italic;
    color: #444;
    margin: 0 0 40px;
}

.landing-testimonials cite {
    display: block;
    text-align: right;
    color: #666;
}

/* --- CTA --- */
.landing-cta {
    padding: 60px 20px;
    text-align: center;
    background: #2c7a7b;
    color: #fff;
}

.landing-cta a {
    display: inline-block;
    padding: 14px 28px;
    background: #38a169;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .landing-hero img { max-width: 600px; }
    .landing-hero p.lead { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .landing-hero img { max-width: 90%; }
    .landing-hero p.lead { font-size: 1.5rem; }
    .feature-carousel .feature { flex: 0 0 220px; }
}

/* Masquer les flèches du carousel */
.carousel-btn {
    display: none !important;
}
