/* Page CSS pour parametre commun entre les pages*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /*Pour inclure padding et bordure avec element*/
    scroll-behavior: smooth;
}

spline-viewer {
    will-change: transform;
    transform: translateZ(0);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: black;
    color: lightgray;
    min-height: 100vh; /*La page prend au moins tout la hauteur du screen */
    line-height: 1.5; /* Pour meilleur lecture, espace entre les lignes*/
}

/*effet ripple avec click sourris*/
.click-glow {
    position: absolute;
    width: 20px;
    height: 20px;
    background: cyan; 
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0); /*Pour mettre lanimation sur le centre du click*/
    animation: glowAnim 0.6s forwards; /*Pour ne pas que sa revient brusquement a letat initial, */
    box-shadow: 0 0 10px cyan, 0 0 20px #b400ff;
}

@keyframes glowAnim {
    to {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0; /*pour disparaitre */
    }
}



.image-gradient {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.5;
    z-index: -1; /*Garder l'image derriere les autres element*/
}

.layer-blur {
    height: 0;
    width: 30rem;
    position: absolute;
    top: 20%;
    right: 0;
    box-shadow: 0 0 200px 12px white;
    rotate: -30deg;
    z-index: -1;
}

.container {
    width: 100%;
    margin: 0 auto; /* Pour garder centrer, haut et bas 0, gauche et droite auto*/
    padding: 0 2rem;
    position: relative;
    overflow-x: hidden; /* Si le contenu depasse la largeur, il sera invisible*/
    overflow-y: visible;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem;
    z-index: 1100;
}

header h1{
    margin: 0;
    font-size: 3rem;
    font-weight: 300;
}

.logo-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

nav {
    display: flex;
    align-items: center; /* Aligne vertical par rapport a la boite flex*/
    gap: 3rem; /* Espace de 3rem entre chaque lien */
    margin-left: -5%;
}

nav a {
    font-size: 1rem;
    letter-spacing: 0.1rem;
    transition: color 0.2s ease;
    text-decoration: none;
    color: inherit; /*Prend la couleur du parent (dans ce cas le body)*/

}

nav a:hover {
    color: #a7a7a7;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #e5e5e5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-cta {
    display: none;
}

.header-cta {
    display: inline-block;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.btn-inscrire {
    background-color: #a7a7a7;
    color: black;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.nav-cta {
    display: none;
}

.btn-inscrire:hover {
    background-color: white;
}

spline-viewer {
  pointer-events: none; /* allow mouse wheel to scroll page */
}

.hero-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 5rem;
}

.content {

    flex: 1;
    max-width: 50%;
    /*
    max-width: 40rem;
    margin-left: 10%;
    z-index: 999;
    margin-bottom: 10%; */
}

.robot3d {
    flex: 1;
    height: 500px;
    border: none;
}

.tag-box {
    position: relative;
    width: 18rem;
    height: 2.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255,255,255, 0.3);
}   

@keyframes animationGradient {
    to {
        background-position: 200%;
    }
}

.tag-box .tag{
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: black;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease;
    cursor: pointer;
}

.tag-box .tag:hover {
    color: #5300a0;
}

.content h1 {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    margin: 2rem 0;
    line-height: 1.2;
}

.description {
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    max-width: 35rem;
    color: grey;

}

.buttons {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.button-get-started {
    color: #5300a0;
    text-decoration: none;
    border: 1px solid #2a2a2a;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: background-color 0.2s ease;
}

.button-get-started:hover {
    background-color: #1a1a1a;
}

.buttons a {
    text-align: center;
    width: 190px;
}

.btn-signing-main {
    text-decoration: none;
    background-color: lightgray;
    color: black;
    padding: 0.6rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: background-color 0.2s ease;
}

.btn-signing-main:hover {
    background-color: gray;
}

.move3d {
    display: block;
    width: 100%;
    height: 100%;
}



@media (max-width: 1300px){
    main {
        flex-direction: column;
        min-height: auto;
        padding: 2rem 3rem 4rem;
        gap: 2rem;
    }
    .content {
        max-width: 100%;
        margin-top: 0;
    }
    .robot3d {
        width: 100%;
        height: 420px;
    }
}

@media (max-width: 900px){
    header{
        padding: 1rem 2rem;
    }
    main {
        padding: 1.5rem 1.5rem 3rem;
    }
    .content {
        width: 100%;
        max-width: 100%;
    }
    .content h1{
        font-size: 3.1rem;
    }
    .description{
        font-size: 1.05rem;
    }
    .description {
        max-width: 100%;
    }
    nav.nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80vw, 320px);
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        background: rgba(0, 0, 0, 0.95);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding: 6rem 1.6rem 2rem;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transform: translateX(100%);
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 1000;
    }
    body.nav-open nav.nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }
    body.nav-open {
        overflow: hidden;
    }
    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 900;
    }
    nav a {
        padding: 0.4rem 0.2rem;
        width: 100%;
    }
    .nav-toggle {
        display: inline-flex;
        z-index: 1100;
    }
    .header-cta {
        display: none;
    }
    .nav-cta {
        display: inline-flex;
        justify-content: center;
        margin-top: 0.6rem;
        width: 100%;
    }
    .hero-wrap {
        height: 70vh;
    }
}

@media (max-width: 760px){
    header{
        padding: 1rem 1.2rem;
    }
    header h1{
        font-size: 2rem;
    }
    main {
        padding: 1.5rem 1.5rem 3rem;
    }
    .content h1{
        font-size: 2.4rem;
        width: 100%;
        overflow-wrap: anywhere;
    }
    .description{
        font-size: 0.95rem;
        overflow-wrap: anywhere;
    }
    .buttons{
        flex-direction: column;
        align-items: stretch;
    }
    .buttons a{
        width: 100%;
    }
    .tag-box {
        width: 12rem;
    }
    .button-get-started{
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
    .btn-signing-main{
        font-size: 0.9rem;
        padding: 0.8rem 2rem;
    }
    .robot3d {
        height: 320px;
    }
}

@media (max-width: 630px){
    .hero-wrap {
        height: 55vh;
    }
    .move3d {
        width: 140vw;
        height: 100%;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px){
    .content h1{
        font-size: 2.2rem;
    }
    .hero-wrap {
        height: 50vh;
    }
    .move3d {
        width: 170vw;
        height: 100%;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 450px){
    .hero-wrap {
        height: auto;
        aspect-ratio: 1.6 / 1;
    }
    .move3d {
        width: 100%;
        height: 100%;
        position: relative;
        left: 0;
        transform: none;
    }
}

@media (max-width: 330px){
    .hero-wrap {
        aspect-ratio: 1.8 / 1;
    }
    .move3d {
        width: 100%;
        height: 100%;
        position: relative;
        left: 0;
        transform: none;
    }
}


