/* Variables CSS (facultatif mais utile pour la cohérence) */
:root {
    --primary-color: #007bff; /* Bleu similaire à celui du modèle Wix */
    --secondary-color: #6c757d; /* Gris pour les boutons secondaires */
    --text-color: #333;
    --heading-color: #222;
    --bg-light: #f8f9fa; /* Gris clair pour les sections */
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 1px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Navbar */
.navbar {
    background-color: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar .nav-links ul {
    display: flex;
}

.navbar .nav-links ul li {
    margin-left: 30px;
}

.navbar .nav-links ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-links ul li a:hover {
    color: var(--primary-color);
}

.navbar .cta-header .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.burger-menu {
    display: none; /* Caché par défaut, affiché sur mobile */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav-overlay.open {
    transform: translateX(0);
}

.mobile-nav-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    cursor: pointer;
    color: var(--heading-color);
}

.mobile-nav-overlay nav ul {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mobile-nav-overlay nav ul li {
    margin: 20px 0;
}

.mobile-nav-overlay nav ul li a {
    font-size: 1.5rem;
    color: var(--heading-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-nav-overlay nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-nav-overlay nav ul li .btn {
    margin-top: 15px;
    width: 80%; /* Pour un meilleur affichage sur mobile */
    font-size: 1.2rem;
}


/* Hero Section */
.hero {
    background-color: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

/* Sections Générales */
section {
    padding: 80px 0;
}

section:nth-of-type(even) { /* Pour alterner les couleurs de fond */
    background-color: var(--bg-light);
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--heading-color);
}

/* Features Section */
.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.features .feature-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.features .feature-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.features .feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.features .feature-item p {
    font-size: 1rem;
    color: var(--text-color);
}

/* About Section */
.about .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-light);
}

.about-content {
    flex: 1;
    text-align: left;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-light);
}

.testimonials .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonials .testimonial-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonials .testimonial-item p {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonials .testimonial-item .client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Pousse l'info client vers le bas */
}

.testimonials .testimonial-item .client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.testimonials .testimonial-item .client-info span {
    font-weight: 600;
    color: var(--heading-color);
}

/* Call to Action Section */
.call-to-action {
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
    padding: 60px 0;
}

.call-to-action h2 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action .btn {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 1px solid var(--bg-white);
    font-size: 1.1rem;
    padding: 15px 30px;
}

.call-to-action .btn:hover {
    background-color: #e0e0e0;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--heading-color); /* Darker background for footer */
    color: #f8f9fa;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer .footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer .footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer .footer-col ul {
    padding: 0;
}

.footer .footer-col ul li {
    margin-bottom: 10px;
}

.footer .footer-col ul li a {
    color: #f8f9fa;
    transition: color 0.3s ease;
}

.footer .footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer .social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer .social-links a {
    color: #f8f9fa;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--primary-color);
}

.footer .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer .footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar .nav-links, .navbar .cta-header {
        display: none;
    }
    .burger-menu {
        display: block;
    }

    .hero .container {
        flex-direction: column-reverse; /* Image en haut sur mobile */
        text-align: center;
    }

    .hero-content {
        order: 2; /* Pour que le texte soit en bas */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .about .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-image {
        order: 1;
        margin-bottom: 30px;
    }
    .about-content {
        order: 2;
    }

    .testimonials .testimonial-grid {
        grid-template-columns: 1fr; /* Une colonne sur mobile */
    }

    .footer .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .hero {
        padding: 60px 0;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .call-to-action h2 {
        font-size: 2.2rem;
    }
    .call-to-action p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
    }
    .footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer .social-links {
        justify-content: center;
    }
}