@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

*{
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;/*police pricipale du site*/
    font-size: 1rem;
    font-weight:500;
    user-select:none;/*empêche l'utilisateur de séléctionner les éléments du site*/
}
html{
    overflow-x: hidden; /* permet de cacher les bouts du site qui sortent du cadre.*/
}

p{
    color: #494949;
}

#wrapper_body{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F9F9F9;
    padding: 4em 2em 5em 2em;
}

#note_moyenne_boutique{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em 0;
    gap:1.8em;
}

#note_moyenne_boutique p{
    font-size: 1.8em;
    font-weight: 400;
    color: #494949;
    text-transform: uppercase;
    vertical-align: middle;
}

#etoiles_moyennes_boutique{
    display: flex;
    gap: .8em;
}

#etoiles_moyennes_boutique img{
    width: 1.8em;
    height: 1.8em;
}

#bt_rediger_avis{
    padding: 1em 3.5em;
    background-color: #194B72;
    box-shadow: .2em .2em .5em #00000040;
    border: none;
    color: #FFF;
    border-radius: 3em;
    margin-top:1em;
    font-weight: 600;
}

#formulaire_avis{
    transition: all .5s;
    max-height: 0;
    overflow: hidden;
}

form{
    margin-top: 3em;
    display: flex;
    flex-direction: column;
}

form h1{
    font-size: 1.1em;
    font-weight: 600;
    color: #494949;
    margin-bottom: 1em;
}

.champ{
    margin: .7em 0;
}
.champ label{
    font-size: 1.1em;
    font-weight: 600;
    color: #494949;
    display: block;
    margin-bottom: .7em;
}

.champ input, .champ textarea{
    padding: .5em;
    border: 1px solid #00000040;
    border-radius: .5em;
    font-size: 1em;
    resize:none;
}

#wrapper_etoiles{
    display: flex;
    gap: .7em;
}
#wrapper_etoiles button{
    background: none;
    border: none;
}

.etoile{
    width: 1.3em;
    height: 1.2em;
    cursor: pointer;
}

#bt_envoyer{
    padding: 1em 3.5em;
    background-color: #194B72;
    box-shadow: .2em .2em .5em #00000040;
    border: none;
    color: #FFF;
    border-radius: 4em;
    margin: 1em 0;
    align-self: center;
    font-weight: 600;
}

#liste_avis{
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin-top: 2em;
}

.avis{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4em;
    padding: 1.5em 6em 2em 6em;
    background-color: #FFF;
    box-shadow: .2em .2em .5em #00000040;
    border-radius: .5em;
}

.nom_avis{
    font-size: 1.05em;
    font-weight: 700;
    color: #494949;
}

.date_avis{
    font-weight: 400;
    color: #494949;
}

.commentaire_avis{
    max-width: min(55vw, 80em);
    text-align: center;
}

.wrapper_etoiles{
    display: flex;
    gap: .4em;
    margin-bottom: 1.5em;
}
.wrapper_etoiles>img{
    width: 1.2em;
    height: 1.2em;
}



@media screen and (max-width: 768px){
    #wrapper_body{
        padding: 2em 1em;
    }

    #note_moyenne_boutique{
        flex-direction: column;
        gap: 1em;
    }

    #note_moyenne_boutique p{
        font-size: 1.5em;
    }

    #etoiles_moyennes_boutique{
        gap: .5em;
    }

    #etoiles_moyennes_boutique img{
        width: 1.5em;
        height: 1.5em;
    }

    #bt_rediger_avis{
        padding: 1em 2.5em;
    }

    #liste_avis{
        gap: 1em;
    }

    .avis{
        padding: 1.5em 3em 2em 3em;
    }

    .nom_avis{
        font-size: 1em;
    }

    .date_avis{
        font-size: .9em;
    }

    .commentaire_avis{
        font-size: .9em;
    }

    .wrapper_etoiles>img{
        width: 1em;
        height: 1em;
    }
    
}