@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Charm:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Monomakh&display=swap');

/* Create variables for the two bg colors on the website */
:root {
    --bg-color: #21211F;
    --bg-color-dark: #191919;
    --primary-color: #000000;
    --highlight-color: #ffffff
}

.high {
    text-decoration: underline;
}

body {
    margin: 0;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: #FFF;
    font-family: "Montserrat", sans-serif;
}

html {
    scroll-behavior: smooth;
}

nav {
    width: 100vw;
    height: 15vh;

    padding: 10px;
    box-sizing: border-box;

    background-color: var(--bg-color-dark);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;

    box-shadow: rgba(0,0,0,.25) 0 4px 4px;

    position: sticky;
    top: 0;
    z-index: 1;

    font-family: "Monomakh", sans-serif;
}

nav ul li {
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement si besoin */
}

a {
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
}

nav img, .button img {
    border: none;
}

img.logo {
    filter: invert(1);
    transition: filter 0.5s ease-in-out;
}

img.logo.top:hover {
    filter: invert(0);
    transition: filter 0.5s ease-in-out;
    cursor: pointer;
}

img.logo.top {
    height: 100%;
    width: auto;
}

img#burgerMenu {
    height: 50%;
}

div#cover {
    width: 100vw;
    height: 52.8vw;
    background-image: url('../images/main/cover_img.jpg');
    background-size: contain;
    background-size: contain;
    background-position: center;
    position: relative;
    right: 1px;

    transition: background-image 0.5s ease-in-out;
}

div#cover>h1 {
    margin: 0 0 0 10px;
    position: relative;
    bottom: 30%;
    color: #FFF;
    /*text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);*/
}

.button {
    padding: 20px 18px;
    background-color: var(--bg-color-dark);
    color: #FFF;
    border: 1px solid #FFF;
    width: fit-content;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

img, #cover {
    border: 1px solid #FFFFFF;
}

.button>* {
    margin: 0 10px;
}

.button>img {
    width: 20px;
    height: auto;
}

#images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0;
    gap: 5vh;
    list-style: none;
    width: 100vw;
    margin-bottom: 0;
    min-height: 100vh;
}

#images img {
    width: 40vw;
    height: auto;
}

#images .video-container {
    width: 40vw;
    height: fit-content;
}

#images .video-container video {
    width: 40vw;
}

.mainImage {
    width: 60vw;
    height: auto;
    position: relative;
    margin: 0;
    object-fit: cover;
    align-self: flex-end;
}

.mainImage:nth-child(odd) {
    align-self: flex-start;
}

.presentation {
    position: relative;
}
/* From this point, the CSS is generated by chatGPT, I just modified it. */

/* Formulaire de contact */
#contact {
    background-color: var(--bg-color-dark);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#contact label {
    color: white;
    font-weight: bold;
    display: block;
    margin: 10px 0 5px;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    background-color: #444;
    color: white;
    font-size: 14px;
}

#contact h2 {
    color: white;
    text-align: center;
    width: 100%;
}

#contact h3 {
    color: white;
    text-align: center;
    width: 100%;
    font-weight: normal;
    margin-top: 0;
}

/* Bouton de formulaire */
#contact button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Animation hover */
#contact button:hover {
    background-color: darkorange;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

/* Effet de chargement après envoi */
#contact button.loading {
    background-color: #555;
    pointer-events: none; /* Évite les clics supplémentaires */
}

#contact button.loading span {
    opacity: 0;
}

/* Cercle de chargement */
#contact button.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid darkorange;
    border-top: 3px solid transparent;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    animation: spin 0.6s linear infinite;
}

/* Animation de rotation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Footer */
footer {
    background-color: #1c1c1c;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer img {
    border: none;
}

footer .logo {
    height: 50px;
    width: auto;
}

.contactInfos {
    text-align: left;
    line-height: 1.5;
}

.contactInfos .names, .phones, .emails, .address {
    display: block;
    color: #ddd;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

footer ul li a {
    color: #cdcdcd;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}

.partners {
    display: flex;
    gap: 10px;
    flex-direction: row;
    width: 100%;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}

.partners>* {
    max-width: 20vw;
}

.partners span {
    display: inline-block;
    width: 100%;
}

@media(max-width: 600px) {
    .partners span {
        font-size: .8em;
    }
}

@media(max-width: 477px) {
    .partners span {
        font-size: .6em;
    }
}

.partners img {
    border: none;
    height: 50px;
    width: auto;
}

img.Insta {
    filter: invert(1);
}


/* This is mostly for the contact.php page */
h1 {
    color: white;
    text-align: center;
}

h2 {
    text-align: center;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;

    /* centrer le bouton */
    margin: 0 auto;
    display: block;
}

.presentation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-color-dark);
    color: white;
    text-align: center;
    padding: 20px 20vw;
}

#topLogo {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#topLogo a {
    width: fit-content;
}

#topLogo img {
    height: 50%;
}

@media (max-width: 600px) {
    #topLogo img {
        width: 50vw;
        height: auto;
    }
}

nav ul {
    display: none;
    transform: translateX(100%);
    animation: slideOut 0.5s ease-in-out;
}

nav ul.active {
    display: flex;
    position: absolute;
    top: 15vh;
    width: 100vw;
    height: 85vh;
    margin: 0;
    background-color: var(--bg-color-dark);
    flex-direction: column;
    padding: 0;
    transform: translateX(0);
    animation: slideIn 0.5s ease-in-out;
}

nav ul li {
    padding: 30px;
    text-align: center;
    font-size: 1.5em;
}

@media (max-height: 750px) {
    nav ul li {
        padding: 20px;
    }
}

@media (max-height: 560px) {
    nav ul li {
        padding: 15px;
    }
}

@media (max-height: 472px) {
    nav ul {
        flex-wrap: wrap;
    }
}

@media (max-width: 1885px) {
    nav ul li {
        font-size: 1.4em;
    }
}

@media (max-width: 1809px) {
    nav ul li {
        font-size: 1.3em;
    }
}

@media (max-width: 1737px) {
    nav ul li {
        font-size: 1.2em;
    }
}

@media (max-width: 1663px) {
    nav ul li {
        font-size: 1em;
    }
}

nav a {
    position: relative;
    color: #FFF;
}

nav a::after {
    content: "";
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    border-bottom: 2px solid #FFF;
    transform: scaleX(0); /* Masque initialement le soulignement */
    transform-origin: left; /* Fixe le point de départ de la transformation à droite */
    transition: transform 0.3s ease, transform-origin 0s 0s; /* Animation fluide */
    z-index: 1;
}

nav a:hover::after {
    transform: scaleX(1); /* Étend le soulignement vers la gauche */
}

nav a:not(:hover)::after {
    transform-origin: right;
}

nav ul li::marker {
    content: "";
}

@media (min-width: 1553px) {
    #burgerMenu {
        display: none;
    }

    nav ul {
        display: flex;
        transform: none;
        height: 100%;
        margin: 0;
    }

    nav ul li {
        border: none;
        margin: 0;
    }
}

@keyframes slideIn {
    from {
        display: none;
        transform: translateX(-100%);
    }
    1% {
        display: flex;
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        display: flex;
        transform: translateX(0);
    }
    99% {
        transform: translateX(100%);
    }
    to {
        display: none;
    }
}

#burgerMenu {
    transform: none;
    transition: transform 0.5s ease-in-out;
}

/*noinspection CssUnusedSymbol*/
#burgerMenu.rotate {
    transform: rotateZ(90deg) scale(1.5);
    transition: transform 0.5s ease-in-out;
    display: block;
}

@media (min-width: 1000px) {
    #images {
        margin-bottom: 10px;
    }

    .mainImage {
        width: 40vw;
        height: 50%;
    }

    #images .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40vw;
        height: 20vh;
        padding: 0;
        transform: none;
        left: 0;
        font-size: x-large;
    }
}

.links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
}

.type {
    font-weight: bold;
}

.infos {
    padding: 20px;
}

.infos p {
    margin-left: 10px;
}