:root {
    --primary-color: #28AA84;
    --secondary-color: #64B4DC;
    --secondary-rgb: 56, 178, 172;

    --complement-color: #5D1CB1;
    --complement-rgb: 219, 83, 46;
    --text-color: #2D3436;
    --text-light: #718096;
    --dark: #2D3748;
    --border-color: #E2E8F0;

    --a: #F8FAFC;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --amber: rgb(245 158 11);
    --yellow: rgb(234 179 8);
    --red: rgb(220 38 38);

}

/*------------------*/
/*     Hero         */
/*------------------*/

.hero {
    display: flex;
    align-items: center;
    padding: 6rem 7%;
    background: var(--light-bg);
    min-height: 60vh;
    gap: 4rem;
    max-width: 1500px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-color);
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    max-width: 900px;
}

.floating-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

/*------------------*/
/*   Features       */
/*------------------*/

.features {
    padding: 6rem 7%;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.features-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-color);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.15);
    border-color: var(--primary-color);
}

.feature-card:hover .feature-icon svg {
    color: var(--primary-color);
    transform: scale(1.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 70px;
    border-radius: 12px;
    background: rgba(var(--primary-color-rgb), 0.1);
    margin: 0 auto 1.5rem;
}

.feature-icon svg {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    text-align: center;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    text-align: center;
}

/* Animation d'entrée */
@keyframes featureCardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: featureCardIn 0.6s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features {
        padding: 4rem 5%;
    }
    
    .features h2 {
        font-size: 2rem;
    }
    
    .features-intro {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
}

/*------------------*/
/*   Testimonials   */
/*------------------*/

.testimonials {
    padding: 6rem 7%;
    background: var(--light-bg);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 120px;
    color: rgba(0,0,0,0.03);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--light-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
    display: block;
}

.rating {
    color: #FFD700;
    margin: 0.5rem 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.star {
    font-size: 32px;
    position: relative;
    display: inline-block;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
    margin-top: auto;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0 0 0.3rem;
    font-weight: bold;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials {
        padding: 4rem 5%;
    }
    
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-avatar {
        width: 70px;
        height: 70px;
    }
}

/* Animation pour les cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.4s;
}

/*------------------*/
/*     Pricing      */
/*------------------*/

.pricing {
    padding: 6rem 7%;
    background: white;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.pricing-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    opacity: 0.8;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

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

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(to bottom, white, #f8fafc);
}

.popular-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    opacity: 0.8;
}

.price-description {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-color);
}

.check {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.plus {
    color: var(--amber);
    margin-right: 0.5rem;
    font-weight: bold;
}

.cross {
    color: var(--red);
    margin-right: 0.5rem;
    font-weight: bold;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 80%;
    display: inline-block;
    text-align: center;
}

/*------------------*/
/*     CTA          */
/*------------------*/

.cta {
    padding: 6rem 7%;
    background: var(--gradient);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta .btn-secondary {
    background: white;
    color: var(--primary-color) !important;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
} 

/*------------------*/
/*     Buttons      */
/*------------------*/

.btn-primary {
    background: var(--complement-color);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary {
    background: white;
    color: var(--primary-color) !important;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}


/*------------------*/
/*     Animations   */
/*------------------*/

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/*------------------*/
/*     Responsive   */
/*------------------*/

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 7%;
        margin-top: 6rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}