/******************/
/*Slider catégorie*/
/******************/

/* --- titre --- */


.cat-slider-title-h1 h1 {
    margin-bottom: 0px;
}

/* --- Arrière-plan dégradé --- */
#phyt-categorie-slider {
    background: linear-gradient(90deg, #3d4a1c 0%, #9a8c3d 50%, #3d4a1c 100%);
    padding: 30px 0 !important;
    position: relative;
    overflow: hidden;
}

/* --- Style des Cartes --- */
.phyt-cat-card {
    background-color: #1a2611;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 350px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Effet au survol d'une carte */
.phyt-cat-card:hover {
    transform: translateY(-5px);
    background-color: #233318;
}

.phyt-cat-slider.swiper {
    padding: 45px 30px 45px 30px;
}

/* Gestion des liens */
a.phyt-cat-link {
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- STYLES DU CONTENU a voir si on laisse  --- */
.phyt-cat-media {
    margin: 0;
    height: 60%;
    overflow: hidden;
    background-color: #2a3d1e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phyt-cat-media img {
    width: 50%;
    height: 50%;
    object-fit: cover;
    mix-blend-mode: plus-lighter;
}

.phyt-cat-body {
    padding: 20px 10px 20px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.phyt-cat-title {
    color: #ebb13a !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px !important;
    margin: 0px;
    padding: 0px;
    min-height: 51px;
    display: flex;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: wrap;
}

.phyt-cat-desc p {
    color: #f2f2f2;
    font-size: 13px !important;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limiter à 3 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Style des Flèches de navigation --- */

.swiper-button-next,
.swiper-button-prev {
    background-color: #1a2611 !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    color: #ebb13a !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold !important;
    ;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #ebb13a !important;
    color: #1a2611 !important;
    transform: scale(1.1);
}

/* Pagination (les petits points en bas) */
.swiper-pagination-bullet {
    background: #1a2611 !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #ebb13a !important;
    /* Point actif doré */
    opacity: 1 !important;
}





/********/
/*Bouton*/
/********/
a.et_pb_button {
    /* Espace au-dessus du bouton dans les grilles produits */
    margin-top: 0px !important;
    margin-bottom: 1em !important;
    /* Rendre le bouton plein largeur (optionnel) */
    display: block;
    width: 100%;
    text-align: center;
    /* Harmoniser la taille du texte (optionnel) */
    font-size: 0.8em;
    line-height: 1.2;
    border-radius: 6px;
    border: solid 1px #3E5641;
    padding: 0.3em 1em !important;
    background-color: #3E5641;
    color: #F9F6EF;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Supprimer l'effet hover du bouton ajouter au panier */
a.et_pb_button:hover {
    background-color: #E8D8A6 !important;
    /* garde la couleur normale */
    color: #3E5641 !important;
    /* garde la couleur du texte normale */
    border-color: inherit !important;
    /* garde la bordure normale */
    box-shadow: none !important;
    /* supprime éventuels effets */
    opacity: 1 !important;
    /* évite les changements de transparence */
    padding: 0.3em 1em !important;
    border-radius: 200px !important;
    transition: ease-in-out 500ms all;
    border: solid 1px #3E5641 !important;
}

a.et_pb_button:after {
    display: none;
}




/**********/
/*Bannière*/
/**********/

.banniere-phyt .et_pb_fullwidth_header_container {
    align-items: center !important;
    padding-top: 0 !important;
}

.banniere-phyt .header-content {
    width: 100%;
    position: static;
    padding-left: 15px;
    /* Sécurité pour ne pas toucher les bords sur mobile */
    padding-right: 15px;
}

/* --- Positionnement du Logo en Haut --- */
.banniere-phyt .header-logo {
    position: absolute !important;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 350px;
    width: 60%;
    height: auto;
    z-index: 10;
}

@media only screen and (max-width: 980px) {
    .banniere-phyt .header-logo {
        max-width: 200px;
        top: 30px;
    }
}

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

    /* Logo encore plus petit */
    .banniere-phyt .header-logo {
        max-width: 180px;
        top: 30px;
    }

    /* Titre bien plus petit pour tenir dans l'écran */
    .banniere-phyt .et_pb_module_header {
        font-size: 28px !important;
        /* Taille adaptée aux smartphones */
        margin-bottom: 5px !important;
    }

    /* Sous-titre adapté */
    .banniere-phyt .et_pb_fullwidth_header_subhead {
        font-size: 18px !important;
    }

    .banniere-phyt .et_pb_module_header::after {
        width: 120px;
    }
}

.et_pb_fullwidth_header.et_pb_fullwidth_header_0.banniere-phyt {
    background-image: url('../images/banniere_phyt-inov.png');
}

.banniere-phyt .et_pb_module_header,
.banniere-phyt .et_pb_fullwidth_header_subhead {
    font-family: 'Gill Sans', 'Gotham', 'Gill Sans MT', 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    color: #ebb13a !important;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1em !important;
}

.banniere-phyt .et_pb_module_header {
    margin-bottom: 0px !important;
    font-size: 48px !important;
}

.banniere-phyt .et_pb_fullwidth_header_subhead {
    font-size: 33px !important;
}

/* Ligne décorative sous le titre */
.banniere-phyt .et_pb_module_header::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ebb13a, transparent);
    margin: 10px auto 0 auto;
    box-shadow: 0 0 10px #ebb13a;
    opacity: 0.8;
}

.scroll-down.et-pb-icon {
    font-size: 0 !important;
}

/* 2. On injecte la bonne icône proprement via CSS */
.scroll-down.et-pb-icon::after {
    content: '\37';
    /* C'est le code CSS pour "C" (ta flèche) */
    font-family: 'ETmodules' !important;
    /* On s'assure que c'est la police Divi */
    font-size: 38px !important;
    /* On remet la taille visible (celle de ta capture) */
    color: #fff;
    /* Couleur blanche, ajuste si besoin */
    display: block;
    /* Pour bien centrer l'icône */
}

/* Ajustement pour mobile */
@media only screen and (max-width: 767px) {
    .banniere-phyt .et_pb_module_header {
        font-size: 32px;
    }

    .banniere-phyt .et_pb_fullwidth_header_subhead {
        font-size: 22px;
    }

    .banniere-phyt .et_pb_module_header::after {
        width: 150px;
    }
}



/******************/
/****Mon COMPTE****/
/******************/

nav.woocommerce-MyAccount-navigation {
    display: none !important;
}

div.woocommerce-MyAccount-content {
    width: 100% !important;
}

/* --- Bandeau Mon Compte (Divi / ETmodules) --- */
.myaccount-banner {
    margin: 1.5rem 0;
}

.myaccount-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
}

.myaccount-tabs li {
    flex: 1 1 160px;
}

.myaccount-tabs a {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1.1rem;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    color: #6b6b6b;
    transition: .25s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.myaccount-tabs a:hover,
.myaccount-tabs li.is-active a {
    border-color: #c9a14a;
    color: #2c3e50;
    background: #fff7e6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

/* Icône ETmodules (Divi) */
.myaccount-tabs .et-pb-icon {
    font-family: "ETmodules" !important;
    /* police d’icônes Divi */
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    transform: translateY(1px);
    /* Couleur icône distincte */
    color: #c9a14a;
}

/* Responsive */
@media (max-width: 600px) {
    .myaccount-tabs li {
        flex-basis: 100%;
    }
}


.woocommerce-Button.wc-forward.button {
    align-items: center;
    padding: 0.2rem 1.1rem;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    color: #6b6b6b;
    transition: .25s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
    font-size: 18px;
    font-weight: 300;
    box-sizing: border-box !important;
}

.woocommerce-Button.wc-forward.button::after {
    display: none;
}

.woocommerce-Button.wc-forward.button:hover {
    border-color: #c9a14a;
    color: #2c3e50;
    background: #fff7e6;
    border-radius: inherit;
    padding: 0.2rem 1.1rem;
    margin: 0px;
    box-sizing: border-box !important;
}



/*mon compte adresse*/

.woocommerce-Address {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
    border-radius: 6px;
    border: 1px solid #d8d8d8;
    padding: 20px 15px;
}

.woocommerce-Address .woocommerce-Address-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.woocommerce-Address .woocommerce-Address-title a.edit:hover {
    text-decoration: underline;
}



/***************************/
/****PRESENTATION MARQUE****/
/***************************/
#presentation-marque {
    background: linear-gradient(90deg, #3d4a1c 0%, #9a8c3d 50%, #3d4a1c 100%);
}

/* --- Mise en page de la ligne (Conteneur) --- */
#presentation-marque-ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
}

/* Ajustement des colonnes Divi pour le flexbox */
#presentation-marque-ligne .et_pb_column {
    margin-right: 0 !important;
    width: 32% !important;
    flex-grow: 1;
    position: relative;
}

/* --- Style des Cartes --- */
.presentation-marque-colonne {
    /* On remplace la couleur unie par un dégradé */
    /* Du vert plus clair (#3a4b35) vers le vert sombre original (#1e2b1a) */
    background: linear-gradient(to bottom, #3a4b35 0%, #1e2b1a 65%) !important;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Séparateurs des Cartes --- */

#presentation-marque-ligne .et_pb_column:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;

    /* Positionnement : à droite de la colonne, au milieu de l'espace */
    /* Si votre gap est de 30px, on décale de -15px environ */
    right: -10px;
    top: 10%;
    /* On laisse 10% de vide en haut */

    /* Dimensions de la ligne verticale */
    width: 2px;
    height: 80%;
    /* La ligne fait 80% de la hauteur totale */

    /* Le Style (votre demande adaptée en vertical) */
    background: linear-gradient(to bottom, transparent, #cfae68, transparent);
    box-shadow: 0 0 10px #cfae68;
    /* Petite lueur dorée */
    opacity: 0.9;
    /* Transparence pour rester subtil */
    pointer-events: none;
}


@media screen and (max-width: 980px) {
    #presentation-marque-ligne .et_pb_column:not(:last-child)::after {
        /* On réinitialise la position verticale */
        right: auto;
        top: auto;

        /* On place la ligne en bas, centrée */
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);

        /* On change les dimensions pour une ligne horizontale */
        width: 80%;
        height: 1px;

        /* On remet le gradient à l'horizontale (90deg) */
        background: linear-gradient(90deg, transparent, #cfae68, transparent);
    }
}

/* --- Style des Images (Logos) --- */
.presentation-marque-colonne .et_pb_main_blurb_image {
    margin-bottom: 25px;
}

.presentation-marque-colonne .et_pb_main_blurb_image img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    margin-bottom: 15px;
}

/* --- Style du Texte --- */
.presentation-marque-colonne .et_pb_blurb_description p {
    color: #f2f2f2 !important;
    font-size: 15px !important;
    line-height: 1.8em !important;
    font-weight: 300 !important;
    opacity: 0.9;
}

/* --- Version Mobile (Responsivité) --- */
@media screen and (max-width: 980px) {
    #presentation-marque-ligne {
        display: block;
        /* Retour à l'affichage bloc standard sur mobile */
    }

    #presentation-marque-ligne .et_pb_column {
        width: 100% !important;
        margin-bottom: 30px !important;
        /* Espace entre les cartes sur mobile */
    }

    .presentation-marque-colonne {
        height: auto;
        /* Hauteur automatique sur mobile */
    }
}



/***********************************/
/***Acces rapide - page d'accueil***/
/***********************************/

/* --- Mise en page Grille (Layout Bento) --- */

#quick-acces-ligne {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto;
}


#quick-acces-colonne-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100% !important;
    margin-right: 0 !important;
}


#quick-acces-colonne-2 {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    margin-right: 0 !important;
}


#quick-acces-colonne-3 {
    grid-column: 2;
    grid-row: 2;
    width: 100% !important;
}

#quick-acces-colonne-1 {
    opacity: 0;
    transform: translateX(-100px);
    /* Décalage vers la gauche */
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    /* Transition fluide */
}

/* Les colonnes de droite (2 et 3) partent vers la droite */
#quick-acces-colonne-2,
#quick-acces-colonne-3 {
    opacity: 0;
    transform: translateX(100px);
    /* Décalage vers la droite */
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.2s;
    /* Petit délai pour qu'elles arrivent après la gauche */
}

/* 2. État final (Quand visible à l'écran) */
/* Cette classe sera ajoutée par le Javascript ci-dessous */
.bento-visible #quick-acces-colonne-1,
.bento-visible #quick-acces-colonne-2,
.bento-visible #quick-acces-colonne-3 {
    opacity: 1;
    transform: translateX(0);
    /* Retour à la place normale */
}

/* --- Style des Images & Remplissage --- */

#quick-acces-ligne .et_pb_module,
#quick-acces-ligne .et_pb_image_wrap,
#quick-acces-ligne img {
    height: 100%;
    width: 100%;
}

#quick-acces-ligne .et_pb_image_wrap {
    display: block !important;
    width: 100%;
    height: 100%;
    line-height: 0 !important;
    font-size: 0 !important;
    overflow: hidden;
    border-radius: 4px;
}

#quick-acces-ligne img {
    object-fit: cover;
    display: block !important;
    width: 100%;
    height: 100%;
    vertical-align: top;
    transition: transform 0.4s ease;
    margin: 0 !important;
    padding: 0 !important;
}

#quick-acces-ligne .et_pb_module {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: 100%;
}


#quick-acces-ligne img {
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 4px;
}

/* Effet de survol optionnel (Zoom léger) */
#quick-acces-ligne .et_pb_module img {
    transition: transform 0.3s ease;
}

#quick-acces-ligne .et_pb_module:hover img {
    transform: scale(1.03);
}

/* --- Les Insignes (Badges) --- */

#quick-acces-ligne .et_pb_image_wrap::after {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #2e3b28;
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 50px;
    /* Forme de pilule */
    font-size: 13px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    /* Le clic passe au travers */
    z-index: 10;
    opacity: 0.9;
    line-height: 1.5;
}

#quick-acces-cosmetique-bio .et_pb_image_wrap::after {
    content: "Cosmétiques BIO";
}

#quick-acces-complemenet-alimentaire .et_pb_image_wrap::after {
    content: "Compléments alimentaires";
}

#quick-acces-hygiene-sante .et_pb_image_wrap::after {
    content: "Hygiène & santé";
}



/* --- Responsivité (Mobile) --- */

@media (max-width: 980px) {
    #quick-acces-ligne {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    #quick-acces-ligne .et_pb_image_wrap {
        height: auto;
    }
}