/* Styles pour les différentes sections de contenu */

/* Section How It Works */
.how-it-works-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

/* Style spécial pour le texte en surbrillance */
.section-title .highlight {
    position: relative;
    display: inline-block;
    font-weight: 800;
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 30px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transform: rotate(-2deg);
    z-index: 2;
    margin: 0 -5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation d'entrée pour l'élément en surbrillance */
@keyframes popIn {
    0% {
        transform: rotate(-2deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: rotate(-2deg) scale(1.05);
    }
    70% {
        transform: rotate(-2deg) scale(0.95);
    }
    100% {
        transform: rotate(-2deg) scale(1);
        opacity: 1;
    }
}

/* Animation de flottement subtile */
@keyframes float {
    0% {
        transform: rotate(-2deg) translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    }
    50% {
        transform: rotate(-2deg) translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: rotate(-2deg) translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    }
}

/* Application de l'animation lorsque l'élément est visible */
.fade-in .highlight {
    animation: popIn 0.8s forwards;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--text-dark);
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: var(--spacing-md); /* Marge horizontale uniquement */
    row-gap: 0; /* Suppression de la marge verticale */
    margin-top: var(--spacing-lg);
}

.step-item {
    flex: 0 0 calc(33.333% - var(--spacing-md)); /* Marge réduite */
    box-sizing: border-box; /* Correction pour la taille */
    text-align: center;
    position: relative;
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(124, 137, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(124, 137, 255, 0.25);
}

.step-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-emoji {
    font-size: 50px;
    line-height: 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: inline-block;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(124, 137, 255, 0.3);
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.step-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6; /* Améliorer l'alignement vertical */
}

.social-icon {
    height: 20px; /* Hauteur fixe pour garantir la même taille */
    width: auto;
    vertical-align: middle; /* Centrer verticalement */
    margin: 0 0.2em; /* Petit espace autour */
}

.facebook-icon {
    height: 12px; /* Taille réduite pour Facebook */
}

/* Features Slider (within How It Works) */
.features-slider {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 40px; /* Espace pour la pagination */
}

.features-slider .swiper-slide {
    height: auto;
}

.features-slider .feature-item {
    height: 100%;
}

.features-slider .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

@media (min-width: 769px) {
    .features-slider {
        padding-bottom: 0;
    }
    .features-slider .swiper-pagination {
        display: none;
    }
}

.feature-item {
    text-align: left;
    padding: var(--spacing-md);
}

.feature-icon {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem; /* Marge réduite */
    display: block;
}

.feature-title {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-title::before {
    content: '|';
    color: var(--primary-color-light);
    font-weight: bold;
    margin-right: 0.7rem;
}

.feature-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl) var(--spacing-lg);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }
    
    .feature-item {
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }
    
    .section-title {
        font-size: 1.6rem;
        padding: 0 var(--spacing-sm);
    }
    
    .section-title .highlight {
        padding: 5px 10px;
        font-size: 1.6rem;
    }
    
    .step-item {
        padding: var(--spacing-sm);
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .offer-image {
        height: 150px;
    }
    
    .offer-title {
        font-size: 1.1rem;
    }
    
    .offer-description {
        font-size: 0.9rem;
    }
    
    .offer-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .how-it-works-section,
    .offers-section,
    .final-cta-section {
        padding: var(--spacing-lg) 0;
    }
    
    .testimonial-card {
        height: auto;
        min-height: 350px;
    }
}

/* Section Offers */
.offers-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-light);
}

@media (max-width: 768px) {
    .offers-section {
        padding-bottom: 0;
    }

    .testimonial-card {
        padding: var(--spacing-md);
        flex-basis: 100%;
        min-width: 0;
    }
}

.offers-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.offer-card {
    flex: 0 0 calc(33.333% - var(--spacing-md));
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.offer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e0e0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

.offer-content {
    padding: var(--spacing-sm);
}

.offer-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.offer-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.offer-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #eee;
}

.offer-value {
    font-weight: bold;
    color: var(--primary-color);
}

.offer-requirement {
    font-style: italic;
}

.offer-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Final CTA Section */
.final-cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(124, 137, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    position: relative;
}

/* Testimonials Slider Styles */
.testimonials-slider-container {
    margin: var(--spacing-md) 0; /* Marge supérieure réduite */
    position: relative;
    overflow: hidden;
    padding-bottom: 80px; /* Space for navigation */
    max-width: 100%;
}

.testimonials-slider {
    display: flex;
    gap: var(--spacing-sm); /* Espacement réduit entre les cartes */
    transition: transform 0.5s ease;
    width: 100%;
    overflow-x: visible; /* Permet aux slides d'être visibles même en dehors du conteneur */
    scroll-behavior: smooth;
    padding: var(--spacing-sm) 8px; /* Padding réduit */
    margin: 0 -8px; /* Marge négative réduite pour compenser */
    align-items: stretch; /* Force tous les éléments enfants à s'étirer pour avoir la même hauteur */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - var(--spacing-sm));
    min-width: 290px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(124, 137, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(124, 137, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 350px; /* Hauteur ajustée à 350px */
    margin: var(--spacing-md) 0 var(--spacing-sm); /* Marge supérieure de la carte réduite */
    /* overflow: hidden; est supprimé pour permettre à l'icône de déborder */
}

.testimonial-content-wrapper {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1; /* Pour que le contenu soit au-dessus de l'icône de citation */
}

.quote-icon {
    font-size: 120px;
    color: var(--primary-color-light-blue);
    line-height: 1;
    position: absolute;
    top: -40px; /* Valeur négative pour faire déborder l'icône */
    left: 10px;
    z-index: 3; /* Placé au-dessus des autres éléments */
    opacity: 0.15; /* Légèrement plus visible */
}

.rating {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: var(--spacing-xs); /* Marge réduite */
    position: relative;
    z-index: 2; /* Au-dessus de l'icône */
}

.testimonial-text {
    margin-bottom: var(--spacing-sm);
    flex-grow: 1; /* Permet au texte de prendre l'espace disponible */
    position: relative;
    z-index: 2;
}

.product-image {
    width: calc(100% - (2 * var(--spacing-md)));
    height: 150px; /* Taille d'image réduite */
    object-fit: cover;
    border-radius: 16px; /* Bords arrondis */
    margin: 0 auto var(--spacing-sm); /* Marges ajustées */
    display: block;
}

.testimonial-instagram {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: block;
}

.testimonial-instagram:hover {
    text-decoration: underline;
}



/* Slider Navigation */
.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid rgba(124, 137, 255, 0.2);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(124, 137, 255, 0.1);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 137, 255, 0.2);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(124, 137, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: var(--spacing-sm);
    font-family: 'Georgia', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    z-index: 1;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0.5rem 0 var(--spacing-xs);
    flex: 1;
    min-height: 6rem; /* Hauteur minimale pour le texte */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating {
    display: flex;
    gap: 5px;
    margin-bottom: var(--spacing-md);
}

.star {
    color: #FFD700;
    font-size: 1.2rem;
}

.testimonial-author {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(124, 137, 255, 0.1);
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: var(--spacing-xs);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid white;
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Join CTA Box Styles */
.join-cta-box {
    background: white;
    border-radius: 20px;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 30px rgba(124, 137, 255, 0.15);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
    position: relative;
    overflow: hidden;
}

.join-cta-content {
    flex: 1;
    padding-right: var(--spacing-lg);
}

.join-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.join-cta-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.join-cta-image {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligne les boutons à gauche */
}

.members-avatars {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin: -5px;
    transition: transform 0.3s ease;
}

.member-avatar:hover {
    transform: scale(1.1);
    z-index: 2;
}

.more-members {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-left: -5px;
    border: 3px solid white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    justify-content: flex-start;
    gap: var(--spacing-md);
}

/* Responsive styles */
@media (max-width: 992px) {
    .step-item, .offer-card {
        flex: 0 0 calc(50% - var(--spacing-md));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-item {
        flex: 0 0 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .offers-container {
        flex-direction: column;
    }
    
    .offer-card {
        flex: 0 0 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .testimonial-card {
        flex: 0 0 90%;
        min-width: 280px;
    }
    
    .step-item {
        flex: 0 0 100%;
        max-width: 350px;
        margin: 0 auto var(--spacing-lg);
    }
    
    .offer-card {
        flex: 0 0 calc(50% - var(--spacing-sm));
    }
    
    .testimonials-slider {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .testimonial-card {
        padding: var(--spacing-md);
        flex: 0 0 calc(100% - var(--spacing-md));
        min-width: 260px;
        margin: var(--spacing-xs) 0;
    }
    
    .join-cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .join-cta-content {
        padding-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .members-avatars {
        justify-content: center;
        margin: 0 auto;
    }
    
    .final-cta-section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 576px) {
    .offer-card {
        flex: 0 0 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}
