/**
 * Module Plantes - Styles
 * Utilise des classes spécifiques pour la couleur dynamique selon le type
 */

/* ===== CONTENEUR PRINCIPAL ===== */
.plantes-module {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 20px;
}

/* ===== EN-TÊTE ===== */
.plantes-header {
    text-align: center;
    margin-bottom: 40px;
}

.plantes-title {
    font-size: 48px;
    font-weight: bold;
    color: #113e35;
    margin: 0;
    text-transform: uppercase;
}

/* ===== SECTION CTA ===== */
.plantes-cta-container {
    text-align: center;
    margin-bottom: 40px;
}

.plantes-cta-title {
    font-family: 'BerlinerGrotesk', Helvetica, Arial, Lucida, sans-serif;
    text-transform: uppercase;
    font-size: 35px;
    color: #113e35;
    margin-bottom: 30px;
}

.plantes-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== COULEURS PAR TYPE ===== */
/* Pollinisateurs */
.plantes-type-pollinisateurs .plantes-cta-btn {
    border-color: #FFCA39;
    /*color: #FFCA39;*/
}

.plantes-type-pollinisateurs .plantes-cta-btn:hover,
.plantes-type-pollinisateurs .plantes-cta-btn.active,
.cta-gammes.cta-gammes-pollinisateurs:hover,
.cta-gammes.cta-gammes-pollinisateurs.active {
    background-color: #ffffff;
    color: #FFCA39;
}

.plantes-gamme-content {
    padding: 20px 0 50px;
    min-height: 200px;
    overflow: visible;
    position: relative;
}

.plantes-type-pollinisateurs .plantes-gamme-content {
    background-color: #FFCA39;
}

/* Protégeons */
.plantes-type-protegeons .plantes-cta-btn,
.cta-gammes.cta-gammes-protegeons:hover,
.cta-gammes.cta-gammes-protegeons.active{
    border-color: #8CD43F;
    color: #ffffff;
}

.plantes-type-protegeons .plantes-cta-btn:hover,
.plantes-type-protegeons .plantes-cta-btn.active {
    background-color: #ffffff;
    color: #8CD43F;
}

.plantes-type-protegeons .plantes-gamme-content {
    background-color: #8CD43F;
}

/* Soins */
.plantes-type-soins .plantes-cta-btn,
.cta-gammes.cta-gammes-soins {
    border-color: #C5412F;
    color: #ffffff;
    background: #c5412f;
}

.plantes-type-soins .plantes-cta-btn:hover,
.plantes-type-soins .plantes-cta-btn.active,
.cta-gammes.cta-gammes-soins:hover,
.cta-gammes.cta-gammes-soins.active {
    background-color: #ffffff;
    color: #C5412F;
}

.plantes-type-soins .plantes-gamme-content {
    background-color: #C5412F;
}

/*.plantes-cta-btn {*/
/*    background-color: transparent;*/
/*    border: 3px solid;*/
/*    padding: 15px 40px;*/
/*    font-size: 18px;*/
/*    font-weight: bold;*/
/*    text-transform: uppercase;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*    border-radius: 0;*/
/*}*/

/* ===== BLOC ENGRAIS ===== */
.plantes-engrais-bloc {
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 20px;
}

.plantes-engrais-title {
    font-family: "BerlinerGrotesk", sans-serif;
    color: white;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.plantes-engrais-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /*gap: 30px;*/
    background-color: white;
    padding: 10px 20px;
    border-radius: 15px;
    width: 90%;
    margin: 0 auto;
}

.plantes-engrais-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.plantes-engrais-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-shrink: 0;
    width: 30%;
}

.plantes-icon-text {
    font-size: 16px;
    font-weight: bold;
    color: #113e35;
    text-align: center;
    line-height: 1.2;
}

.plantes-icon-plus {
    font-size: 48px;
    font-weight: bold;
    color: #113e35;
}

.plantes-engrais-text {
    flex: 1;
}

.plantes-engrais-text p {
    font-family: "BerlinerGrotesk", sans-serif;
    margin: 0 0 10px 0;
    color: #113e35;
    font-size: 18px;
    line-height: 1.6;
}

.plantes-engrais-footnote {
    font-family: "BerlinerGrotesk", sans-serif;
    font-size: 12px !important;
    font-style: italic;
    color: #113e35;
}

/* ===== CARROUSEL ===== */
.plantes-carousel-wrapper {
    position: relative;
    margin: 0 -20px;
    padding: 0 60px;
}

.plantes-carousel {
    margin: 0;
}

.plantes-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
}

.plantes-carousel .slick-slide {
    height: auto;
    display: flex !important;
}

.plantes-carousel .slick-slide > div {
    width: 100%;
    display: flex;
}

.plantes-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.plantes-card:hover {
    transform: translateY(-5px);
}

.plantes-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.plantes-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plantes-card-content {
    padding: 20px;
    min-height: 150px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plantes-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #113e35;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.plantes-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.plantes-no-products {
    text-align: center;
    color: #666;
    font-size: 18px;
    padding: 40px;
}

/* ===== ORDER ESHOPS ===== */
.plantes-order-eshops {
    margin-top: 100px;
    padding: 0 20px;
    text-align: center;
    /*width: 50%;*/
    margin-left: 30px;
}

/* ===== SLICK CAROUSEL CUSTOMIZATION ===== */
.plantes-carousel .slick-dots {
    bottom: -40px;
}

/* Pollinisateurs - Dots et flèches */
.plantes-type-pollinisateurs .plantes-carousel .slick-dots li button:before {
    color: #FFCA39;
}

.plantes-type-pollinisateurs .plantes-carousel .slick-prev,
.plantes-type-pollinisateurs .plantes-carousel .slick-next {
    border-color: #FFCA39;
}

/*.plantes-type-pollinisateurs .plantes-carousel .slick-prev:hover,*/
/*.plantes-type-pollinisateurs .plantes-carousel .slick-next:hover {*/
/*    background-color: #FFCA39;*/
/*}*/

.plantes-type-pollinisateurs .plantes-carousel .slick-prev svg,
.plantes-type-pollinisateurs .plantes-carousel .slick-next svg {
    color: #FFFFFF;
}

/* Protégeons - Dots et flèches */
.plantes-type-protegeons .plantes-carousel .slick-dots li button:before {
    color: #8CD43F;
}

.plantes-type-protegeons .plantes-carousel .slick-prev,
.plantes-type-protegeons .plantes-carousel .slick-next {
    border-color: #8CD43F;
}

.plantes-type-protegeons .plantes-carousel .slick-prev:hover,
.plantes-type-protegeons .plantes-carousel .slick-next:hover {
    background-color: #8CD43F;
}

.plantes-type-protegeons .plantes-carousel .slick-prev svg,
.plantes-type-protegeons .plantes-carousel .slick-next svg {
    color: #ffffff;
}

/* Soins - Dots et flèches */
.plantes-type-soins .plantes-carousel .slick-dots li button:before {
    color: #C5412F;
}

.plantes-type-soins .plantes-carousel .slick-prev,
.plantes-type-soins .plantes-carousel .slick-next {
    border-color: #C5412F;
}

.plantes-type-soins .plantes-carousel .slick-prev:hover,
.plantes-type-soins .plantes-carousel .slick-next:hover {
    background-color: #C5412F;
}

.plantes-type-soins .plantes-carousel .slick-prev svg,
.plantes-type-soins .plantes-carousel .slick-next svg {
    color: #ffffff;
}

/* Styles génériques */
.plantes-carousel .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.plantes-carousel .slick-dots li {
    width: 8px;
    height: 8px;
    margin: 0;
}

.plantes-carousel .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.plantes-carousel .slick-dots li button:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    opacity: 1;
}

.plantes-carousel .slick-dots li.slick-active button:before {
    width: 24px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.plantes-carousel .slick-prev,
.plantes-carousel .slick-next {
    width: auto;
    height: auto;
    background-color: transparent;
    border: none;
    z-index: 10;
    transition: all 0.3s ease;
}

.plantes-carousel .slick-prev {
    left: -40px;
}

.plantes-carousel .slick-next {
    right: -40px;
}

.plantes-carousel .slick-prev svg,
.plantes-carousel .slick-next svg {
    width: 52px;
    height: 52px;
    stroke-width: 3;
}

.plantes-carousel .slick-prev:hover svg,
.plantes-carousel .slick-next:hover svg {
    opacity: 0.7;
}

.plantes-carousel .slick-prev:before,
.plantes-carousel .slick-next:before {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .plantes-title {
        font-size: 36px;
    }

    .plantes-cta-title {
        font-size: 24px;
    }

    .plantes-engrais-content {
        flex-direction: column;
        text-align: center;
    }

    .plantes-carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .plantes-module {
        padding: 30px 15px;
    }

    .plantes-title {
        font-size: 28px;
    }

    .plantes-cta-title {
        font-size: 20px;
    }

    .plantes-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .plantes-cta-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 30px;
        font-size: 16px;
    }

    .plantes-engrais-bloc {
        padding: 20px;
    }

    .plantes-engrais-title {
        font-size: 18px;
    }

    .plantes-engrais-content {
        padding: 20px;
    }

    .plantes-icon-circle {
        width: 100px;
        height: 100px;
    }

    .plantes-icon-plus {
        font-size: 36px;
    }

    .plantes-card-image {
        height: 250px;
    }

    .plantes-carousel-wrapper {
        padding: 0 40px;
    }

    .plantes-carousel .slick-prev,
    .plantes-carousel .slick-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .plantes-title {
        font-size: 24px;
    }

    .plantes-cta-title {
        font-size: 18px;
    }

    .plantes-engrais-icon {
        flex-direction: column;
        gap: 10px;
    }

    .plantes-icon-circle {
        width: 80px;
        height: 80px;
    }

    .plantes-icon-text {
        font-size: 12px;
    }

    .plantes-icon-plus {
        font-size: 28px;
    }
}
