/* Variables et reset */
:root {
    --primary-color: #4F46E5;
    --secondary-color: #06B6D4;
    --text-color: #333;
    --background-color: #f4f4f4;
    --white: #ffffff;
    --cta-color: hsl(155, 100%, 25%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 70px; /* Espace pour l'en-tête fixe */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête et navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 69px;
    z-index: 1000;
    padding-top: 15px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style-type: none;
}

.nav-menu li {
    padding: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #3c3593;
    transform: translateY(-2px);
}

.cta-button-primary {
    background-color: var(--cta-color);
}

.cta-button-primary:hover {
    background-color: var(--white);
    color: var(--text-color);
    transform: translateY(-2px);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Section héro */
.hero {
    background-image: url("../images/hero-banner-illustration-preview.png");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    max-height: 1200px; 
    color: var(--text-color);
    padding: 100px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.hero-container {
    flex-basis: 50%;
    margin-right: auto;
    margin-left: 5%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Section fonctionnalités */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.feature-image img {
    max-width: 90%;
}

.feature-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-text ul {
    list-style-type: none;
    margin-top: 1rem;
}

.feature-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-text li::before {
    content: '\2022';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Section tarifs */
.pricing {
    padding: 80px 0;
    background-color: var(--background-color);
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.pricing-plans {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.plan {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease;
}

.plan:hover {
    transform: translateY(-5px);
}

.plan h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-color);
}

.plan ul {
    list-style-type: none;
    margin-bottom: 2rem;
}

.plan li {
    margin-bottom: 0.5rem;
}

.plan.featured {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 0%;
}

.plan.featured h3, .plan.featured .price {
    color: var(--white);
}

.featured-span {
    background-color: var(--cta-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

/* Testimonial Carousel Styles */
.testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.testimonial {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.carousel-controls {
    text-align: center;
    margin-top: 20px;
}

.prev-button, .next-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
}

.prev-button:hover, .next-button:hover {
    background-color: var(--secondary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section CTA */
.cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--white);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Pied de page */
footer {
    background-color: #333;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    margin-bottom: 2rem;
    min-width: 200px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style-type: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--white);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Media queries pour le responsive design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 15px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    header .cta-button {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .hero {
        background-image: none;
        background-color: #edf2f6;
        background-size: contain;
        background-position: top center;
        height: auto;
        padding: 10px 0;
        justify-content: center;
    }

    .hero-container {
        max-width: 100%;
        margin: 0;
        flex: 1 0 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-content {
        flex-direction: column;
    }

    .pricing-plans {
        flex-direction: column;
    }

    .testimonial-carousel {
        padding: 0 20px;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}