/*-------------------------------------------------------------------------------------*/
/*------------------------------------- GLOBAL ----------------------------------------*/
/* -------- Balises et class appelés à plusieurs endroits dans la page---------------- */
/*-------------------------------------------------------------------------------------*/

* {
    box-sizing: border-box; /*Je précise ma box-sizing (pour une width qui prenne le padding)*/
    outline: none; /*Pour que les éléments sur lequel le user clique ne soient pas encadrés en bleu*/
    /*border: 3px dotted rgba(0,0,0,0.3); Visualisation des éléments en leur mettant une border à tout */
    list-style: none;
}

body {
	margin: 0; /*Je colle mon body aux dimensions de la page web*/
    background-image: url(../images/background.png);
}

a, a:hover, a:visited, a:active {
    text-decoration: none; /*Ne souligne pas les liens*/
}


/* Cacher un élément */
.hidden {display: none}

/* pour descendre et cacher élément suivant, notamment un espacement */
.clear::after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    line-height: 0;
    visibility: hidden;
}

/* Mettre en gras un élément */
.bold {font-weight: bold}



/*-------------------------------------------------------------------------------------*/
/*------------------------------------- HEADER ----------------------------------------*/
/* --------------------- Ce qui concerne le header et la nav ------------------------- */
/*-------------------------------------------------------------------------------------*/

header {
    border-top: 30px solid #D72A39;
}

    header h1 {
        text-align: center;
        margin : 0 auto;
        margin: 3% 0;
        font-family: 'Oleo Script Swash Caps';
        letter-spacing: 7px;
    }

        header h1 a {
            color: #D72A39;
        }


/* transition drapeau USA et grossissement du titre */
#span-biggerUSA {
    transition: 1s ease-in-out;
    background-image: url('../images/background.png');
    background-size: 100%;
}

    #span-biggerUSA:hover {
        color: #429761;
        font-size: 90px;
        transition: 1s ease-in-out;
        background-image: url('../images/USA.png');
        background-size: 100%;
    }

.link-list {
    padding-left: 8px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

    #topLeft a {
        display: inline-block;
    }

    /* partie droite du header */
    #bonjour {
        font-family: 'Oleo Script Swash Caps';
    }

        #bonjour span {
            color: #D72A39;
            font-size: 25px;
        }


#buttonCreateUser, #buttonReservation, #buttonOrder, .buttonSignIn {
    color: #FFFFFF;
    display: inline;
    border: none;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    background-color: #339966;
    padding: 10px;
}

    #buttonOrder {
        margin-left: 5%;
    }


#buttonCreateUser:hover, #buttonReservation:hover, #buttonOrder:hover, .buttonSignIn:hover {
    animation: bounce 0.30s ease infinite alternate; 
    }
        @keyframes bounce {
            from {
                transform :translateY(0);
            }
            to {
                transform :translateY(-5px);
            }
        }



/*-------------------------------------------------------------------------------------*/
/*-------------------------------------- MAIN HOME -----------------------------------------*/
/* ------------------------ Ce qui concerne la page d'accueil ------------------------- */
/*-------------------------------------------------------------------------------------*/

nav, main {
    width: 85%;
    margin: 0 auto;
}

/* pour que img ne varie pas en taille */
.meal-list img {
    width: 100%;
    max-height: 200px;
}

/* pour que cellule de l'image soit adaptée à l'image et ne rajoute pas de la largeur */
.meal-list td:nth-child(1) {
    width: 250px;
}

/* aligner prix à droite */
.meal-list td:nth-child(3) {
    text-align: right;
    width: 100px;
}



/*-------------------------------------------------------------------------------------*/
/*-------------------------------------- MAIN COMMUN AUX PAGES -----------------------------------------*/
/* ------------------------ Ce qui concerne le style commun des pages ------------------------- */
/*-------------------------------------------------------------------------------------*/

.meal-list td:nth-child(2), #tableRecapOrder th:nth-child(2), #orderFinalRecap th:nth-child(1),  {
    text-align: left;
}

#titleUser, #titleLogin, #titleReservation, #titleOrder, #titlePayment, #titleValidate, #titleAddProduct {
    color: #339966;
    margin: 5% 0;
}

#formUser fieldset, #formLogin fieldset, #formReservation fieldset, #formOrder fieldset, #formAddProduct fieldset {
    border-radius: 5px;
    margin: 3% 0;
}

#formUser legend, #formLogin legend, #formReservation legend, #formOrder legend, #formAddProduct legend {
    color: #339966;
    font-size: 20px;
    padding: 0 1%;
    transition: 0.5s ease-in-out;
}

    #formUser fieldset:hover legend, #formLogin fieldset:hover legend, #formReservation fieldset:hover legend, #formOrder fieldset:hover legend, #formAddProduct fieldset:hover legend {
        margin-left: 400px;
        transition: 0.5s ease-in-out;
    }

#formUser td, #formLogin td, #formReservation td, #formOrder td, #formAddProduct td {
    padding: 2% 0;
}

#formUser textarea, #formOrder textarea, #formAddProduct textarea {
    resize: none;
    vertical-align: top;
}

#formUser td:nth-child(1), #formLogin td:nth-child(1), #formReservation td:nth-child(1), #formAddProduct td:nth-child(1) {
    width : 200px;
    vertical-align: top;
}

#formUser #buttonCreateAccount, #formLogin #buttonConnect, #formReservation #buttonReserve, #formOrder #buttonOrder, #paymentRecap #buttonPayRecap, #formAddProduct #buttonAddProduct {
    color: #FFFFFF;
    font-weight: bold;
    background-color: #339966;
    border: none;
    border-radius: 5px;
    padding: 1%;
    margin-right: 1%;
}

#formUser #buttonReset, #formLogin #buttonReset, #formReservation #buttonReset, #formOrder #buttonReset, #paymentRecap #buttonCancelOrder, #formAddProduct #buttonReset {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 0.65em;
    background-color: #D72A39;
    border: none;
    border-radius: 5px;
    padding: 1%;
}

#tableRecapOrder th, #orderFinalRecap th {
    text-align: right;
    padding: 10px;
}

#tableRecapOrder td, #orderFinalRecap td {
    padding: 10px;
}

#tableRecapOrder td:nth-child(2), #orderFinalRecap tbody td:nth-child(1) {
    text-align: left;
    width: 450px;
}

    #tableRecapOrder td:nth-child(1), #tableRecapOrder td:nth-child(3), #tableRecapOrder td:nth-child(4), #orderFinalRecap tbody td:nth-child(2), #orderFinalRecap tbody td:nth-child(3), #orderFinalRecap tbody td:nth-child(4)  {
        text-align: right;
        width: 150px;
    }

#productQuantityOrder, .smallTextArea {
    width: 50px;
}



/*-------------------------------------------------------------------------------------*/
/*-------------------------------------- MAIN ORDER -----------------------------------------*/
/* ------------------------ Ce qui concerne les commandes ------------------------- */
/*-------------------------------------------------------------------------------------*/

#tableOrder td:nth-child(1) {
    width : 150px;
    vertical-align: top;
}

#descriptionOrderArticle {
    background-color: #D3FFFD;
    border: 1px solid black;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
}

    #descriptionOrderArticle img {
        width: 300px;
        max-height: 200px;
        padding: 0 25px;
    }

    #descriptionOrderArticle p {
        padding-right: 10px;
    }

    #descriptionOrderArticle span {
        padding: 20px;
    }

#buttonAddProductOrder {
    color: #FFFFFF;
    font-weight: bold;
    background-color: #339966;
    border: none;
    border-radius: 5px;
    padding: 15px;
}

.emptyBasket {
    font-family: 'Oleo Script Swash Caps';
    font-size: 35px;
    color: #D72A39;
    width: 1000px;
}

#buttonDeleteProduct {
    color: #FFFFFF;
    background-color: #D72A39;
    border: none;
    border-radius: 5px;
    padding: 10px 12px;
}

#formOrder #buttonOrder {
    margin-left: 0;
}



/*-------------------------------------------------------------------------------------*/
/*------------------------------- MAIN PAYMENT RECAP -----------------------------------------*/
/* --------------------- Ce qui concerne le recap de page paiment ------------------------- */
/*-------------------------------------------------------------------------------------*/

#customerDetails {
    background-color: #D0FFFF;
    border: 1px solid #1E593B;
    width: 500px;
    margin: 2em 0 1em 50%;
    padding: 0 1em;
    border-radius: 5px;
}

    .city {
        text-transform: uppercase
    }

#orderFinalRecap {
    width: 100%;
}

    #orderFinalRecap caption {
        font-family: 'Oleo Script Swash Caps';
        color: #339966;
        font-size: 30px;
        margin-bottom: 20px;
    }

    #orderFinalRecap img {
        vertical-align: middle;
        width: 125px; 
        max-height: 125px;
    }

    #orderFinalRecap em {
        padding-left: 10px;
    }

        #orderFinalRecap tfoot {
            text-align: right;
        }

    #TTC {
        color: #339966;
    }

    #orderFinalRecap tbody tr:hover, #orderFinalRecap tfoot tr:not(:last-child):hover, #priceTTC:hover {
        background-color: #339966;
        color: #FFFFFF;
    }

#paymentRecap #buttonPayRecap {
    padding: 1.3%;
    margin-left: 0;
}



/*-------------------------------------------------------------------------------------*/
/*------------------------------- MAIN VALIDATE -----------------------------------------*/
/* --------------------- Ce qui concerne la page validate ------------------------- */
/*-------------------------------------------------------------------------------------*/

#titleValidate, #formValidate, #img-success {
    text-align: center;
}

    #img-success img {
    width: 500px;
    }

#buttonEndOrder {
    color: #FFFFFF;
    font-weight: bold;
    background-color: #D72A39;
    border: none;
    border-radius: 5px;
    padding: 1.3%;
    margin: 2% 1% 5% 0;
}



/*-------------------------------------------------------------------------------------*/
/*-------------------------------------- MAIN ADMIN MEAL -----------------------------------------*/
/* ------------------------ Ce qui concerne l'ajout de produit par admin ------------------------- */
/*-------------------------------------------------------------------------------------*/

.bigTextArea {
    width: 300px;
}



/*-------------------------------------------------------------------------------------*/
/*------------------------------------- FOOTER ----------------------------------------*/
/* --------------------------- Ce qui concerne le footer ----------------------------- */
/*-------------------------------------------------------------------------------------*/

footer {
    text-align: center;
}

    footer ul {
        display: flex;
        justify-content: center;
        padding-left: 0px;
    }

        footer ul li+li {
            margin-left: 3px;
        } 
