@import url('https://fonts.googleapis.com/css2?family=Aclonica&family=Fugaz+One&family=Open+Sans:wght@300&display=swap');

:root {
    --bs-header-bg-color:#e69437ad;
    --bs-header-nav-bg-color:#d3ad81;
    --bs-header-computer-nav-bg-color:#ffffff00;
    --bs-header-nav-a-bg-color:#bace83;
    --bs-header-font:"Fugaz One", sans-serif;

    --bs-main-h3-color:#b89000;
    --bs-main-h5-color:#3789e6;
    --bs-main-impact-color:#cf832c;
    --bs-main-light-color:#b9b9b9;
    --bs-main-h-font:"Aclonica", sans-serif;
    --bs-main-sectionprod-bg-color:#EFEFEF;
    --bs-main-prods-bg-color:#e6e6e6;
    --bs-main-sectionproda-bg-color:#d2e0b0;

    --bs-form-zone-bg-color:#DDD;
    --bs-form-prix-color:rgb(0, 0, 121);

    --bs-border-color:#666;
    --bs-border-light-color:#999;

    --bs-slider-bg-color:#e694377a;
    --bs-slider-text-shadow-color:#e69437;
    --bs-slider-color:#FF9D00;

    --bs-link-bg-hover-color:#ffea2c;

    --bs-footer-bg-color:#000000ad;
    --bs-footer-color:#FFFFFF;


}


/* --- logo de l'association */
#logo-max {
    height: 8rem;
    display: none;
}

#logo-min {
    height: 11.5rem;
    display: block;

}


        /* ========   COMPUTER   ======= */
@media screen and (min-width:1200px) {

    #logo-max {
        display: block;
    }
    
    #logo-min {
        display: none;    
    }


        
}


/* ======================================= */
/* ============      MAIN      =========== */
/* ======================================= */ 

main {
    margin: 0 auto;
}

h3{
    color: var(--bs-main-h3-color);
    padding: 0.5rem;
}

h5 {
    color: var(--bs-main-h5-color);
    text-align: center;
}

form button{
    margin: 0 1rem 0 0.2rem;
    padding: 0.2rem 0.5rem;
    font-family:var(--bs-header-font);
    font-size: 1rem;
    background-color: var(--bs-header-nav-a-bg-color);    
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 3px 6px, rgba(0, 0, 0, 0.20) 0px 3px 6px;
}
input{
    border-radius: 0.5rem;
    border: #666 solid 1px;
}

/* --- prise en compte de la hauteur du header et du footer pour la vision totale du main */
.main-down {
    height: 1rem;
}
.main-title {
    display: block;
    width: 98%;
    text-align: left;
    padding: 0;
    margin: 0;
    font-size: 1.5rem;
    color: var(--bs-main-h3-color);
    
}

.main-title p {
    padding: 0;
    margin: 0;  
}
.text-plus {
    text-shadow: 1px 1px 1px black;
}

.fond-plus{
    background-color: var(--bs-footer-bg-color);    
    border: 1px solid var(--bs-header-computer-nav-bg-color);
    border-radius: 0.6rem;
}

.fond-plus-titre{
    background-color: #fdc536c9;    
    border: 1px solid var(--bs-header-computer-nav-bg-color);
    border-radius: 0.4rem;
}

.fond-plus-soustitre{
    background-color: #ffffffc2;    
    border: 1px solid var(--bs-header-computer-nav-bg-color);
    border-radius: 0.2rem;
    padding: 3px 7px;
}

.section-travel {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 1rem 0.2rem;
    margin: 1rem 1rem;
    width: 95%;
    border: 1px solid var(--bs-border-light-color);
    background-color: var(--bs-main-sectionprod-bg-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    transition: 0.5s;
}
.section-travel p{
    font-size: 1rem;
}

/* --- menus de gestion utilisateur et admin */
.btn-admin {
    width: 1.8rem;
    height: 1.8rem;
}

.btn-admin img {
    width: 1.8rem;
    filter: invert(100%);    
}

.nav-admin {
    display: block;
    text-align: right;
    padding: 0.5rem;
    font-size: 0.8rem;
    color:var(--bs-footer-color);
}

.nav-admin input{
    width: 12rem;
    margin: 0.2rem 0;
}
.saut {
    display: block;
    width: 100%;
}

/* .nav-admin a{
    margin-right: 0.8rem;
    margin-top: 1rem;
    padding: 0.1rem 0.5rem 0.3rem 0.5rem;
    text-decoration: none;
    background-color: var(--bs-header-nav-a-bg-color);    
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 3px 6px, rgba(0, 0, 0, 0.20) 0px 3px 6px;
    font-size: 0.9rem;
}

.nav-admin a:hover{
    background-color: #e6d537;    
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
} */

.nav-admin a img {
    height: 26px;
}

.juste_Tel {
    display: inline;
}

/* carte de visite des producteurs et utilisateurs */
.section-prods-max {
    width: 90% !important;
}

.section-prods {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 1rem 0.2rem;
    margin: 1rem 1rem;
    width: 95%;
    border: 1px solid var(--bs-border-light-color);
    background-color: var(--bs-main-sectionprod-bg-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    transition: 0.5s;
}

/* vision des infos complementaires de la carte de visite */
/* .section-prods:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    transition: 0.5s;
} */
.section-prods:hover img {
    box-shadow: rgba(0, 0, 0, 0.70) 0px 5px 10px -2px, rgba(0, 0, 0, 0.40) 0px 4px 8px -2px;
    transition: box-shadow 0.2s ease;
}

.section-prods-actif {
    background-color: var(--bs-main-sectionproda-bg-color);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    transition: 0.5s;
}

.section-prods-producteur {
    background-color: var(--bs-slider-bg-color);
}

.section-prods-user {
    background-color: var(--bs-header-computer-nav-bg-color);
}

.section-prods-inactif {
    text-decoration: line-through;
}

.section-prods h2{
    margin: 0.2rem 0.5rem;
    font-size: 1.1rem;
    width: 95%;
}
.section-prods h3{
    margin: 0.5rem 0.2rem 0.1rem 1rem;
    font-size: 1rem;

}
.section-prods h4{
    margin: 0.5rem 0.2rem 0.1rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;

}
.section-prods p{
    margin: 0.1rem 1rem;
    font-size: 0.8rem;

}

.section-prods-fiche {
    height:auto;
    max-width: 95%;
}
.section-prods-Fiche p {
    font-size: 0.8rem;
}

.section-prods-fiche:nth-child(n) {
    white-space: nowrap;
    overflow: hidden;
}


.section-prods-form{
    height: auto !important;
}

.section-prods-infos p {
    font-size: 0.8rem;
}

.section-small {
    padding: 1rem 0.2rem;
    overflow-y:hidden !important;
    height: 7rem !important;
    transition: 0.5s;
}
/* .section-small:hover {
    height:16rem !important;
    overflow-y:scroll !important;
    transition: 0.5s;
} */
.section-auto {
    padding: 1rem 0.2rem;
    height:auto;
    transition: 0.5s;
}
.section-demie {
    width:90%;
}

.btn-main{
    margin: 0 1rem 0 0.2rem;
    padding: 0.7rem 3rem 0.4rem 1rem;
    font-size: 1rem;
    background-color: var(--bs-main-light-color);    
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 3px 6px, rgba(0, 0, 0, 0.20) 0px 3px 6px;
    text-decoration: none;
}

.btn-tab{
    margin: 0rem 1rem;
    padding: 0rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.3rem;
    text-decoration: none;
    width:30px ;
    background-color: var(--bs-form-zone-bg-color);    
    color: white;
}

.btn-tab img {
    width: 1.8rem;
    filter: invert(100%);    
}

.btn-articles{
    margin: 0rem 0.5rem;
    padding: 0rem;
    background-color: var(--bs-yellow);    
    border: 1px solid var(--bs-border-color);
    border-radius: 0.3rem;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 10px, rgba(0, 0, 0, 0.22) 0px 3px 5px;
    text-decoration: none;
    width:30px ;
    filter:none !important;    

}

.btn-articles:hover{
    background-color: var(--bs-link-bg-hover-color);    
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.btn-articlesC {
    margin: 0rem 1rem;
    padding: 0rem;
    background-color: var(--bs-yellow);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.3rem;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 10px, rgba(0, 0, 0, 0.22) 0px 3px 5px;
    text-decoration: none;
    width: 30px;
    filter: none !important;
    animation: blink 2s infinite; /* Ajoutez cette ligne pour appliquer l'animation */
}

.btn-retour{
    margin: 0rem 1rem;
    padding: 0rem;
    background-color: var(--bs-yellow);    
    border: 1px solid var(--bs-border-color);
    border-radius: 0.3rem;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 10px, rgba(0, 0, 0, 0.22) 0px 3px 5px;
    text-decoration: none;
    width:75px ;
}

.btn-retour:hover{
    background-color: var(--bs-form-zone-bg-color);    
}

.btn-max{
    width: 100%;   
}

.biasse-list-particip{
    background-color:var(--bs-main-prods-bg-color);
    display: inline-block;
    margin: 0.3rem 0.5rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--bs-border-light-color);
    border-radius: 0.5rem;
    /* box-shadow: rgba(0, 0, 0, 0.12) 0px 3px 6px, rgba(0, 0, 0, 0.20) 0px 3px 6px; */

}


/* zone de fiche selectionnée pour les articles */

.zone-fiche-fixed {
    padding:0.5rem 1rem;
    position: fixed;
    top:15vh;
    height:70vh;
    left: 5vw;
    width:90vw;
    overflow-x: hidden;
    overflow-y: scroll;
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-main-sectionprod-bg-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;

}

.zone-fiche-fixed h2{
    margin: 1rem 0.2rem 0.1rem 0.2rem;
    font-size: 1.2rem;
}
.zone-fiche-fixed h3{
    margin: 0.5rem 0.2rem 0.1rem 1rem;
    font-size: 1rem;

}
.zone-fiche-fixed p{
    margin: 0.1rem 1rem;
    font-size: 0.8rem;

}

.zone-fiche-fixed-small {
    top:30vh !important;
    height:30vh !important;
    left: 5vw !important;
    width:90vw !important;
}
.zone-fiche-span{
    margin: 1rem;
}
.zone-fiche-span-bold{
    margin: 1rem;
    font-weight: bold;
}



/* Mode de mise en place des sections en fontion du type de page identifié en BDD */

.float-left {
    float:left;
    margin: 0 2rem;
    max-width: 90%;
}

.float-right {
    float:right;
    margin: 0 2rem;
    max-width: 90%;
}
.indent-paragraph {
  white-space: pre-wrap; /* Pour conserver les sauts de ligne */
  text-indent: -2em; /* Indentation de chaque nouvelle ligne */
}

.indent-paragraph::before {
  content: '';
  display: inline-block;
  width: -2em; /* Largeur de l'indentation */
}
/* Mode de mise en place des sections carte de visite */
.float-prods {
    float:left;
    /* height:0;
    width: 17rem; */
    object-fit: cover;
    margin: 0 1rem;
    border: 1px solid var(--bs-border-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.btn-detail {
    text-align: right;
    display: block;
}
.btn-detail img {
    width: 2rem;
    margin-top: 1rem;
}

.stop {
    clear : both;
}

.p-impact {
    color: var(--bs-main-impact-color);
    font-weight: bold;
    font-size: 0.8rem;
}

.small-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.span-light {
    color: var(--bs-main-light-color);
    font-weight:normal;
    font-size: 0.8rem;
}

.img-max {
    max-width: 90%;
    min-width: 60%;
}

/* style du formulaire  */

.form-fiche{
    text-align: right;
    padding-left: 2rem;
}

.form-fiche-info{
    text-align: left;
}

.form-fiche legend{
    font-size: 1rem;
    text-align: left;
    padding: 0.1rem;
    font-weight: bold;
}

.input-default{
    width: 100%;
    max-width: 10rem;
}

.input-dbl{
    width: 100%;
    max-width: 25rem;
}

.input-max{
    width: 80%;
}

.input-small{
    width: 100%;
    max-width: 4rem;
}

.input-area{
    width: 100%;
    height: 15rem;
    max-width: 30rem;
}

.input-select{
    width: 100%;
    height: 15rem;
    max-width: 15rem;
}

.input-list{
    height: 1.6rem;
}

.input-infos{
    margin-right: 200px;
    background-color: #EEE;
    border: #DDD none 0px;
}

.input-vals{
    background-color: #ffe790;
}
.check{
    margin: 0.5rem 0.4rem 0.5rem 1.2rem;
}

.form-zone {
    margin: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-form-zone-bg-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}
.form-zone-disabled input {
    border-top: 0px solid var(--bs-border-color);
    border-right: 0px solid var(--bs-border-color);
    border-left: 0px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-light-color);
    background-color: var(--bs-form-zone-bg-color);
    color: var(--bs-form-prix-color);
    font-weight: bold;
}

.form-flex {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.form-img:hover {
    cursor: grab;
}

.form-img-small {
    max-height: 80px; 
    max-width: 120px; 
    box-shadow: none;
}

.form-img-small:hover {
    max-height:initial; 
    max-width: initial; 
}

.form-libelle{
    font-weight: bold;
}

.form-filtre img{
    margin-left: 1.5rem;
    height: 1.5rem;
}

.form-prix {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--bs-form-prix-color);
}

/* style listing commandes */
.section-cdes {
    padding-left: 0.5rem;
    padding-top: 1rem;
    width:100%;
}

.cdes-p-niv-1 {
    margin: 0.2rem 0 0 0.2rem;
    padding: 0.2rem;
    font-size: 0.9rem;
    font-weight: bold;
    background-color:#EEE ;
    border: 1px solid #666;
}

.cdes-p-niv-2 {
    margin: 0.2rem 0.2rem 0 1rem;
    padding: 0.2rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom: 1px solid #888;
    border-left: 1px solid #888;
    background-color: #f8f8f8;
}

.cdes-p-niv-3 {
    Margin: 0 0.5rem 0 1rem;
    padding: 0.2rem;
    font-size: 0.7rem;
    border-bottom: 1px dashed #AAA;
}

.cdes-p-niv-3T {
    Margin: 0 0.5rem 0 1rem;
    padding: 0.2rem;
    font-size: 0.7rem;
    font-weight: bold;
    border-bottom: 1px dashed #AAA;
    background-color:rgb(252, 245, 240);
}

.cdes-tab-head-title {
    background-color: var(--bs-main-light-color) !important;
    vertical-align: middle;
}

.cdes-tab-head {
    position: relative;
}

.cdes-tab-head-div {
    text-align: center;
    width:95px;
}

.btn-cdes-tab {
    border:white none 0px;
    background-color:white;
    width:95px;
}


.zone-tel-masque {
    visibility:hidden;
    display:none !important;
}


.zone-ordi-masque {
    visibility:visible;
    display:initial !important;
}

.zone-masque {
    visibility:hidden;
    display:none !important;
}


.zone-max{
    width: 100%;
}


        /* ========   transition uniquement   ======= */
@media screen and (min-width:992px) and (max-width:1248px) {
    .zone-trans-masque {
        display: none;
    }

}

@media print {
    .no-print {
      display: none;
    }

    .main-title {
        font-size:0.8rem;
    }


    .cdes-p-niv-1 {
        font-size: 0.8rem;
    }
    
    .cdes-p-niv-2 {
        font-size: 0.7rem;
    }
    
    .cdes-p-niv-3 {
        font-size: 0.6rem;
    }
    
    .cdes-p-niv-3T {
        Margin: 0 2rem 0 7rem;
        padding: 0.2rem 1rem;
        font-size: 0.9rem;
        font-weight: bold;
        border-bottom: 1px dashed #AAA;
        background-color:rgb(252, 245, 240);
    }

    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width:none;
    }   

}

        /* ========   COMPUTER   ======= */
@media screen and (min-width:992px) {
    .section-demie {
        width:50%;
    }
    .juste_Tel {
        display: none;
    }
    
    .zone-tel-masque {
        visibility:visible;
        display:initial !important;
    }

    .zone-ordi-masque {
        visibility:hidden;
        display:none !important;
    }
            
    main {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
        font-size: 1.3rem;
    }

    /* .nav-admin {
        width: 100%;
    
    } */

    .float-prods {
    float:left;
    height:9rem;
    width: 11.5rem;
    object-fit: cover;
    margin: 1rem 1rem;
    }
    
    .section-flex {
        display: flex;
    }

    .section-prods {
        width: 38rem;
        margin: 1rem auto;
    }
    
    .section-prods-infos {
        padding-top: 0.5rem;
    }

    .section-prods-err {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        font-weight: bold;
        color: red;
        height: 2rem;
        padding: 0;
    }

    .section-prods-alert {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
        font-weight: bold;
        color: rgb(221, 133, 0);
        height: 2rem;
        padding-right: 1rem ;
    }

    .section-prods-new {
        background-color: lightblue !important;
    }

    .section-prods-col {
        flex-direction: column;
    }

    .zone-fiche-fixed {
        left: 15vw;
        width:70vw;
   
    }

    .zone-fiche-fixed-small {
        top:30vh !important;
        height:40vh !important;
        left: 15vw !important;
        width:70vw !important;
    }
            
    .section-cdes {
        padding-left: 3rem;
        padding-top: 2rem;
    }
    .cdes-p-niv-1 {
        margin: 0.5rem 0 0 1rem;
        padding: 0.6rem 1rem;
        font-size: 1.3rem;
        font-weight: bold;
        background-color:#EEE ;
        border: 1px solid #666;
    }
    
    .cdes-p-niv-2 {
        margin: 0.5rem 1rem 0 4rem;
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
        font-weight: bold;
        border-bottom: 1px solid #888;
        border-left: 1px solid #888;
        background-color: #f8f8f8;
    }
    
    .cdes-p-niv-3 {
        Margin: 0 2rem 0 7rem;
        padding: 0.2rem 1rem;
        font-size: 0.9rem;
        border-bottom: 1px dashed #AAA;
    }
    
    .cdes-p-niv-3T {
        Margin: 0 2rem 0 7rem;
        padding: 0.2rem 1rem;
        font-size: 0.9rem;
        font-weight: bold;
        border-bottom: 1px dashed #AAA;
        background-color:rgb(252, 245, 240);
    }
            
}


/* ====================================================== */
/* ====================== SLIDER ======================== */
/* ====================================================== */
/* ==========  pour fonctionnalité à venir ============== */



figure {
    margin:0;
    position:relative;
    border-width: 2px;
    border-color: #FFF;
    border-style: solid;    
}

.slider-figure {
    display:none;
    height: 33rem;
    text-align: center;
    background-color: #CCC;
    
}
.slider-figure img {
    height: 33rem;
    
}
.is-active {
    display:inherit;
}

figcaption {
    position:absolute;
    top:0;
    left:0;
    right:0;
    font-weight:800;
    background-color:var(--bs-slider-bg-color);
    text-shadow: 1px 1px 1px var(--bs-slider-text-shadow-color);
    padding:1rem;
    font-family:"Bodega Sans";
    font-size:2vmax;
    
}

.slider {
    position:relative;
    width: 45rem;
    margin: 0 auto;
}

#section-slider {
    margin: auto;
}

.slider-nav {
    display:flex; 
    justify-content:space-between; 
    
    position:absolute;
    top:50%;
    right:3%;
    left:3%;
    
}
.relief {
    color:var(--bs-slider-color);
}



/* =========================================== */
/* ============      FOOTER        =========== */
/* =========================================== */ 

footer {
    background-color:var(--bs-footer-bg-color);
    padding:0.5rem 1rem;
    margin : 0 auto;
    height:2rem;
    width:100%;
    display: flex;
    justify-content: space-around;
    bottom: 0;
    font-size: 0.6rem;
    text-align: center;
    align-items: center;
}

footer p {
    margin: 0;
    color:var(--bs-footer-color);
}

footer a {
    font-size: 0.5rem;
    margin: 0.6rem 1rem;
    display: block;
    white-space: nowrap;
    
}

.logo-footer {
    height: 1.2rem;
}



