/*
Couleurs :
bleu foncé : #220063
violet : #8A4FEF
bleu : #1C59F7
turquoise : #27B2FF
bleu clair : #8CAFF1
*/

/* CSS commun à toutes les pages */

@font-face {
    font-family: "Cocogoose Pro-trial";
    src: url("Cocogoose Pro-trial.ttf");
}
@font-face {
    font-family: "Futura light bt";
    src: url("Futura light bt.ttf");
}

html, body {
    width: 100vw;
    margin: 0;
    font-family: "Futura light bt", sans-serif;
    color: #220063;
    overflow-x: hidden;
}

header {
    background-image: url('../img/header.png');
    background-repeat: no-repeat;
    background-size: 80vw;
    background-position: top center;
    height: 65vh;
    border-bottom: 2px solid lightgrey;
}

.background {
    background-image: url('../img/header.png');
    background-repeat: no-repeat;
    background-size: 80vw;
    background-position: top center;
    filter: blur(5px);
    height: 100px;
    opacity: 0.8;
}

nav {
    position: fixed;
    width: 100vw;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: rgba(255,255,255,0.8);
    border-bottom: 1px solid lightgrey;
    z-index: 10;
}

main {
    background-color: #F9F9F9;
    padding: 0;
}

footer {
    background-color: #8CAFF1;
    margin: 0;
    padding: 10px 10vw;
    display: flex;
    justify-content: center;
}

footer img {
    width: 40px;
    margin: 20px;
}

footer img:hover {
    width: 50px;
    margin: 15px;
}

ul {
    list-style: none;
}

ul a {
    text-decoration: none;
}

.nav-items {
    display: flex;
    flex-direction: row;
}

.nav-item {
    margin: 0 10px;
    padding: 15px 30px;
}

nav img {
    width: 60px;
}

button {
    background-color: #220063;
    border: 1px solid #220063;
    border-radius: 5px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
}

nav button {
    background-color: #1C59F7;
    border: 1px solid #1C59F7;
}

button a {
    text-decoration: none;
    color: white;
}

h1 {
    font-family: "Cocogoose Pro-trial", serif;
}

.row {
    display: flex;
    flex-direction: row;
}

/* CSS index */

.home {
    padding-bottom: 20px;
}

.home .presentation {
    justify-content: space-evenly;
    padding: 5vw 0;
}

.home .illustration {
    width: 45vw;
    border-radius: 15px;
}

.home .legend {
    width: 35vw;
    background-image: url("../img/slogan.png");
    background-repeat: no-repeat;
    background-size: 35vw;
    background-position: center;
}

.home .text {
    width: 60vw;
    text-align: center;
    margin: 0 20vw;
}

.title {
    text-align: center;
}

.banniere {
    width: 100vw;
    margin: 20px 0;
}

.maquettes {
    margin-bottom: 50px;
}

.carousel-cell img {
    width: 40vw;
    border-radius: 15px;
}

.carousel-cell {
    width: 40vw;
    height: auto;
    margin-right: 10vw;
    margin-left: -5vw;
    border-radius: 15px;
}

/* CSS produits */

.inverse {
    flex-direction: row-reverse;
}

.produits .illustration {
    width: 50vw;
}

.produits .legend {
    margin: 150px;
    padding: 0 20px;
    background-color: #8CAFF1;
    border: 1px solid #8CAFF1;
    border-radius: 5px;
    text-align: center;
}

/* CSS contact */

.bg-contact {
    background-image: url("../img/contact.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    padding: 20px 0;
}

.contact {
    width: 50vw;
    margin: 20px 25vw;
    padding-bottom: 10px;
    background-color: rgba(211, 211, 211, 0.6);
    border: 1px solid rgba(211, 211, 211, 0.6);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
}

input, textarea {
    border: 2px solid lightgrey;
    border-radius: 5px;
    margin-top: 5px;
    padding: 5px;
    font-family: "Futura light bt", sans-serif;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #1C59F7;
}

.submit {
    width: 20vw;
    margin: 0 15vw;
}

/* CSS mobile */
@media (max-width: 1080px) {
    /* CSS mobile commun à toutes les pages */
    header {
        background-image: url('../img/mobile-header.png');
        background-size: 90vw;
        height: 35vh;
    }

    .background {
        background-image: url('../img/mobile-header.png');
        background-size: 90vw;
    }

    nav img {
        width: 100px;
    }

    nav button {
        font-size: 1.8rem;
    }

    .row {
        flex-direction: column;
    }

    /* CSS mobile index */

    .home .illustration {
        width: 90vw;
        margin: 0 5vw;
    }

    .home .legend {
        width: 60vw;
        height: 10vh;
        margin: 10px 20vw;
        padding: 10px;
    }

    .home .text {
        width: 60vw;
        text-align: center;
        margin: 0 20vw;
    }

    .carousel-cell img {
        width: 70vw;
    }

    .carousel-cell {
        width: 70vw;
    }

    /* CSS mobile produits */

    .inverse {
        flex-direction: column;
    }

    .produits .illustration {
        width: 100vw;
    }

    .produits .legend {
        margin: 0 0 20px;
        background-color: white;
        border: none;
    }

    /* CSS mobile contact */

    .bg-contact {
        background: none;
    }

    .contact {
        width: 90vw;
        margin: 20px 5vw;
    }

    .form-item {
        width: 90%;
        margin: 0 4%;
    }

    label, input, textarea {
        font-size: 1.3rem;
        padding: 15px;
    }

    .submit {
        margin: 0 35vw;
        font-size: 1.8rem;
    }
}