@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap');/*import des polices*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rufina:wght@400;700&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, body{
    overflow-x: hidden; /* permet de cacher les bouts du site qui sortent du cadre.*/
    width: 100vw;
}




/*-------------------message d'alerte-------------------*/

#wrapper_alert{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #00000080;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

#alert_produit_ajoute{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    background-color: #fff;
    padding: 2.75em 3.5em;
    border-radius: 2em;
    box-shadow: 0 1em 1em #00000040;
}

#wrapper_actions_alert{
    display: flex;
    gap: 2em;
}

#alert_produit_ajoute>p{
    font-size: 1.2em;
    font-weight: 600;
}

#wrapper_actions_alert>a{
    border: 4px solid #194B72;
    text-decoration: none;
    color: #194B72;
    font-weight: 700;
    padding: .8em 2.9em;
    border-radius: 3em;
    box-shadow: .2em .2em .4em 0#00000040;
    font-size: 1.1em;
}

#wrapper_actions_alert>a:hover{
    border-color: #2E6D9D;
}

#wrapper_actions_alert>button{
    border: none;
    background-color: #194B72;
    color: #fff;
    padding: .8em 2.9em;
    border-radius: 3em;
    box-shadow: .2em .2em .4em 0#00000040;
    font-size: 1.1em;
}

#wrapper_actions_alert>button:hover{
    background-color: #2E6D9D;
}

/*-------------------produit-------------------*/

#box_produit{
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#box_produit>div{
    position: relative;
    z-index: 2;
}

#recap_produit{
    padding-top: 5em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

#wrapper_image{
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;  

}

#image_produit{
    height: 20em;
    z-index: 2;
    margin-right:3em;
}

#ombre_produit{
    position: relative;
    bottom: 10em;
    left:25%;
    width: calc(50% - 3em);
    height: 0em;
    z-index: 1;
}

#infos_produit{
    padding-left: min(5em, 5vw);
}

#nom_produit,#animaux_cible,#gout,#wrapper_note_recap,#prix{
    color: #fff;
}
#nom_produit{
    font-size: 2em;
    font-weight: 700;
    z-index: 5;
}
#wrapper_animaux_gout{
    margin-top: 1em;
    display: flex;
    align-items: end;
    gap:2em;
}

#animaux_cible{
    font-size: 1.4em;
    font-weight: 300;
}
#gout{
    font-size: 1.4em;
    font-weight: 700;
}



#wrapper_note_recap{
    margin: 1em 0 2em;
    display: flex;
    gap: 1.7em;
    align-items: start;
}

.wrapper_etoiles_note{
    display: flex;
    flex-wrap: nowrap;
    gap:.7em;
}

.etoile_note_produit{
    width: 1.5em;
}

#wrapper_note_recap>p{
    font-size: 1.4em;
}

#prix{
    font-size: 2em;
    font-weight: 700;
}
#prix_vente_conseille{
    color: #fff;
    margin-top: 1em;
    font-weight: 400;
}

#box_quantite{
    margin-top: 2em;
    width: 9.5em;
    height: 3em;
    padding: 0 .2em;
    border: solid .2em #fff;
    border-radius: 4em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}
#quantite{
    font-size: 1.2em;
}


.selecteur_quantite{
    background: none;
    color: #ffffff;
    font-size: 1.4em;
    border: none;
    width: 2.5em;
    height: 2.5em;
    border-radius: 5em;
}

#bouton_ajouter_panier{
    margin-top: .7em;
    background-color: #fff;
    color: #2E6D9D;
    border: none;
    padding: .7em 2.2em;
    border-radius: 5em;
    font-size: 1.3em;
    font-weight: 600;
}


#description_produit{
    color: #fff;
    font-size: 1em;
    font-weight: 300;
    line-height: 1.7em;
    margin: 4em 2em;
    z-index: 2;
    max-width: 50em;
    transition: all 1s ease-out;
}

#titre_description{
    font-size: 1.4em;
    font-weight: 700 !important;
}

.bold_texte_description{
    font-weight: 700 !important;
}

#bg_description_wrapper{
    position: relative;
}

#background_description_produit{
    position: absolute;
    width: 30em;
    height: 30em;
    bottom: 0em;
    right: max(calc(50vw - 50em), 1em);
    z-index: 1;
}



/*-------------------avis client-------------------*/


#wrapper_note{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F9F9F9;
    padding: 2em 5em;
    z-index: 1;
    box-shadow: 0 1em 1em #00000040;

}

#note_moyenne{
    display: flex;
    align-items: center;
    gap: 1em;
}

#note_moyenne>div{
    min-width: 11em;
}
#note_moyenne>H3,#note_moyenne>p{
    font-size: 1.4em;
    text-align: center;
}


.etoile_note_avis{
    height: 1.4em;
    margin-left: .4em;
}

#bouton_rediger_avis{
    border: none;
    background-color: #194B72;
    color: #fff;
    padding: .6em 2.5em;
    border-radius: 3em;
    margin-top: 1.2em;
    box-shadow: .2em .2em .4em 0#00000040;
}


#rediger_avis{
    max-height: 0;
    overflow: hidden;
    transition: all 2s;
    padding-top:1.2em;
}
#rediger_avis form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    margin-top: 2em;

}

#rediger_avis form>textarea{
    resize:none;
    width: min(30em, 85vw);
    height: 10em;
    outline: none;
    border-radius: 1em;
    padding : .5em;
}

#rediger_avis form>input{
    border: none;
    background-color: #194B72;
    color: #fff;
    padding: .6em 2.5em;
    border-radius: 3em;
    box-shadow: .2em .2em .4em 0#00000040;
    width: 13em;
    margin-bottom: 1em;
}


.wrapper_etoiles{
    display: flex;
    gap: .5em;

}
.wrapper_etoiles input{
    display: none;
}

.wrapper_etoiles label button{
    background: none;
    border: none;
}
.wrapper_etoiles label button img{
    height: 2.5em;
}

#wrapper_bt_montrer_avis{
    position: relative;
    height: 0;
}


#bouton_montrer_avis{
    position: relative;
    border: none;
    background-color: #C6C6C6;
    border-radius: 5em;
    padding:1.25em 1.1em;
}

#bouton_montrer_avis img{
    transition: all 1s;    
    transform: rotate(0deg);
}



#liste_avis{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding-top:1.2em;
    transition: all 1s ease-out;
}

.montrer_avis{
    max-height: 70em !important;
}
.fleche_montrer_avis{
    transform: rotate(180deg) !important;
}

#nombre_avis{
    display: flex;
    width: 80%;
    gap: .5em;
    margin-bottom: 1em;
}
#nombre_avis_commentaire{
    color: #FF6262;
}
.avis{
    display: flex;
    flex-direction: column;
    gap: .5em;
    align-items: center;
    padding: 1em;
    border-radius: 1em;
    background-color: #fff;
    box-shadow: 0 1em 1em #00000040;
    width: 80%;
    margin-bottom: 2em;

}
.avis .commentaire{
    margin-top: .6em;
}


/*-------------------Produits similaires-------------------*/


#produits_similaires_texte{
    font-weight: 700;
    color: #494949;
    font-size: 1.5em;
    margin:  3em min(40em, 40vw) 1.3em 0;
    text-align: center;
}



#carrousel_produits_gamme{
    width: 100vw;
    display: flex;
    justify-content: center;
}

#wrapper_produits_carousel{
    display: flex;
    overflow-x: scroll;
    justify-content: start;
    flex-wrap: nowrap;
    width: max-content;
    padding:  2em 1em 4em 1em;
    gap:min(5em, 4vw);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    position: relative;
}
#wrapper_produits_carousel::-webkit-scrollbar {
    display: none;
}

.wrapper_button_defiler_produits{
    width: 0;
    position: relative;
    display: none;
    align-items: center;
}

#bt_defiler_produits_similaires_avant, #bt_defiler_produits_similaires_arriere{
    position: relative;
    left: 0;
    background-color:#C6C6C6;
    border: none;
    border-radius: 2em;
    box-shadow: 0 1em 1em #00000040;
    z-index: 5;
}
#bt_defiler_produits_similaires_arriere{
    padding: 1.2em 1.5em 1em 1.3em;
    transform:translate(calc(0vw + .6em));
}
#bt_defiler_produits_similaires_avant{
    padding: 1.2em 1.3em 1em 1.5em;
    transform:translate(calc(100vw - 4.25em));
}
#bt_defiler_produits_similaires_avant img, #bt_defiler_produits_similaires_arriere img{
    height: 1em;
}




.card_produit{
    flex-shrink: 0;
    display: inline-block;
    background-color: #F8F8F8;
    border-radius: .5em;
    min-height: fit-content;
    width: 18.5em;
    padding: .4em;
    text-decoration: none;
    box-shadow: .25em .5em .5em 0em #00000040;
}
.card_box_img_produit{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #2E6D9D;
    color: #fff;
    height: 16.2em;
    border-radius: .35em;
    padding: 2em 0 .6em 0;

}



.card_type_huile{
    display: flex;
    align-items: center;
    gap: .9em;
}
.card_type_huile>p{
    font-size: 1.4em;
    font-weight: 700;
}
.card_type_anandavet>p, .card_type_nolavet>p{
    font-size: 1.4em;
    font-family: 'rufina';
    display: inline;
}
.card_type_anandavet>.r, .card_type_nolavet>.r{
    position: relative;
    font-size: .8em;
    bottom: .4em;
}
.card_type_huile>img{
    height: 1.8em;
}
.card_wrapper_img{
    width: 100%;
    height: 13em;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card_img_produit{
    max-height: 12em;
    max-width: 100%;
}

.card_wrapper_img_quantite{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card_wrapper_quantite{
    width: 15.5em;
}
.card_wrapper_quantite>p{
    text-align: end;
    font-weight: 600;
    font-size: 1.1em;
}


.card_infos_produit{
    display: flex;
    padding: 1em 1em .0em 1em;
    justify-content: space-between;
    height: fit-content;
}

.card_recap_produit{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: fit-content;
}

.card_produit_animaux{
    font-weight: 300;
    font-size: 1.1em;
    color: #494949;
}

.card_produit_composition{
    display: flex;
    gap: 1em;
}
.card_produit_composition>p{
    font-weight: 700;
    color: #494949;
    font-size: 1.1em;
}
.card_produit_prix{
    font-weight: 700;
    color: #494949;
    font-size: 1.4em;
}


.card_produit_note{
    display: flex;
    gap: .5em;
    color: #494949;
    font-size: .9em;
}

.card_produit_note>img{
    height: 1.1em;
}

.card_produit_prix_vente_conseille{
    margin-bottom:.3em;
    font-weight: 500;
    color: #494949;
}

b{
    font-weight: 700;
}

#montrer_plus_description{
    display: none;
}
#texte_voir_plus_description{
    font-weight: 600;
}

.description_etendue{
    max-height: 70em !important;
}
.box_produit_etendue{
    box-shadow: none !important;
}

@media screen and (max-width: 800px){
    #alert_produit_ajoute{
        padding: 1.5em 1em 2em;
        max-width: calc(90vw - 2em);
    }
    #alert_produit_ajoute>p{
        text-align: center;
    }
    #wrapper_actions_alert{
        flex-direction: column;
        gap: 1em;
    }
    #wrapper_actions_alert a{
        text-align: center;
    }

    #box_produit{
        box-shadow: inset 0 -5em 4em  -5em #ffffffc2;
    }
    #recap_produit{
        padding-top: 2em;
    }
    #background_description_produit{
        width: 20em;
        height: 20em;
        right: max(calc(50vw - 50em), 2em);
    }

    #infos_produit{
        padding: 0 min(5em, 5vw);
    }
    #form_produit_panier{
        display: flex;
        align-items: center;
        gap: 1em;
        margin-top: 1em;
    }
    #box_quantite,#bouton_ajouter_panier{
        border-radius: .5em;
        height: 4em;
        margin: 0;
    }
    #box_quantite{
        padding: .4em 0;
    }
    #quantite{
        width: .7em;
    }
    #wrapper_note_recap{
        margin: .7em 0 1em;
    }
    #description_produit{
        max-height: 10em;
        overflow: hidden;
        margin: 2em 2em 1em 2em;
    }
    #produits_similaires_texte{
        margin:  2.5em  1.3em 0;
    }
    #wrapper_produits_carousel{
        padding:  1em 1em 2em 1em;
        gap: 1em;
    }

    #montrer_plus_description{
        position: relative;
        height: 0;
        display: block;
    }
    #bouton_montrer_plus_description{
        position: relative;
        border: none;
        background-color: #ffffff;
        box-shadow: .4em .4em .6em #00000025;
        border-radius: 5em;
        padding: 1.2em 1.1em;
        bottom:2em;
        display: flex;
        flex-wrap: nowrap;
        gap: .5em;
        align-items: center;
    }

    .wrapper_button_defiler_produits{
        display: flex;
    }
}