/* Section "Ce qui est inclus" — Grille de cartes */
.features-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
    margin-top: 2rem;
}

.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .features-grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 10px;
    }
    .features-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .features-grid-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

#méthode .feature-card {
    padding: 32px 20px;
    min-height: 220px;
    justify-content: flex-start;
    text-align: center;
}

#méthode .feature-card .icon {
    font-size: 3rem;
    margin-bottom: 12px;
    line-height: 1;
}

#méthode .feature-card h3 {
    font-size: 1.45rem;
    margin: 0 0 16px 0;
    text-align: center;
}

#méthode .feature-card p {
    font-size: 1rem;
    text-align: center;
    margin: 0;
}

.feature-card {
    background: #f0f5f0;
    border-radius: 20px;
    padding: 20px 10px;
    width: 100%;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.feature-card-big {
    padding: 56px 28px;
    min-height: 320px;
}

.feature-card-little {
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 28px 12px;
    min-height: 50px;
    gap: 10px;
    text-align: center;
}

.feature-card.feature-card-little .icon {
    font-size: 2.2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    line-height: 1;
}

.feature-card.feature-card-little p {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 !important;
    width: auto;
    text-align: center !important;
    align-self: center;
}

.feature-card.feature-card-little p strong {
    display: block;
    width: auto;
    text-align: center !important;
}

.feature-card {
    transition: transform 0.3s ease;
}

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

.full-img {
    width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
}

.img-crop-up {
    overflow: hidden;
    width: 100%;
    border-radius: 20px 20px 0 0;
    line-height: 0;
}

.img-crop-up img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -8px;
}

.feature-card h4 {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: clamp(1.15rem, 4.5vw, 1.55rem);
}

.feature-card h4 img {
    width: 35px; /* Ajuste la taille de l'image selon tes besoins */
}

.feature-card h4 .emoji {
    font-size: 24px;
    line-height: 1;
    margin-right: 0;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.feature-card h4.single-line {
    white-space: nowrap;
}

.feature-card h4 .title-text {
    display: block;
}

.feature-card p {
    margin: 0 10px;
    line-height: 1.4;
    text-align: left;
    text-wrap: wrap;
    align-self: stretch;
}

.feature-card > p + p {
    margin-top: 0.8rem;
}

.feature-card .small-text {
    font-weight: normal;
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

#preuves-photo .feature-card p,
#preuves-texte .feature-card p {
    text-align: center;
}

.carousel-btn,
.carousel-dots {
    display: none;
}

@media (max-width: 600px) {
    .carousel-wrapper {
        position: relative;
    }

    .carousel {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
        margin-top: 13px;
        scroll-behavior: smooth;
    }

    
    .carousel::-webkit-scrollbar {
        display: none; 
    }

    .carousel .feature-card{
        scroll-snap-align: start;
        flex: 0 0 100%;
        width: 100%;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 10;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        display: block;
        transition: top 0.3s ease;
    }


    .carousel-btn img {
        display: block;
        width: 40px;
        height: 40px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-btn:disabled {
        opacity: 0.5;
        cursor: default;
    }

    .carousel-dots {
        text-align: center;
        padding: 10px 0;
        display: block;
        
    }

    #preuves-texte .carousel-dots {
        display: none !important;
    }

    .carousel-dots .dot {
        background: none;
        margin: 0;
        padding: 0;
        border: none;
        display: inline-block;
        width: 12px;
        height: 12px;
        background-color: #bbb;
        border-radius: 50%;
        margin: 0 5px;
        cursor: pointer;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .carousel-dots .dot.active {
        background-color: #8b2a4f;
    }
}