/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial;
    height: 100vh;
    color: #0f172a;
}


/* LAYOUT GLOBAL */

.hero {
    display: flex;
    min-height: 100vh;
}


/* COLONNE GAUCHE */

.hero-left {
    width: 50%;
    background: white;
    display: flex;
    flex-direction: column;
}


/* HEADER */

.header {

    position: relative;

    background: linear-gradient(135deg, #2563eb, #7c3aed);

    color: white;

    padding: 20px 35px 80px 35px;

    overflow: hidden;

}

/* contenu du header */

.header-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: relative;

    z-index: 2;

}

/* logo */

.logo img {
    height: 40px;
}

/* icones */

.nav-icons a {

    color: white;

    margin-left: 20px;

    font-size: 18px;

    text-decoration: none;

}

/* VAGUE */

.header-wave {

    position: absolute;

    bottom: -1px;

    left: 0;

    width: 100%;

    height: 120px;

}


/* COURBE PRINCIPALE */

.header::after {

    content: "";

    position: absolute;

    left: -20%;

    bottom: -40px;

    width: 140%;

    height: 90px;

    background: white;

    border-radius: 100%;

}


/* COURBE TRANSPARENTE */

.header::before {

    content: "";

    position: absolute;

    left: -10%;

    bottom: -25px;

    width: 120%;

    height: 70px;

    background: rgba(255, 255, 255, 0.3);

    border-radius: 100%;

}


/* LOGO */

.logo img {
    height: 80px;
    position: relative;
    z-index: 2;
}


/* ICONES */

.nav-icons a {
    color: white;
    margin-left: 20px;
    font-size: 18px;
    text-decoration: none;
    position: relative;
    z-index: 2;
}


/* CONTENU CENTRE */

.left-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 50px;

    padding: 40px;

}


/* STATS BOX */

.stats-box {

    position: relative;

    width: 420px;

    height: 200px;

    background: linear-gradient(135deg, #2563eb, #7c3aed);

    border-radius: 14px;

    padding: 30px;

    display: flex;

    justify-content: flex-end;

    align-items: center;

    color: white;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);

}


/* IMAGE PROF */

.hero-image {

    position: absolute;

    left: -10px;

    bottom: 0px;

    width: 220px;

}


/* TEXTE STATS */

.stats {
    text-align: right;
    z-index: 2;
    position: relative;
}

.stats h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
}

.stats p {
    font-size: 20px;
    z-index: 2;
}


/* DEVENEZ FORMATEUR */

.become-formateur {

    text-align: center;

    max-width: 420px;

}

.become-formateur h3 {

    font-size: 30px;

    margin-bottom: 10px;

    background: linear-gradient(135deg, #2563eb, #7c3aed);

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

}

.become-formateur p {

    font-size: 19px;

    margin-bottom: 10px;

}

.become-formateur a {

    font-size: 20px;

    font-weight: 600;

    color: #2563eb;

    text-decoration: none;

}

.become-formateur a:hover {
    text-decoration: underline;
}


/* COLONNE DROITE */

.hero-right {

    width: 50%;

    background: url("../../Image/chimie.png") center/cover no-repeat;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

}


/* LOGIN */

.login-card {

    width: 360px;

    background: white;

    padding: 35px;

    border-radius: 16px;

    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);

}

.login-card h2 {

    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;

}


/* INPUT */

.login-card input {

    width: 100%;

    padding: 12px;

    margin-bottom: 15px;

    border-radius: 8px;

    border: 1px solid #cbd5e1;

    font-size: 14px;

}

.login-card input:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);

}


/* BOUTON */

.login-card button {

    width: 100%;
    padding: 12px;

    font-size: 16px;
    font-weight: bold;

    background: linear-gradient(135deg, rgb(15, 175, 238), rgba(224, 14, 231, 0.15));
    color: white;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    transition: background 0.3s ease, transform 0.2s ease;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.login-card button:hover {

    background: linear-gradient(135deg, rgba(15, 149, 238, 0.25), rgba(14, 188, 231, 0.15));
    transform: scale(1.02);
}


/* MESSAGE */

#message {

    margin-top: 10px;

    text-align: center;

    color: #dc2626;

    font-size: 13px;

}


/* RESPONSIVE */

@media (max-width:900px) {

    .hero {
        flex-direction: column;
    }


    /* pleine largeur */

    .hero-left,
    .hero-right {
        width: 100%;
    }


    /* login en haut */

    .hero-right {
        order: 2;
        padding: 60px 20px;
    }

    .hero-left {
        order: 1;
    }


    /* stats responsive */

    .stats-box {
        width: 100%;
        max-width: 420px;
    }


    /* image plus petite */

    .hero-image {
        width: 180px;
        left: -5px;
        bottom: 0px;
        z-index: 1;
    }

}

/* CONTAINER GLOBAL */

.stats-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}


/* COLONNE DROITE */

.stats-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 140px;
}


/* BOX HOMME */

.stats-box-homme {

    flex: 1;

    background: linear-gradient(135deg, #2563eb, #60a5fa);

    border-radius: 14px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: white;

    position: relative;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);

}


/* BOX FEMME */

.stats-box-femme {

    flex: 1;

    background: linear-gradient(135deg, #ec4899, #f472b6);

    border-radius: 14px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: white;

    position: relative;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);

}


/* IMAGE HOMME FEMME */

.gender-img {

    position: absolute;

    bottom: 5px;

    left: 5px;

    width: 45px;

    opacity: 0.6;

}


/* CHIFFRES */

.stats-box-homme h2,
.stats-box-femme h2 {

    font-size: 36px;
    font-weight: 800;

}

/* MOBILE STRICT */
/* RESPONSIVE */



.scroll-down-btn {
    display: none;
}

@media (max-width:768px) {

    /* HERO */
    .hero {
        flex-direction: column;
    }


    /* CHAQUE PARTIE = 100VH */
    .hero-left,
    .hero-right {
        width: 100%;
        min-height: 100vh;
    }


    /* HERO LEFT */
    .hero-left {
        position: relative;
        padding-bottom: 90px;
    }


    /* HERO RIGHT */
    .hero-right {
        padding: 30px 20px;
    }


    /* CONTENU */
    .left-content {

        justify-content: center;

        gap: 25px;

        padding: 20px;

    }


    /* TEXTE */
    .become-formateur {
        max-width: 100%;
    }

    .become-formateur h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .become-formateur p {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .become-formateur a {
        font-size: 15px;
    }


    /* STATS CONTAINER */
    .stats-container {

        width: 100%;

        display: flex;

        align-items: stretch;

        justify-content: center;

        gap: 10%;

    }


    /* BOX PRINCIPALE */
    .stats-box {

        width: 65%;

        height: 170px;

        padding: 20px;

        border-radius: 18px;

    }


    /* IMAGE */
    .hero-image {

        width: 135px;

        left: -5px;

    }


    /* TEXTE STATS */
    .stats h1 {
        font-size: 48px;
    }

    .stats p {
        font-size: 14px;
        max-width: 140px;
    }


    /* SIDE */
    .stats-side {

        width: 30%;

        display: flex;

        flex-direction: column;

        gap: 15px;

    }


    /* BOX HOMME FEMME */
    .stats-box-homme,
    .stats-box-femme {

        flex: 1;

        height: auto;

        background: white;

        border-radius: 18px;

        position: relative;

        overflow: hidden;

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    }


    /* LIGNE BLEU */
    .stats-box-homme::after {

        content: "";

        position: absolute;

        left: 10px;

        right: 10px;

        bottom: 8px;

        height: 8px;

        border-radius: 20px;

        background: linear-gradient(135deg, #2563eb, #60a5fa);

    }


    /* LIGNE ROSE */
    .stats-box-femme::after {

        content: "";

        position: absolute;

        left: 10px;

        right: 10px;

        bottom: 8px;

        height: 8px;

        border-radius: 20px;

        background: linear-gradient(135deg, #ec4899, #f472b6);

    }


    /* CHIFFRES */
    .stats-box-homme h2,
    .stats-box-femme h2 {

        font-size: 24px;
        z-index: 2;
        position: relative;

    }
    .stats-box-homme h2 {

        color: #1142e2
    }
    .stats-box-femme h2 {

        color: #d408c3
    }


    .gender-img {

        width: 38px;
        opacity: 0.25;
        bottom: 18px;
        left: 8px;
        filter: brightness(0) saturate(0%) opacity(0.5);
    
    }

    /* LOGIN CARD */
    .login-card {

        width: 100%;

        max-width: 360px;

        padding: 28px;

    }


    .scroll-down-btn{

        display:flex;
        align-items:center;
        justify-content:center; 
        position:absolute;
        bottom:20px;
        left:50%;
        transform:translateX(-50%);
        width:58px;
        height:58px;
        border:none;
        border-radius:50%;
        background:rgba(255,255,255,0.95);
        color:#303030;
        font-size:28px;
        cursor:pointer;
        box-shadow:0 10px 25px rgba(0,0,0,0.15);
        z-index:20;
        animation:bounce 2s infinite;
        padding-bottom: 10px;
        
        }

    /* ANIMATION */
    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateX(-50%) translateY(0);
        }

        40% {
            transform: translateX(-50%) translateY(-8px);
        }

        60% {
            transform: translateX(-50%) translateY(-4px);
        }

    }

}