/**
Theme Name: Jardins de Garonne
Author: Alain-Pierre FORSANS
Author URI: https://www.opus-internet.fr
Description: Thème pour le site e-commerce Les Jardins de Garonne.
Mise en place par Alain-Pierre Forsans pour le compte de Strat&Comm pour leur client Les Jardins de Garonne.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jardins-de-garonne
Template: astra
*/

h1.entry-title {
    text-align: center;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    display: none; /* Caché par défaut */
    z-index: 1000;
    bottom: -40px; /* Ajuste cette valeur si nécessaire */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

a {
    position: relative; /* Permet de positionner .tooltip par rapport à a */
    display: inline-block; /* Assure que a est un bloc pour permettre un positionnement correct */
    /* margin: 5px; */
}

.rotateimg180 {
    -webkit-transform:rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
  }
  

@media screen and (max-width: 600px) {
    .div-espacement {
        max-height:50px !important;
    }
    .wp-block-spacer {
        max-height:10px !important;
    }
    .uagb-block-1aba8a68 {
        background: none !important;
        background-image: none !important;
    }

    
    div.paniers-home ul.products li:nth-of-type(n+3) {
        display: none;
    }
    div.paniers-home {
        margin-top:-20px !important;
    }
    div.chouchous-home ul.products li:nth-of-type(n+3) {
        display: none;
    }
    .home-slider {
        flex-wrap: nowrap !important;
    }


  }


/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** NEWS HOMEPAGE
/*** - - - - - - - - - - - - - - - - - - - -		 */


.jdg-home-news .uagb-post__image img {
    transition: transform 0.3s ease;
    transform-origin: center; 
}

.jdg-home-news .uagb-post__image img:hover {
    transform: scale(1.05); 
}

@media screen and (max-width: 600px) {

    div.jdg-home-news article:nth-of-type(1) {
        /* Styles pour le premier article */
    }

    div.jdg-home-news article:nth-of-type(n+2) {
        display: none;
    }
}


/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** RECETTE MASONERY HOMEPAGE
/*** - - - - - - - - - - - - - - - - - - - -		 */


.recettes-home-container {
    display: flex;
    height: 500px;
    margin-bottom:15px;
}
.recettes-home-container a {
    margin: 5px;
    color : white;
    background: transparent;
}

.recette-large, .recette-medium, .recette-small, .recette-extra-small {
    overflow: hidden;
    position: relative;
}

.recette-large a img, .recette-medium a img, .recette-small a img, .recette-extra-small a img {
    width: 100%; /* Assure que l'image remplit la largeur */
    height: 100%; /* Assure que l'image remplit la hauteur */
    object-fit: cover; 
}
.recette-large span, .recette-medium span, .recette-small span, .recette-extra-small span {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center;
    font-weight: bold;
    color: white; 
    background-color: rgba(255, 159, 0, 0.8);
    padding: 5px; 
    border-radius: 5px; 
}

.recette-medium, .recette-small, .recette-extra-small {
    display: flex;
    flex-direction: column;
}

.recette-medium a, .recette-small a, .recette-extra-small a {
    /* flex: 1; */
    display: block;
    overflow: hidden;
}

/* Ajuste la hauteur des divs internes si nécessaire */
.recette-medium .recette, .recette-small .recette, .recette-extra-small .recette {
    height: 50%; /* Ajuste cette valeur selon tes besoins */
}

@media screen and (max-width: 600px) {

    .recette-large {
        width: 50% !important;
    }
    .recette-medium {
        width: 50% !important;
    }
    .recette-small, .recette-extra-small {
        display: none;
    }

 }

/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** Woocommerce fiche produit
/*** - - - - - - - - - - - - - - - - - - - -		 */

/* Style du conteneur de l'image */
.image-container {
    position: relative;
    /* Assure-toi que l'image-container a une hauteur définie ou est déterminée par son contenu */
}

/* Style de l'image dans le conteneur */
.image-container img {
    width: 100%; /* Largeur complète du conteneur */
    height: auto; /* Hauteur automatique pour maintenir le ratio */
    display: block; /* Pour supprimer les espaces blancs sous l'image */
}

/* Style du conteneur 'ajouter au panier' */
.produit_vignette-custom-add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FF9F00; 
    display: flex;
    align-items: center;
    justify-content: center; 
    box-sizing: border-box;
    border:none;
}

/* Style des boutons de modification de quantité */
.produit_vignette-quantity-modify {
    background-color: #FF9F00;
    padding: 5px !important;
    height:35px;
    width: 35px;
    cursor: pointer;
    margin: 0; 
    border:none;
}

/* Style du champ de saisie de quantité */
.produit_vignette-quantity-field {
    width: 50px;
    background-color: #FF9F00;
    height:20px;
    text-align: center !important;
    margin: 0 !important;
    padding: 0px !important;
    font-weight:bold;
    color:white;
    border:none;
    font-size:120%;
}

/* Style du bouton d'ajout au panier */
.produit_vignette-add-to-cart-button {
    background-color: #FF9F00; 
    color: white; /* Couleur du texte */
    border: none;
    padding: 7px;
    cursor: pointer;
}

.produit_vignette-add-to-cart-button img {
    width: 20px;
    height: auto;
}

/* Style pour le lien 'Choisir' sur les produits variables */
.produit_vignette-choose-link {
    display: inline-block;
    padding: 7px 10px;
    background-color: 	#FF9F00; /* Couleur de fond */
    color: white; /* Couleur du texte */
    text-decoration: none;
    margin-top: 0px !important;
}

.notification {
    background-color: rgba(255, 159, 0, 0.7);
    color: white;
    padding: 10px;
    position: fixed;
    top: 50px;
    right: 50px;
    z-index: 1000;
    display: none;
}


/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** HOMEPAGE Bloc flottant      */
/*** - - - - - - - - - - - - - - - - - - - -		 */

#bloc-flottant {
    position: fixed;
    right: 0;
    top: 0; 
    bottom: 0; 
    z-index: 1000;
}

#bloc-flottant-menu {
    background: var(--ast-global-color-2);
    color: white;
    cursor: pointer;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    white-space: nowrap;
    position: absolute;
    right: 0;
    top: 40%;
    transition: right 0.3s ease;
    padding: 30px 15px 30px 15px;
    border-radius: 0px 10px 10px 0px;
}


#bloc-flottant-contenu {
    width: 300px;
    height: 100%; /* Prend toute la hauteur du parent */
    background-color: white;
    overflow-y: auto;
    position: absolute; /* Changé de fixed à absolute */
    right: -300px;
    top: 0; /* Début en haut */
    bottom: 0; /* S'étend jusqu'en bas */
    transition: right 0.3s ease;
    padding: 25px;
}

#bloc-flottant-icons {
    position: absolute;
    right:5px;
    top: calc(40% + 240px); /* 60px est juste un exemple, ajuste selon la hauteur de ton bloc orange */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001; /* Pour s'assurer qu'il est au-dessus des autres éléments */
}

#bloc-flottant-icons img {
    min-width: 40px; /* Ajuste l'espace entre les icônes si nécessaire */
}
#bloc-flottant-icons a {
    margin-bottom: 10px; /* Ajuste l'espace entre les icônes si nécessaire */
}

/* Styles pour les écrans mobiles */
@media (max-width: 600px) {
    #bloc-flottant {
        display: none;
    }
}



/*** - - - - - - - - - - - - - - - - - - - - 		 */
/***    PASTILLE PANIER
/*** - - - - - - - - - - - - - - - - - - - -		 */

.nombre-articles-panier {
    position: absolute;
    top: -5px; 
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px;
    font-size: 12px; 
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    line-height: 1;
    font-size: 80%; 
}



.panier-header {
    position: relative;
    display: inline-block;
}

/* Media query pour les tablettes & mobiles */
@media (max-width: 600px) {
    .wp-block-column:has(.panier-header) p {
        display: none;
    }
    
    .panier-header {
        margin-top: 0px;
    }
}

tr.woocommerce-shipping-total.shipping th:first-of-type {
    display: none;
}


/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** PANIERS HOMEPAGE
/*** - - - - - - - - - - - - - - - - - - - -		 */

.paniers-home ul li {
    padding-bottom:0 !important;
    margin-bottom:0 !important;
}


/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** Shortcode Produit
/*** - - - - - - - - - - - - - - - - - - - -		 */



.produit-carre {
    width: 100%; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    overflow: hidden; 
}

.produit-carre::before {
    content: '';
    display: block;
    padding-top: 100%; 
}

.info-centrale {
    position: absolute;
    top: 15%; 
    left: 15%;
    width: 70%;
    height: 70%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

a.nom-produit {
    margin-bottom: 10px;
    text-align:center;
    text-decoration: none;
    color:white;
}



/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** Page Produit
/*** - - - - - - - - - - - - - - - - - - - -		 */


.up-sells h2 {
    text-align:center;
}

.product-season strong, .product-conservation strong, .product-provenance strong {
    color: black;
}
.mobile_only {
    display:none;
}
.product-info-point-relais {
    clear: both;
    font-size:0.8em;
}

.astuce-container {
    display: flex;
    align-items: center;
    margin: 10px 100px 40px 100px;
    padding: 0 70px 0 0px;
    background-color: #e6dcce;
    border-radius: 500px;
}

.astuce-primeur {
    padding-top:40px;
}

.astuce-image img {
    width:150px;
    border-radius: 50%;
    height: 100%; 
    object-fit: cover; 
}

.astuce-image {
    flex-shrink: 0;
    overflow: hidden;
    height: 100%; 
    margin-right: 30px;
}

.related-recipes h2, .related h2 {
    color: black; 
    font-size: 2em;
    font-weight:bold;
    text-align: center;
}
.related h2 {
    margin-bottom:25px;
}

@media screen and (max-width: 600px) {
  
    .mobile_only {
        display:block !important;
    }
    .astuce-container {
        display: flex;
        align-items: center;
        margin: 10px;
        padding: 0px;
        background-color: #e6dcce;
        border-radius: 40px;
    }
    .astuce-image {
        display:none;
    }
    .astuce-primeur {
        padding:20px;
        text-align: center;
    }
    .astuce-primeur p {
        margin-bottom: 0 !important;
    }
    span.saison_inactive {
        display:none;
    }

}
    
/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** Page Nos Recettes
/*** - - - - - - - - - - - - - - - - - - - -		 */


/* Cache les checkbox par défaut */
.filtres-colonne input[type="checkbox"] {
    display: none;
}

/* Ajoute une représentation graphique pour les checkbox */
.filtres-colonne label {
    position: relative;
    padding-left: 25px; /* Espace pour le cercle */
    cursor: pointer;
    display: inline-block; /* Assure la bonne mise en forme */
    margin-bottom: 10px; /* Espace entre les lignes */
}

/* Crée le cercle de base pour la checkbox */
.filtres-colonne label::before {
    content: '';
    margin-top: 3px;
    position: absolute;
    left: 0;
    top: 0;
    width: 15px; /* Taille du cercle */
    height: 15px; /* Taille du cercle */
    border: 2px solid #000; /* Bordure du cercle */
    border-radius: 50%; /* Rend le div circulaire */
    background: white; /* Fond du cercle */
}

/* Style du cercle lorsque la checkbox est cochée */
.filtres-colonne label.checked::before {
    background-color: orange; /* Fond orange quand cochée */

}



    .nos-recettes-container {
        display: flex;
        overflow: visible;
    }
        
    .filtres-colonne {
        width: 25%;
        position: sticky;
        top: 0; 
        z-index: 10;
    }
        .filtre p {
            color: black;
            font-weight: bold;
            padding:0;
            margin: 10px 0 5px 0;
        }
        .filtre img {
            width:20px;
            margin:-3px 3px 0 0;
            padding:0;
        }


        
    .recettes-colonne {
        width: 75%;
    }    


    .cartes-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Ajoute de l'espacement entre les éléments */
        align-items: flex-start; /* Alignement au début pour les éléments de hauteurs différentes */
    }
    

    .carte-fiche {
        width: 300px;
        height: 260px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        margin-bottom: 10px;
    }
    
    .carte-fiche a {
        display: block;
        width: 100%; 
        text-decoration: none;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
    }
    
    .carte-fiche a:hover {
       color: black;
    }
    
    .recette-fiche {
        width: 100%;
        height: 210px;
        background-size: cover;
        background-position: center;
        transition: transform 0.3s ease; /* Animation douce pour le zoom */
    }
    
    .carte-fiche:hover .recette-fiche {
        transform: scale(1.05); /* Zoom de 5% */
    }
    
    .recette-info {
        position: absolute;
        top: 177px;
        left: 0;
        width: 100%;
        background: rgba(251, 241, 212, 0.75);
        padding: 5px;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        font-weight: bold;
    }
    
    .container-h2 h2 {
        font-size: 16px;
        margin: 0;
        padding: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    
    
    @media (min-width: 768px) {
        .carte-fiche {
            width: calc((100% - 20px) / 3); /* Soustrait 20px pour l'espacement, divise par 3 */
        }
    }
    
    @media (max-width: 767px) {
        .carte-fiche {
            width: 100%; /* Utilise toute la largeur disponible */
            margin: 10px 0; /* Ajoute de l'espacement au-dessus et en dessous de chaque carte */
        }
        .filtres-colonne {
            display:none;
        }
            
        .recettes-colonne {
            width: 100%;
        }    

    }
    
    

    
        /*
        .cartes-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            align-items: center;
            width:800px;
            margin:auto;
        }
            .carte-fiche {
                height: 335px;
                display: flex;
                justify-content: center;
                align-items: center;
                width: 30%;
                min-width: 200px;
                flex: 0 0 auto;
                margin: 10px;
            }
    
        
        .recette-fiche {
            height: 270px;
            min-width: 230px;
            background-size: cover;
            background-position: center;
            position: relative;
            margin: 10px;
        }
        

            .container-h2 {
                height: 60px;
            }
        
            .container-h2 h2 {
                text-align: center;
                margin-top: 0;
                font-size:17px;
                line-height:1.2em;
                color: black;
                padding: 0 5px;
                font-weight: normal;
                letter-spacing: 1px;
          }
        
        
        .recette-info {
            position: absolute;
            bottom: 0;
            width: 100%;
            background-color: #e6dcce;
            display: flex;
            justify-content: space-between;
            padding: 5px 10px;
            font-size:0.8em;
            color: black;
        }
        */

    /*  @media screen and (max-width: 600px) {
     
        .cartes-container {
            display: flex;
            justify-content: flex-start;
            flex-wrap: wrap;
            padding: 0; 
        }
        .carte-fiche {
            width: 100%;
            display: block;
            margin: 10px 0;
            box-sizing: border-box; 
        }
        .recette-fiche {
            width: 100%;
            height: 300px;
            background-size: cover;
            background-position: center;
            position: relative;
            margin-bottom: 10px;
            transition: transform 0.3s ease;
            box-sizing: border-box;
        }
        
            .container-h2 {
                width: 100%;
            }
            .container-h2 h2 {
                width: 100%;
            }
        
            .filtres-colonne { 
                display:none;
                width: 0%;
                background-color: lime;
            }
            
            .recettes-colonne {
                width: 100%;
            }   
        
        }*/
        

/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** Menu Principal / Menu Pro
/*** - - - - - - - - - - - - - - - - - - - -		 */

/* Styliser le conteneur du menu */
.menu_jdg {
    display: flex; 
    list-style-type: none; 
    margin: 0; 
    padding: 0; 
}

/* Styliser les éléments du menu */
.menu_jdg li {
    margin-right: 15px;
}

/* Styliser les liens du menu */
.menu_jdg li a {
    display: block; 
    text-decoration: none; 
    transition: transform 0.3s ease; 
    font-family: 'Neucha',handwriting;
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ast-global-color-2);
}

/* Styliser les liens du menu au survol */
.menu_jdg li a:hover {
    transform: scale(1.10);
    color: black;
}

.menu_jdg li.current-menu-item a {
    color: black;
}


/*** - - - - - - - - - - - - - - - - - - - - 		 */
/*** Catalogue Pro
/*** - - - - - - - - - - - - - - - - - - - -		 */


.table-products {
    width: 100%;
    border-collapse: collapse;
}

.table-products th, .table-products td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.qty-minus, .qty-plus {
    background-color: #f0f0f0;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}



table.shop_table tr.cart_item td.product-name div.ast-product-name  {
    width: max-content;
}


/* CARTE POINTS RELAIS */


#carte_liste_points {
    height: 600px;
    background-color: white;
    overflow-y: auto;
}
#ma-carte {
    margin-block-start: 0px !important;
}
.point-info-liste {
    text-align: center;
    border-radius: 5px;
    border-style: solid;
    border-width: 2px;
    margin:15px;
    padding:10px;
}
    .point-info-liste-ent {
        border-color: orange;
        background-color:whitesmoke;
    }
.point-info-liste h5, .point-info h5 {
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: normal;
}
.point-info p {
    font-size: 1.1em;
    font-weight: normal;
    letter-spacing: normal;
}

.supprimer-code-entreprise {
    cursor: pointer;
    float: left;
    margin:0 !important;
    padding: 4px !important;
    font-size: 0.6em;
}

#carte_liste_points form.form-code-ent {
    border-color: orange;
    background-color:whitesmoke;
    text-align: center;
    border-radius: 5px;
    border-style: solid;
    border-width: 2px;
    margin:15px;
    padding:10px;
}

.custom-icon {
    position: relative;
    text-align: center;
    height:79px !important;
    width:80px !important;
}

.icon-number {
    position: absolute;
    background-color: transparent;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    padding: 4px 5px;
    font-size: 16px; 
    font-weight:300 !important;
}
.leaflet-marker-icon {
    background-color: transparent !important;
    border: 0px !important;
    height:79px !important;
    width:80px !important;
}

.point-info-liste a {
    text-decoration: none !important;
    color: inherit; 
}
.point-info-liste a h5 {
    margin-bottom:0.5em; 
}
.point-info-liste a p {
    margin-bottom:0.5em; 
}
button.pointrelais-favori {
    background-color:orange;
    color: white;
}

a.supprimer-favori {
    font-weight:normal !important;
}

a.supprimer-favori:hover {
    color: red !important;
}

