/*
Styles alex-multimedia.fr
by Alex Moreau
v 1.0.0
*/

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Asul";
    src: url("fonts/Asul-Bold.ttf");
    font-weight: bold;
    font-style: normal;
}

/* Déclaration des couleurs */
:root {
    --bodyBackgroundColor: linear-gradient(#662d91, 1%, #303030, 5%, #292929);
    --textColor: white;

    /* TITRE section */
    --titreColorSection: #f15a24;
    /* TITRE Clients */
    --titreColorProjets: #00b69b;

    /* a href */
    --linkTextColor: white;
    /* btn */
    --btnBackgroundColor: #662d91;
    --btnLinkSite: white;

    /* btn hover */
    --btnLinkMouseHover: #d2e78d;
    --btnTextMouseHover: black;
    /* a href hover */
    --linkMouseHover: #d2e78d;
    ;

    /* focus form */
    --borderProjectItem: #662d91;

}

/****** Styles par défaut (Mobile First - pour les petits écrans en premier) *******/

body {
    margin: 0.5em;
    padding: 0;
    font-family: "Lato", sans-serif;
    font-size: 1.6em;
    background: var(--bodyBackgroundColor);
    color: var(--textColor);
}

p {
    font-size: 1em;
}

h1,
h2,
h3,
h4 {
    font-family: "Asul", sans-serif;
}

h1 {
    font-size: 1.7em;
    margin: 0.3em;
}

h2 {
    color: var(--btnLinkMouseHover);
}

h3 {
    color: var(--titreColorSection);
}

h2 {
    font-size: 1.3em;
    margin: 0 0 1em;
}

h3 {
    font-size: 1em;
    margin: 0.3em 0.3em 1em 0;
}

h4 {
    font-size: 0.8em;
    margin: 0 0 0.5em;
    color: var(--titreColorProjets);
}

a {
    color: var(--linkTextColor);
    text-decoration: none;
}

a:hover,
article a:hover,
a:active,
article a:active {
    color: var(--linkMouseHover);
}

button {
    font-size: 0.7em;
    background-color: var(--btnBackgroundColor);
    color: var(--btnLinkSite);
    text-align: center;
    padding: 10px 30px;
    border-radius: 7px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--btnLinkMouseHover);
    color: var(--btnTextMouseHover);
}


/* Styles pour le header */

header {
    text-align: center;
}


/* Styles pour la nav */

nav {
    text-align: right;
    margin: 0 1em 1em;
}

nav ul li a {
    font-size: 0.8em;
}

nav ul li {
    display: block;
    margin: 10px 0;
    font-weight: bold;
}


/* Styles pour les sections */

section {
    margin: 0.5em 0 1em;
    padding: 0.3em;
}

section p {
    font-size: 0.8em;
}

/*styles section à propos */
#img_logo {
    margin: 1em auto;
    width: 60%;
}

#img_logo img {
    width: 100%;
}

.titre_presentation {
    margin: 0.5em 0 0;
}

.detail_presentation {
    margin: 0 0 1em;
}

#intro_txt_presentation {
    margin: 0 0 2em 0;
}

#invit_contact {
    margin: 2em 0 0 0;
    text-align: center;
}

#presentation a {
    color: var(--linkMouseHover);
}

/*styles section projets */

article {
    margin: 0.5em 0.5em 1em;
}

article p {
    font-size: 0.6em;
    line-height: 1.4em;
}

.projects {
    display: block;
}

.project-item .thumbnail_projet {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0 0 15px;
}

.oups {
    text-align: center;
    color: var(--titreColorSection);
    font-size: 0.5em;
    font-style: italic;
    margin: 0;
}

dialog {
    background-color: grey;
    width: 85%;
    text-align: right;
}

.horizontal-scrolling-items {
    display: flex;
    gap: 100px;
    padding: 25px 0 !important;
    justify-content: center;
}

.horizontal-scrolling-items__group {
    display: flex;
    align-items: center;
    width: auto;
    gap: 0.5em;
    overflow-x: scroll;
}

.horizontal-scrolling-items__group__item {
    height: auto;
    background-size: cover;
    max-width: 300px;
    margin: 0 0 0.5em;
}



/* Styles pour le footer */

footer {
    padding: 1em;
}

footer ul li {
    font-size: 0.8em;
}

.footer_list_pages {
    margin: 0.8em 0;
}

.footer_list_lieux ul li {
    list-style-type: "\0F04";
    margin: 0 0 0.2em;
    padding-left: 0.3em;
}

#img_contact {
    margin: auto;
    width: 60%;
    text-align: center;
}

#img_contact img {
    width: 100%;
}

.bando_bloc_id {
    margin: 0 0 0.5em 0;
}

.bloc_bando_left {
    margin: 1em 0 0;
}

.bando_bloc_form {
    margin: 0.5em 0 0 0;
}

/* Styles du formulaire */

form {
    margin: 0 0 1em;
}

form p {
    font-size: 0.8em;
}

.contact-form .form-group {
    margin: 15px auto 10px;
}

.contact-form label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.6em;
}

.contact-form input::placeholder {
    color: rgb(152, 152, 152);
    font-size: 0.8em;
    font-style: oblique;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--borderProjectItem);
    box-shadow: 0 0 0 3px rgb(255, 255, 255);
}


/* Styles du bouton d'envoi */
.contact-form .btn-submit {
    display: block;
}

.ok_form,
.error_form {
    text-align: center;
    height: 500px;
}

.ok_form {
    color: green;
}

.error_form {
    color: red;
}

/* Styles reste footer */

.go_top {
    font-size: 0.8em;
    margin: 0 0 1em 0;
    text-align: right;
}

footer .copyright {
    font-size: 0.6em;
    margin: 0;
    text-align: center;
}


/* Styles pour page mentions */

#mentions p,
#mentions li {
    font-size: 0.8em;
}

#mentions h2 {
    margin: 2em 0 0;
}


/****** Media Query pour les écrans plus grands (tablettes et desktops d'au moins 768px de large) *******************************************************/
@media (min-width: 768px) {

    body {
        margin: 1em;
    }

    h3 {
        font-size: 1.2em;
    }

    h4 {
        font-size: 1.1em;
    }


    /* Styles section a propos */

    #presentation {
        display: flex;
    }

    #img_logo {
        display: flex;
        margin: 0 2em 0 0;
        width: 80%;
    }

    /* Styles projetcs */

    article p {
        font-size: 0.8em;
    }


    /* Styles footer */

    .bando_footer {
        display: flex;
        justify-content: space-evenly;
        align-items: start;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .bloc_bando_left {
        margin: 2.5em 0 0;
    }

    .bando_bloc_id {
        width: 30%;
    }

    .bando_bloc_form {
        width: 60%;
    }

    #img_contact img {
        width: 60%;
    }
}


/****** Media Query pour les très grands écrans (desktops) d'au moins 1024px de large */
@media (min-width: 1024px) {

    header {
        align-items: center;
    }

    nav {
        text-align: center;
    }

    nav ul li {
        display: inline-block;
        margin: 0.7em 1em 0;
        ;
    }

    h1 {
        margin: 0.5em;
    }

    h3 {
        text-align: center;
    }

    main {
        padding: 0 0.8em 2.5em;
    }

    /* Styles section a propos */

    #presentation {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        flex-wrap: nowrap;
        margin: 0 3em 0;
    }

    #img_logo {
        margin: 0;
        display: inline-flex;
        flex-direction: row;
        justify-content: left;
        align-items: flex-start;
        width: 35%;
    }

    #img_logo img {
        width: 50%;
        margin: 0 0 0 1em;
    }

    #intro_txt_presentation {
        margin: 0 0 2em 0;
    }

    #invit_contact {
        margin: 2em 0 0 0;
        text-align: center;
    }

    /* Styles projects */

    .projects {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
    }

    article {
        margin: 1em auto;
        max-width: 40%;
    }

    dialog {
        padding: 1em;
        width: 90%;
        height: 80%;
    }

    .horizontal-scrolling-items {
        height: 90%;
        justify-content: center;
    }


    /* Styles footer */

    .bloc_bando_left {
        margin: 2.5em 0 0;
    }

}