:root {
    --primary: #112338;
    --secondary: #104974;
    --light: #F0F4F8;
}

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

html, body {
    height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--primary);
    color: var(--light);
    overflow-y: auto; /* scroll vertical si nécessaire */
}

/* MAIN HERO */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; 
}

/* Fond et overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(16,73,116,0.4), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(16,73,116,0.3), transparent 60%),
                linear-gradient(135deg,#112338,#0c1a2b);
    filter: blur(20px);
    z-index: 0;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(17,35,56,0.9), rgba(16,73,116,0.7));
    z-index: 1;
}

/* Contenu du hero */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 900px;
    z-index: 2;
    padding-top: 10vh; /* logo + slogan + bouton à 10% du haut */
}

.logo {
    width: 400px;
    filter: drop-shadow(0 0 15px rgba(240,244,248,0.6));
    animation: float 4s ease-in-out infinite;
}

h1 {
    font-size: 2.4rem;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.btn {
    display: inline-block;
    padding: 20px 50px;
    border-radius: 50px;
    background: var(--light);
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* CAROUSEL */
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    max-height: 50vh; /* carrousel jamais plus haut que 50% de l’écran */
    z-index: 2;
}

.carousel {
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden; /* permet à l’animation de cacher les images qui sortent */
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    align-items: center;
    /* Animation du défilement automatique */
    animation: scroll 25s linear infinite;
}

.carousel img {
    height: auto;
    max-height: 40vh; /* jamais plus de la moitié de l’écran */
    width: auto;
    object-fit: contain; /* images visibles entièrement */
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.carousel img:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* ajuste selon le nombre d'images dupliquées pour boucle fluide */
}

/* Responsive */
@media (max-width: 1000px) {
    .logo { width: 250px; }
    h1 { font-size: 1.6rem; }
    .btn { font-size: 1.1rem; padding: 15px 40px; }
    .carousel-container { max-height: 35vh; }
    .carousel img { max-height: 35vh; }
}

@media (min-width: 1000px) {
    h1 { font-size: 3.2rem; }
}
