/* ================================
   RESET & BASE
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #131237, #384e80);
    color: #ffffff;
}

/* ================================
   HERO SECTION
================================ */

.hero {
    width: 100%;
    padding: 80px 0;
}

.hero>* {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

}

/* Texte */
.hero-content {
    max-width: 50%;
    animation: fadeLeft 0.8s ease forwards;
}

.subtitle {
    font-size: 14px;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.hero-content h1 {
    font-size: 56px;
    margin: 20px 0;
}

/* Bouton */
.btn-main {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 36px;
    background: #ffffff;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Image */
.hero-image {
    animation: fadeRight 1s ease forwards;
}

.hero-image img {
    max-width: 600px;
}

/* ================================
   ANIMATIONS
================================ */

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-400px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(400px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ================================
   RESPONSIVE DESIGN (Tablets & Phones) Kelyan
================================ */

/* Tablettes & Mobiles (max 992px) */
@media (max-width: 992px) {
    .hero {
        min-height: 100vh;
        /* Fills entire screen */
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 100px 0 60px 0;
        /* Add padding for header space */
    }

    .hero>* {
        flex-direction: column;
        text-align: center;
        padding: 0 25px;
        width: 100%;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center everything */
    }

    .hero-content h1 {
        font-size: 46px;
        margin: 15px 0;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 16px;
    }

    /* Force button container to column on smaller screens */
    .hero-content>div[style] {
        flex-direction: column !important;
        width: 100%;
        align-items: center;
        gap: 15px !important;
    }

    .btn-main {
        margin-top: 5px;
        padding: 16px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
        /* Keep buttons an elegant size */
        text-align: center;
    }

    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: 85%;
        height: auto;
    }
}

/* Petits mobiles (max 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 34px;
    }

    .subtitle {
        font-size: 14px;
    }

    .btn-main {
        padding: 14px 20px;
        font-size: 15px;
        max-width: 100%;
        /* Go full width on very small phones */
    }

    .hero-image img {
        max-width: 95%;
    }

    .hero>* {
        padding: 0 15px;
    }
}

/* Très petits mobiles (max 360px) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .btn-main {
        padding: 12px 18px;
        font-size: 14px;
    }
}