/* Styles généraux - inchangés */
.fertilisant {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-color: #f0f0f0;
}
.fertilisants-section {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}
.container {
    max-width: max-content;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}
.fertilisant-card {
    position: relative;
    width: 30%;
    height: 430px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.fertilisant-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}
.fertilisant-card .text {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.fertilisant-card .text h2, .fertilisant-card .text p {
    color: #fff;
    font-family: "Raleway", Sans-serif;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
}
.hidden-text {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: #2128BF;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: left 0.4s ease;
}
.fertilisant-card:hover .hidden-text {
    left: 0;
}
.hidden-text h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}
.hidden-text p {
    padding: 30px;
    font-size: 16px;
    text-align: center;
    align-items: center;
}
.hidden-text button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: white;
    color: #2128BF;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid white;
    font-weight: bold;
    cursor: pointer;
}
.details-section-container {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.details-section {
    display: none;
    padding: 20px;
    width: 90%;
    margin: 0 auto;
}
.details-section.active {
    display: block;
}
.details-section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.details-section img {
    max-width: 100%;
    border-radius: 10px;
}

/* CSS fourni par l'utilisateur */
.fertilisants-details {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
.content-container {
    display: flex;
    align-items: flex-start;
    padding: 50px;
}
.text-section {
    flex: 2;
    max-width: 700px;
}
.text-section h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}
.text-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.text-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.text-section p {
    font-size: 1rem;
    margin-bottom: 20px;
}
.image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-section img {
    border-radius: 10px;
    width: 30rem;
    height: 30rem;
    z-index: 1;
}

/* Adaptation pour les écrans de tablette */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: max-content;
        padding: 20px;
        gap: 10px;
    }
    .fertilisant-card {
        width: 45%;
        height: 400px;
    }
    .fertilisant-card .text h2, .fertilisant-card .text p {
        font-size: 24px;
    }
    .hidden-text h3 {
        font-size: 20px;
    }
    .hidden-text p {
        font-size: 16px;
    }
    .hidden-text button {
        padding: 10px 18px;
        font-size: 16px;
    }
    .details-section {
        padding: 10px;
        width: 100%;
    }
    .content-container {
        flex-direction: column;
        padding: 20px;
    }
    .text-section {
        max-width: 100%;
    }
    .text-section h1 {
        font-size: 2.2rem;
    }
    .text-section h2 {
        font-size: 1.8rem;
    }
    .text-section h3 {
        font-size: 1rem;
    }
    .text-section p {
        font-size: 1rem;
    }
    .image-section img {
        width: 80%;
        height: auto;
    }
}

/* Adaptation pour les petites écrans */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .fertilisant-card {
        width: 100%;
        height: 300px;
    }
    .fertilisant-card .text h2 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    .fertilisant-card .text p {
        font-size: 18px;
    }
    .hidden-text h3 {
        font-size: 18px;
    }
    .hidden-text p {
        font-size: 14px;
        padding: 15px;
    }
    .hidden-text button {
        padding: 8px 16px;
        font-size: 14px;
    }
    .details-section {
        padding: 10px;
        width: 100%;
    }
    .content-container {
        flex-direction: column;
        padding: 10px;
        margin-bottom: 20px;
    }
    .text-section {
        max-width: 100%;
    }
    .text-section h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .text-section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    .text-section p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .image-section img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}
.blueprotein-section {
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
}

.blueprotein-title {
    font-size: 2.7rem;
    color: blue;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 2rem;
}

.blueprotein-description {
    font-size: 1.2rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin: 0 2.3rem;
}

/* Adaptation pour les tablettes */
@media (min-width: 768px) and (max-width: 1024px) {
    .blueprotein-title {
        font-size: 2.4rem;
    }
    .blueprotein-description {
        font-size: 1.1rem;
        margin: 0 2rem;
    }
}

/* Adaptation pour les petits écrans */
@media (max-width: 768px) {
    .blueprotein-section {
        padding: 1.5rem;
    }
    .blueprotein-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .blueprotein-description {
        font-size: 1rem;
        margin: 0 1.5rem;
    }
}
