﻿@import url("theme_rsma.css");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


/* Background and layout */
body {
    background: linear-gradient(135deg, #0055a4 0%, #ffffff 50%, #ef4135 100%);
    overflow-x: hidden;
    overflow-y: hidden;
    color: white;
    min-height: 100dvh;
    background-size: cover;  /*eviter les coupures de fond*/
}


/* Background blobs animés */
.background-blobs{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}


/* Style générale des blobs*/
.blob {
    position: absolute;
    border-radius: 50%;
    filter:blur(50px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}


/*Color & positions */
.b1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0,85,164,0.85), rgba(0,85,164,0.25));
    top: -50px;
    left: -120px;
    animation-duration: 16s;
}

.b2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(239,65,53,0.75), rgba(239,65,53,0.18));
    top: 200px;
    right: -150px;
    animation-duration: 14s;
}

.b3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.92), rgba(0,85,164,0.15));
    bottom: -100px;
    left: 20%;
    animation-duration: 18s;
}

.b4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.88), rgba(239,65,53,0.20));
    bottom: -80px;
    right: 10%;
    animation-duration: 20s;
}


/* Animation float*/
@keyframes float {
    0% {transform: translate(0px) translate(0px);}
    50% {transform: translate(-40px) translate(25px);}
    100% {transform: translate(20px) translate(-20px);}
}

/* Header styling */
header {
    width: 100%;
    padding: 20px 36px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.logo-img {
    display: block;
    height: 72px;
    width: auto;
    object-fit: contain;
}

.header-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.partner-img {
    height: 58px;
}

/*Animation header nav*/
header nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

header nav a {
    display: inline-block;
    padding: 14px 10px;
    position: relative;
    z-index: 2;
}

.animation_start {
    position: absolute;
    height: 4px;
    bottom: 0;
    left: 0;
    width: 0;
    background: white;
    border-radius: 4px;
    transition: all 0.4s ease;
    pointer-events: none;
    transition: all 0.4s ease, height 0.4s ease, bottom 0.4s ease;
}

/*Ajuster les valeur 'width' et 'left' en fonction de l'espacement et du texte de mes liens*/
nav a:nth-child(1):hover .animation_start {width: 65px; left: 10px;} /*Home*/
nav a:nth-child(2):hover .animation_start {width: 85px; left: 88px;} /*features*/
nav a:nth-child(3):hover .animation_start {width: 75px; left: 190px;} /*About*/
nav a:nth-child(4):hover .animation_start {width: 80px; left: 280x;} /*Service*/
nav a:nth-child(5):hover .animation_start {width: 85px; left: 375px;} /*Contact*/

/*Main content styling */
.main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 30px 140px 80px; /*réduit l'espace gauche/droit*/
    gap: 120px; /* équilibre l'espace entre les deux blocs*/
    position: relative;
    z-index: 2;
    min-height: calc(100dvh - 145px);
}


/* Left section */
.text-box {
    flex: 1 1 420px;
    max-width: 640px;
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(6px);
}

.text-box h1 {
    font-size: 52px;
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.05;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.text-box p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.96);
}

.btn {
    background: white;
    color: #555;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

/*Login bocx styling (right section) */
.login-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.229);
    width: min(100%, 420px);
    min-width: 300px;
    height: auto;
    padding: 30px;
    margin-right: 0;
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-box h2 {
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    font-size: 1.55rem;
}

.login-box label {
    display: block;
    text-align: center;
    margin-top: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.login-box input {
    width: 100%;
    text-align: center;
    padding: 12px;
    margin: 8px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
}

.login-box input:focus {
    outline: none;
    border-color: #86c5ff;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.btn {
    background: white;
    color: #555;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

.login-box .btn {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 8px;
    background: #2f73d8;
    color: #ffffff;
    font-weight: 700;
}

.login-box .btn:hover {
    background: #1e5fbe;
    opacity: 1;
}

/*Positionnement du conteneur d'étoiles */
.star-container{
    position: absolute;
    top: 50%;
    right: 120px;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/*Style des étoiles */
.star {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff6;
    opacity: 0;
    animation: twinkle 5s infinite ease-in-out alternate;
}

/*Animation des étoiles */
@keyframes twinkle {
    0% {transform: translate(0, 0)scale(1); opacity: 0.8;}
    50% {transform: translate(5px, -10px)scale(1.1); opacity: 1;}
    100% {transform: translate(-5px, 10px)scale(0.9); opacity: 0.6;}
}


/*Responsive pour mobile*/
@media (max-width: 480px) {

    header {
        padding: 12px 12px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }

    .logo {
        padding: 7px 10px;
    }

    .logo-img {
        height: 54px;
    }

    .partner-logos {
        display: none;
    }

    .header-title {
        font-size: 0.9rem;
        text-align: center;
    }

    .text-box h1 {
        font-size: 30px;
    }

    .text-box p {
        font-size: 13px;
    }

    .btn {
        padding: 10px 22px;
        font-size: 14px;
    }

    .main {
        padding: 16px 12px 32px;
        gap: 18px;
        min-height: auto;
    }

    .text-box {
        max-width: 100%;
        padding: 16px;
    }

    .login-box {
        width: 100%;
        min-width: 0;
        padding: 20px;
        border-radius: 14px;
    }

    .login-box input {
        padding: 10px;
        font-size: 14px;
    }

    /* Taille des blobs reduite pour eviter l'effet sature */
    .b1, .b2, .b3, .b4 {
        transform: scale(0.55);
    }

    .blob {
        filter: blur(30px);
        opacity: 0.5;
    }

    /* Autoriser le scroll sur mobile si le contenu dépasse */
    body {
        overflow-y: auto;
    }
}

/*Responsive pour mobile large*/
@media (max-width: 768px) {
    header {
        padding: 20px 30px;
    }

    .partner-logos {
        display: none;
    }

    header nav {
        display: flex; /*simplifie le menu pour mobile*/
        flex-direction: column;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: 15px;
        border-radius: 10px;
        position: absolute;
        top: 70px;
        right: 20px;
        display: none;
    }

    header nav.active {
        display: flex;
    }

    .logo {
        padding: 7px 12px;
    }

    .logo-img {
        height: 50px;
    }

    .main {
        flex-direction: column;
        text-align: center;
        padding: 36px 22px 48px;
        gap: 28px;
        min-height: auto;
    }

    .text-box h1 {
        font-size: 38px;
    }

    .text-box p {
        font-size: 14px;
        line-height: 1.6;
    }

    .btn {
        margin-top: 20px;
    }

    .blob {
        filter: blur(35px);
    }

    .b1, .b2, .b3, .b4 {
        transform: scale(0.7);
    }
}

/*Responsive pour tablette*/
@media (max-width: 992px) {

    .main {
        flex-direction: column;
        text-align: center;
        justify-content: flex-start;
        padding: 50px 34px;
        gap: 34px;
        min-height: auto;
    }


    .text-box h1 {
        font-size: 45px;
    }

    .text-box p {
        font-size: 15px;
    }

    .login-box {
        width: min(100%, 420px);
        padding: 25px;
    }

    .blob {
        filter: blur(40px);
        opacity: 0.55;
    }

    .b1, .b2, .b3, .b4 {
        transform: scale(0.8);
    }
}





