:root {
    --mv-clr:rgba(0,0,0,84);/*couleur de texte par défaut*/
    --mv-clr-bd:#efefef;/*couleur de contour par défaut*/
    --fnt-fam:Inter, Roboto, Verdana, Geneva, Tahoma, sans-serif;
    --clr-fond:#007480;/* /#001180; */    
    --clr-cat-sel:#a9f3f7;/* #a9e6f7 !important; */
    --clr-cat-sel-hov:#a9e9f7;/* #66cce8 !important; */
    --clr-cat:#007480;/* #0c6cce !important; */
    --clr-cs-ing :#6d6f73;/* #f1f5f9 !important; */
    --clr-acces:#59c08b;/* #f1f5f9 !important; */
    
    --svg-clr-coches:#007480;
    --svg-clr:#fff;
    --svg-clr-app:#f7f7f7;
    --svg-clr-cs-param:#007480;
    --svg-clr-exit:#E61B23;
    --svg-clr-check:#00A14E;
}
body {
    background-color:var(--svg-clr-app);
    margin:0;
    font-family: var(--fnt-fam);
}
/***** entete *****/
.zoneFixe {
    position:fixed;
    z-index: 30;
    width: 100%;
    display:none;
}
#app {
    --svg-clr-icon:#cbcbcb;
}
.entete .menu {
    position: relative;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    padding-right: 18px;
    cursor: pointer;
}
.entete .menu .fa-bars {
    font-size: 24px;
    color: white;
}
.entete,.filtre {
    position: relative;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    background: var(--clr-fond);
}
.entete {
    padding:10px 10px 10px 20px;
    border-bottom: 2px solid var(--mv-clr-bd);
}
.filtre {
    margin-left:50px;
}
.filtre span {
    color: white;
    font-size: 16px;
    margin-right: 15px;
    align-content: center;
}
.cs_filtre .favori {
    display:flex;
}
.cs_filtre .favori label {
    top: -5px;
    font-size: 12px;
    padding-right: 15px;
    user-select: none;
    cursor: pointer;
}
.favori, .jaime, .cache {
    margin:0px 5px;
}
.zoneFixe:not(.r7) .entete {
    padding-bottom: 13px;
}
.zoneFixe:not(.r7) .menu {
    width:100%;
    height: 35px;
}
.cs_entete {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: white;
}
.cs_choixListe {
    display: flex;
    justify-content : center;
}
.cs_choixListe h1 {
    position: absolute;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 80%;
    overflow: hidden;
    display: block;
    padding: 0;
    margin: 0;
    top: 2px;
    font-size: 24px;
}

.menu-heading {
    font-weight: bold;
    color: var(--clr-fond);
    font-size: 23px;
    margin-top: 0;
}
.menu-acces {
    color: var(--clr-acces);
}
.menu-acces-course {
    margin:0;
}
/***** entete *****/
/***** recherche *****/
.recherche {
    width: 400px;
}
.zoneFixe.r7 .cs_recherche {
    display:none;
}
.zoneFixe:not(.r7) .cs_recherche {
    position: relative; 
    display: flex !important;
    width: calc(100% + 50px);
    padding-top: 12px;
}
.cs_inputSearch {
    appearance: none;
    outline:none;
    background-color: none;
    border:0;
    /* border: 2px solid var(--mv-clr-bd); */
    line-height: 0;
    font-size: 17px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 10px 15px;
    border-radius: 60px;
    color: var(--mv-clr);
    font-weight: 100;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
    margin-right:30px;
    font:inherit;
}
.cs_recherche .cs_exit {
    position: absolute;
    top: 4px;
    z-index: 10;
    right: -8px;
    transform: scale(0.7);
    display: none;
}
.zoneFixe:not(.r7) .cs_inputSearch{
    /* border-radius: 2px; */
    height: 32px;
    flex:1;
}

/***** recherche *****/


/***** menu *****/
.cs_parametrage {
    position: absolute;
    right: 0;
    top:0px;
    height: 35px;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    padding-left: 10px;
    cursor: pointer;
}
.cs_parametrage i {
    font-size: 24px;
    color: #f1f5f9;
}
.hamburger-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 35px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
}
.hamburger-line {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: #f1f5f9;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.three-dots-button i {
    font-size: 20px;
    color: #f1f5f9;
}
.hamburger-button.is-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-button.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-button.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.side-menu {
    position: fixed;
    top: 64px;
    left: 0;
    z-index: 900;
    width: 280px;
    /* height: calc(100vh - 64px); */
    padding: 20px;
    background: #ffffff;
    box-shadow: 8px 0 20px rgba(15, 23, 42, 0.14);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.side-menu.right {
    left: auto;
    right: 0;
    transform: translateX(100%);
}
.zoneFixe:not(.r7) .side-menu {
    top: 43px;
}
.side-menu:not(.right).is-open {
    transform: translateX(0);
    opacity: 1;
}
.side-menu.right.is-open {
    transform: translateX(0);
    opacity: 1;
}
.menu_link_checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
}
.menu_separateur {
    border-top: 1px solid #e5e7eb;
}
/***** menu *****/
/***** Sous filtre *****/
.zoneSousfiltre {
    display: flex;
    background-color: rgb(241, 241, 241);
    padding:0 20px;
    height:44px;  
}
.sousFiltre { 
    flex:1;
    overflow: hidden;
    display: flex;
}
.contentFiltre {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}
/***** Sous filtre *****/
/***** navigation *****/
.navigation {
    position: relative;
    display:flex;
    align-items: center;
    width:48px;
    cursor:pointer
}
.navigation i {
    font-size: 20px;
}
.navigation:hover i {
    font-size: 26px;
}
.navigation.left {
    justify-content: flex-start;
}
.navigation.right {
    justify-content: flex-end;
}
.navigation.left i {
    position: relative;
}
.navigation.right i {
    position: relative;
    padding-right: 10px;
}
/***** navigation *****/
/***** fiche catégorie *****/
.ficheCategorie {
    position: relative;
    display: flex;
    white-space: nowrap;
    margin-right:20px;
    padding: 10px 20px 10px 20px;
    background-color: #fff;
    border: 0;
    border-radius: 5px;
    cursor:pointer;
}
.ficheCategorie.selected {
    background-color: var(--clr-cat-sel) !important;
}
.ficheCategorie.selected:before {
    border-color: var(--clr-cat-sel) !important;
}
.ficheCategorie:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    border-radius: 5px;
    border: 1px solid var(--clr-cat);
}
.ficheCategorie:not(.selected):hover:before {
    border-width: 2px;
}
.ficheCategorie.selected:hover {
    background-color: var(--clr-cat-sel-hov);/*#66cce8 !important; */
}
.ficheCategorie.selected:hover:before {
     border-color: var(--clr-cat-sel-hov);/*#66cce8 !important; */
}
.ficheCategorie .nom {
    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
    color: var(--clr-cat) ;
    z-index: 10;
}
.ficheCategorie.selected .nom {
    color: var(--clr-fond) !important;

}
/***** fiche catégorie *****/
/***** recettes *****/
.recettes, .categories, .courses {
    position: relative;
    margin:0px;
    padding-top: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.courses {
    font-size: 24px;
}
.content {
    position: relative;
    display: flex;
    flex-direction: row;
    padding-top: 10px;
    flex-wrap: wrap;
    width: 100%;
}
.courses .content {
    flex-direction: column;
    align-content: center;
}
/***** recettes *****/
/***** liste courses *****/
.menu_listes {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}
.menu-liste {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}
/***** liste courses *****/

/***** tri *****/
.tri {
    background-color:rgb(241, 241, 241);   
    width: 100px;
}
.tri .fas {
    height:24px;
    width:24px;
    font-size:24px;
    /* color: #d2d2d2; */
    color:rgb(241, 241, 241);
    margin:10px 10px;
    float :right;
}
.tri .fas.selected {
    /* color: var(--clr-fond); */
    color:rgb(241, 241, 241);
}
/***** tri *****/
/***** fiche *****/
.fiche {
    position:relative;
    width: calc(25% - 30px);
    flex-shrink: 0;
    margin-bottom: 30px;
    margin-right: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1);    
}
.fiche:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 13px 12px 2px rgba(0, 0, 0, .3);
    opacity: 0;
    transition: opacity .15s ease-out;
    will-change: opacity;
    pointer-events: none;
    border-radius: 5px;
}
.fiche:hover:after {
    opacity: 1;
}
.zoneImage2  {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.image2 {
    margin-bottom: -100%;
    padding-bottom: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    z-index: 2;
}
.zoneImage {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;    
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.zoneImage img {
    box-sizing: border-box;
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    z-index: 2;
    width: 100%;   
    aspect-ratio: 1 / 1;  /* defining the aspect ratio of the image */
    object-fit: cover;  
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.fiche .zoneTexte {
    position: relative;
    background-color: #ffffff;
    z-index: 10;
    height:122px;
    border-radius: 5px;
}
.zoneTexte .nom {
    position:absolute;
    text-decoration: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-family: var(--fnt-fam);
    font-size: 18px;
    vertical-align: baseline;
    margin: 38px 23px;

    font-size: 20px;
    line-height: 23px;
    font-weight: 500;
    color: #000;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 46px;
    cursor: pointer;
}
.zonePoint {
    position : absolute;
    border-radius: 31.5px;
    height: 63px;
    min-width: 63px;
    display: flex;
    justify-content: center;
    align-items: center;    
    background: var(--clr-fond);   
    top: -32px;
    right:25px;
}
.zonePoint span {
    font-weight: 600;
    color: #fff;
    font-size:26px;
    font-family: var(--fnt-fam);
}
.zoneSelection {
    position:absolute;
    z-index: 20;
    top:30px;
    left:30px;
    right:30px;
    bottom:30px;
    cursor: pointer;
}
/* .fiche .cache {
    position: absolute;
    z-index: 20;
    top : 10px;
    right:10px;    
    transition:opacity .3s;
} */
.fiche:not(:hover) .cache input.inputCheck:not(:checked) + label.iconEye:before {
    opacity:0.2;
}
.fiche:hover .cache label.iconEye:before {
    opacity:0.6;
}
.fiche .cache label.iconEye:before {
    --svg-main: var(--svg-eye);
    --svg-clr: #cbcbcb;
}
.fiche input.inputCheck:checked + label.iconEye:before {
    --svg-main: var(--svg-eye-slash);
    --svg-clr: #000;
}

.fiche .filtre {
    position: absolute;
    background-color: transparent;
    top: -2px;
    left:5px;
    z-index: 20;
    margin: 0;
}
.fiche:hover .favori input.inputCheck:not(:checked) + label.iconStar:before {
    --svg-clr: #464646;
}
.fiche:hover .jaime input.inputCheck:not(:checked) + label.iconHeart:before {
    --svg-clr: #464646;
}
.fiche:hover .cache input.inputCheck:not(:checked) + label.iconEye:before {
    --svg-main: var(--svg-eye-slash);
    --svg-clr: #464646;
}
.fiche:not(:hover) .favori input.inputCheck:not(:checked) + label.iconStar:before {
    opacity:0.2;
}
.fiche:hover .favori label.iconStar:before {
    opacity:1;
}
.fiche:not(:hover) .jaime input.inputCheck:not(:checked) + label.iconHeart:before {
    opacity:0.2;
}
.fiche:hover .jaime label.iconHeart:before {
    opacity:1;
}

/***** fiche *****/
@media(max-width:1024px){
    .fiche {
        width: calc(50% - 30px);  
    }    
    .ficheCategorie {
        width: calc(20% - 0px);  
    }
    .sousFiltre {
        padding:0px;
    }
    /* .recettes, .categories {
        padding-top:112px;
    } */
    .fiche .favori input.inputCheck:not(:checked) + label.iconStar:before {
        opacity:0.6 !important;
    }
    .fiche .jaime input.inputCheck:not(:checked) + label.iconHeart:before {
        opacity:0.6 !important;
    }
    .fiche .cache input.inputCheck:not(:checked) + label.iconEye:before {
        opacity:0.6 !important;
    }
}
@media(max-width:680px){
    .filtre {
        margin-left: 0px;
        margin-top: 10px;
    }
    .zoneFixe:not(.r7) .cs_recherche {
        display:block !important;
    }
    .zoneFixe:not(.r7).cs_filtre {
        padding-top: 10px;
    }
}
@media(max-width:420px){
    .entete {
        padding:10px 10px 10px 15px; 
        border-bottom: 2px solid var(--mv-clr-bd);
    }
    .entete .menu {
        padding-right: 20px !important;
    }
    .recherche {
        flex:1;
        width:auto;
    }
    .filtre:not(.cs_filtre) {
        /* margin-left: 52px; */
        margin-top: 10px;
    }
    .zoneSousfiltre {
        padding:10px;
        height:44px;
    }
    .navigation {
        position: relative;
        width: 38px;
    }
    .navigation.left i {
        padding-left: 5px;
    }
    .navigation.right i {
        padding-right: 5px;
    }
    .ficheCategorie  {
        margin-right:10px;
    }
    .recettes, .categories {
        margin:0px 15px;
        /* padding-top:130px; */
    }
    .recettes .content {        
        flex-direction: column;
    }
    .categories .content {
        flex-direction: row;
    }
    .fiche {
        width: calc(100%);  
    }
    
}
/***** fiche *****/
.loader {
    position:relative;
    width: 48px;
    height: 48px;
    border: 5px solid var(--clr-fond);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 
/*** Styles pour la modale de renommage */
.cs_modal {
    display: block; /* Affiche la modale */
    position: fixed; /* Reste en place même lors du scroll */
    z-index: 1000; /* Au-dessus de tout le reste */
    left: 0;
    top: 0;
    width: 100%; /* Largeur totale */
    height: 100%; /* Hauteur totale */
    overflow: auto; /* Permet le scroll si nécessaire */
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    opacity:0; /* Transparente par défaut */
    transition: opacity 0.25s;
    transform: scale(0); /* Réduite à 0 par défaut */
}
.cs_modal.show {
    opacity:1;
    transform: scale(1);
}
.cs_modal_content {
    display: flex;
    flex-direction: column;
    background-color: #fefefe;
    margin: 15% auto; /* Centré verticalement et horizontalement */
    padding: 10px;
    border: 1px solid #888;
    width: 333px; /* Largeur de la modale */
    border-radius: 5px;
}
.cs_modal_close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.cs_modal_close:hover,.cs_modal_close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.cs_rename_btns {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
}
.cs_titre_rename {
    font-size: 1.5rem;
    color: #007480;
    margin-bottom: 20px;
}
#menu_param_nomListe {
    position: relative;
    height: 25px;
    outline: none;
    border: 1px solid #6d6f73;
    border-radius: 2px;
}
/*** Styles pour la modale de renommage */
/*** Styles pour la liste des courses   */
.cs_liste {
    width: 100%;
    max-width: 600px;
}
.cs_suite_cat {
    padding-top:24px;
}
/*il faut que le premier cs_suite_cat" n'ait pas de padding-top*/
.cs_suite_cat:first-child {
    padding-top: 0;
}
.cs_ingredients {
    display: flex;
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    padding: 8px 10px 8px 2px;
}
.cs_ingredients.selected {
    background-color: #e7e6e6;
}
.cs_titre_cat {
    margin-left:30px;
    flex:1;
    font-size: 20px;
}
.cs_ingredients:not(.is_re7) .cs_ing_re7 {
    display: none;
}
/* .cs_ingredients.is_re7 .cs_ing_re7 {
    margin-left:30px;
}

.cs_ingredients:not(.is_re7) .cs_titre_cat {
    margin-left:30px;
} */
.cs_liste_nom {
    margin-left: 15px;
        font-weight: bold;
}
.cs_qte {
    width: 60px;
    height: 20px;
    border: 1px solid transparent;
    margin: 0px 10px;
    border-radius: 4px;
    outline: none;
    display:none;
}
.cs_ing_param {
    padding-right: 6px;
    display: flex;
}
.cs_ing_param {
    display:none;
}
.cs_ing_re7 {
    margin-left: 5px;
    position: absolute;
}
.cs_ing_re7:before {
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    
    cursor: pointer;
    content: "";
    mask-image: var(--svg-cutlery);
    -webkit-mask-image: var(--svg-cutlery);
    width: 16px;
    height: 16px;
    background-color: var(--svg-clr-cs-param);
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0.8;
}
.cs_ing_param:before {
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
    content: "";
    mask-image: var(--svg-param);
    -webkit-mask-image: var(--svg-param);
    width: 32px;
    height: 32px;
    background-color: var(--svg-clr-cs-param);
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0.8;
}
div.cs_ing_sel:before {
    display: inline-block;
}
.cs_ingredients.selected .cs_qte {
    display:block;
}
.cs_ingredients:not(.is_re7).selected .cs_ing_param {
    display:none;/*à gérer plus tard et remettre block*/
}
.cs_ingredients.selected .cs_ing_sel, .cs_ingredients.selected .cs_qte_label {
    display:none;
}
.cs_qte_label {
    font-size: 14px;
    margin:0px 6px 0px 4px;
    color:#959595;
}
.cs_re7, .cs_recent_titre {
    display: flex;
    justify-content: space-between;
}
.cs_recent {
    position:relative;
    padding-top: 35px;
    width: 100%;
    max-width: 600px;
}
.cs_recent .cs_liste_nom {
    color:var(--clr-coches);
}
.cs_searchPrd {
    position:relative;
    width: 100%;
    max-width: 600px;
}
.cs_coches_dots:before {
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
    content: "";
    mask-image: var(--svg-three-dots);
    -webkit-mask-image: var(--svg-three-dots);
    width: 32px;
    height: 32px;
    background-color: var(--svg-clr-cs-param);
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0.8;
}
.cs_ing_add, .cs_ing_minus {
    display: flex;
}
.cs_ing_add:before {
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
    content: "";
    mask-image: var(--svg-circle-plus);
    -webkit-mask-image: var(--svg-circle-plus);
    width: 32px;
    height: 32px;
    background-color: var(--svg-clr-coches);
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0.8;
}
.cs_ing_minus:before {
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
    content: "";
    mask-image: var(--svg-circle-minus);
    -webkit-mask-image: var(--svg-circle-minus);
    width: 32px;
    height: 32px;
    background-color: var(--svg-clr-coches);
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0;
}
.cs_ingredients.selected .cs_ing_minus:before {
    opacity: 0.4;
}
.cs_recent_titre .cs_ing_minus:before {
    opacity: 0.4;
    margin-right: 8px;
}
.cs_confirm {
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
    content: "";
    mask-image: var(--svg-circle-check);
    -webkit-mask-image: var(--svg-circle-check);
    width: 48px;
    height: 48px;
    background-color: var(--svg-clr-check);
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0.8;
}
.cs_exit {
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
    content: "";
    mask-image: var(--svg-circle-exit);
    -webkit-mask-image: var(--svg-circle-exit);
    width: 48px;
    height: 48px;
    background-color: var(--svg-clr-exit);
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0.8;
}