@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@700&display=swap');

body {
    margin: 0;
    background-color: rgb(239, 239, 239);
    /*background-image: url('../Images/DeepFieldWebb.jpg');*/
    background-image: url('../Images/Hubble_comp.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;

}

.grillePrincipale {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
            "Nav"
            "Corps";
    gap: 5px;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.Nav {
    grid-area: Nav;
    column-span: all;
}

    .grilleCorps {
        grid-area: Corps;
        position: relative;
        
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto 20%;
        grid-template-areas:
                "titre titre titre"
                "txtUniv Logo txtTraj"
                "txtUniv Logos txtTraj";
        gap: 5px;

    }

    .grilleCorps li {
        font-family: 'Crimson Text', serif;
        color : #fff;
    }

    .grilleCorps a {
        font-family: 'Crimson Text', serif;
        font-size: 1.5em;
        color : #fff;
        text-decoration: none;
    }

    .grilleCorps samp {
        font-family: 'Crimson Text', serif;
        font-size: 1.5em;
    }

    .grilleCorps button {
        background-color: transparent;
        border-color: transparent;
        font-family: 'Crimson Text', serif;
        font-size: 1.5em;
        color : #fff;
        border-width: 0;
        padding: 0%;
    }

    .titre {
        grid-area: titre;
        column-span: all;

        text-align: center;
        text-transform: uppercase;
        font-family: "Crimson Text", serif;
        font-weight: bold;
        letter-spacing: clamp(5px, 2vw, 30px);

        font-size: clamp(2rem, 5vw, 6rem);
        color: transparent;
        background: linear-gradient(to right, #ffffff, rgba(230, 114, 101, 0.85));
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Ombre pour le texte */
        animation: fallIn 2s ease-out forwards;
        animation-fill-mode: both;

        text-decoration: underline;
        text-underline-offset: clamp(4px, 5vw, 50px);
        text-decoration-thickness: clamp(1px, 0.3vw, 5px);
        text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    }

    .txtUniv {
        display: flex;
        flex-direction: column;
        grid-area: txtUniv;
        margin: clamp(10px, 5vw, 100px);
        margin-top: 20px;
        margin-bottom: 40px;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: clamp(10px, 3vw, 50px);
        padding: 10px;
    }

        .txtUniv h2 {
            color: transparent;
            background: linear-gradient(to right, rgba(176, 66, 182, 0.85), rgba(197, 177, 229, 0.85));
            -webkit-background-clip: text;
            background-clip: text;

            text-align: center;
            font-family: 'Crimson Text', serif;
            font-size: clamp(2.5rem, 3.5vw, 4rem);
            font-weight: bold;
            text-transform: uppercase;
        }

        .txtUniv p, .txtUniv a, .txtUniv button, .txtUniv samp {
            color: #ffffff;

            text-align: center;
            font-size: clamp(1.5rem, 2vw, 2rem);
        }

    .Logo {
        grid-area: Logo;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: clamp(10px, 10vw, 20%);
        height: 100%;
    }

        .Logo img {
            max-width: 100%;
            height: auto;
        }

    .txtTraj {
        display: flex;
        flex-direction: column;
        grid-area: txtTraj;
        margin: clamp(10px, 5vw, 100px);
        margin-top: 20px;
        margin-bottom: 40px;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: clamp(10px, 3vw, 50px);
        padding: 10px;
    }

        .txtTraj h2 {
            color: transparent;
            background: linear-gradient(to right, rgba(153, 194, 175, 0.85), rgba(39, 121, 124, 0.85));
            -webkit-background-clip: text;
            background-clip: text;

            text-align: center;
            font-family: 'Crimson Text', serif;
            font-size: clamp(2.5rem, 3.5vw, 4rem);
            font-weight: bold;
            text-transform: uppercase;
        }

        .txtTraj p, .txtTraj a, .txtTraj button, .txtTraj samp {
            color: #ffffff;

            text-align: center;
            font-size: clamp(1.5rem, 2vw, 2rem);
        }

    .Logos {
        grid-area: Logos;
        display: flex;
        flex-direction: column;
        gap: 15px;
        justify-content: end;
        align-items: center;
        width: 100%;
    }

        .Logos img {
            max-height: 100%;
            width: clamp(10px, 100%, 1000px);
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: clamp(10px, 3vw, 50px);
            padding: 10px;
            margin-bottom: 40px;
        }

        .Logos #version {
            color: #ffffff;

            text-align: center;
            font-size: 1.5em;
        }

#watermark {
    position: fixed;
    bottom: 0px;
    right: 25px;
    color: rgba(255, 255, 255, 0.2);
    font-size: clamp(0.5rem, 1vw, 1rem);
}

@keyframes fallIn {
    0% {
        transform: translateY(-10%);
        opacity: 0;
    }
    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes barIn {
    0% {
        transform: scaleX(0) translateX(-1%);
        opacity: 0;
    }
    100% {
        transform: scaleX(0.5) translateX(-1%);
        opacity: 1;
    }
}

@media screen and (max-width: 1200px) {
    .grilleCorps {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        grid-template-areas:
            "titre"
            "Logo"
            "txtUniv"
            "txtTraj"
            "Logos";
    }

    .Logo img {
        max-width: 50%;
        height: auto;
    }
    
    .Logos img {
        width: clamp(10px, 80%, 1000px);
    }
}