/* Variables de couleur */
:root {
    --secondary-blue: #005F73;
    --secondary-black: #000000;
    --secondary-black-50: #00000080;
    --primary: #001219;
    --secondary-orange: #E9D8A6;
    --secondary-orange-10: #F9A6201A;
    --secondary-white: #ffffff;
    --secondary-white-10: #FEFAE01A;

    --audiovisual-color: #0A9396;
    --audiovisual-color-50: #0A939680;
    --audiovisual-color-10: #0A93961A;
    --graphisme-color: #bd94d2;
    --graphisme-color-10: #bd94d21A;
    --web-color: #EE9B00;
    --web-color-50: #ee9b0080;
    --web-color-10: #EE9B001A;
}

/* INITIALISATIONS */
* {
    box-sizing: border-box;
    /* border: red solid; */
}

body,
html {
    margin: 0;
    padding: 0;
    color: white;
    font-family: 'Figtree', sans-serif;
    font-weight: 200;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    width: fit-content;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

p {
    line-height: 1.4;
}

strong {
    font-weight: 800;
}

/* GLOBAL */
body {
    background-color: var(--primary);
}

main {
    padding-bottom: 100px;
}

main:not(.index-main) {
    padding-top: 120px;
    /* Pour compenser la hauteur du header fixe */
}

.contents {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.large-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.mobile-only {
    display: none !important;
}

/* TITRES */

h1:not(.index-main h1) {
    font-size: 3em;
    font-family: 'calistoga', sans-serif;
    font-weight: normal;
    text-shadow:
        var(--audiovisual-color-50) 5px 5px 2px,
        var(--web-color-50) -5px -5px 2px;

}

h2 {
    font-family: 'Anton SC', sans-serif;
    font-size: 2.4em;
    font-weight: normal;
}

/* Lignes */

.hr1 {
    width: 50vw;
    border: 2px solid var(--secondary-white-10);
    border-radius: 10px;
}

/* ========== BOUTONS ========== */
.go-back-button {
    border: none;
    background-color: transparent;
    color: white;
    opacity: 0.5;
    transition: all 0.3s;
    padding: 10px;
    font-size: 1em;
}

.go-back-button:hover {
    opacity: 1;
}

.button0 {
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.button0:hover {
    color: var(--secondary-orange);
}

.button1 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1em;
    background-color: var(--secondary-orange);
    color: var(--secondary-black);
    padding: 4px 20px;
    border: 3px solid var(--secondary-orange);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.button1:hover {
    background-color: transparent;
    color: var(--secondary-orange);
}

.button2 {
    border: var(--secondary-white) solid 2px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.button2:hover {
    background-color: var(--secondary-white);
    color: var(--primary);
}

.button3 {
    border-radius: 25px;
    padding: 6px 15px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.button4 {
    border-radius: 25px;
    padding: 6px;
    padding-right: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-bottom: 5px;
}

.button3:hover,
.button4:hover {
    background-color: var(--secondary-white-10);
}

.button4 img {
    width: 30px;
}
/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(15px);
    z-index: 1000;
    background-color: var(--secondary-black-50);
}

header .back-home {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}

header .back-home p {
    margin: 0;
    font-weight: bold;
}

header img {
    width: 44px;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

header nav li .nav-link {
    padding: 8px;
    transition: all 0.3s ease;
    text-decoration: underline transparent;
    text-underline-offset: 6px;
}

header nav li .nav-link:hover:not(.active-page) {
    color: var(--secondary-white);
    text-decoration: underline var(--secondary-white);
    text-underline-offset: 6px;
}

header nav li .active-page {
    font-weight: bold;
    color: var(--secondary-orange);
    text-decoration: underline var(--secondary-orange) 2px;
    text-underline-offset: 6px;
}

/* Scroll down icon */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

/* CONTACT */

#contact {
    padding: 20px;
}

.contact-div {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.contact-div>div {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    width: fit-content;
}

.contact-div .card-img {
    max-width: 400px;
    border-radius: 10px;
}

/* FOOTER */

footer {
    background-color: var(--secondary-black);
    border-top: var(--secondary-blue) solid 2px;
}

footer #contact {
    padding-top: 50px;
    padding-bottom: 50px;
}

footer .rs-links {
    display: flex;
    flex-wrap: wrap;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

footer #copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    padding-top: 80px;
}


/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width:850px) {
.banner {
    background-position: bottom right -30px, center;
    background-size: auto 80%, cover;
}

.banner .contents {
    background-color: rgba(0, 0, 0, 0.804);
    padding-left: 10px;
}
}

@media screen and (max-width:768px) {
    body {
        font-size: 1rem;
    }

    .univers-links,
    .univ-section .contents,
    .contact-div,
    #copyright, .about-presentation,
    .career .contents>div,
    .project-first-div {
        flex-direction: column;
        align-items: center;
    }

    .notice-container {
        column-count: 1;
    }

    .project-second-div {
        flex-flow: column-reverse;
    }

    .img2 {
        width: 100%;
    }

    .projects-section {
        grid-template-columns: 1fr;
    }

    .desktop-only, .back-home p,
    .en-bref img {
        display: none;
    }

    .mobile-only {
        display: unset !important;
    }

    .id-card {
        width: 100%;
    }

    .about-presentation {
        gap: 20px;
        flex-flow: column-reverse;
    }

    .card-img {
        width: 100%;
    }

    #copyright * {
        text-align: center;
    }

    footer .footer-links {
        flex-wrap: wrap;
        gap: 0;
    }

    footer .rs-links {
        flex-direction: column;
        align-items: center;
        margin: auto;
    }

    main:not(.index-main) {
    padding-top: 90px;
}

h1:not(.index-main h1) {
    margin: 0;
}

    /* Bannière de bienvenue */
    .banner {
        justify-content: flex-end;
        padding-bottom: 25%;
        height: 100vh;
    }

    .banner h1 {
        font-size: 2.5em;
    }

    .banner .animated-title {
        line-height: 30px;
    }

    .banner .subtitle {
        font-size: 1em;
    }

    .discover-banner * {
        text-align: center;
    }
}