/* Variables */
:root {
    --primary-color: #FF6B6B; /* Un rouge-rosé vibrant */
    --secondary-color: #4ECDC4; /* Un vert-bleu apaisant */
    --accent-color: #FFE66D; /* Un jaune doux pour les accents */
    --text-color: #333;
    --light-text-color: #666;
    --background-light: #f9f9f9;
    --background-dark: #333;
    --white: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 2.8em; text-align: center; margin-bottom: 30px; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 40px; color: var(--secondary-color);}
h3 { font-size: 1.8em; margin-bottom: 15px; }

p { margin-bottom: 15px; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9em;
    white-space: nowrap; /* Prevent text wrapping on small buttons */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-tertiary {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}
.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}
.btn-xl {
    padding: 18px 40px;
    font-size: 1.2em;
    margin-top: 20px;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border-radius: var(--border-radius);
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-submit:hover {
    background-color: var(--primary-color);
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    padding-right: 20px; /* Space between logo and nav on desktop */
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}
.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.main-nav ul li a:hover::after {
    width: 100%;
}
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.main-nav ul li a.btn {
    padding: 8px 18px;
    font-size: 0.85em;
}
/* Hamburger menu for mobile */
.hamburger {
    display: none; /* Hidden on desktop */
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}


/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
    padding: 80px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}
.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}
.hero-content h1 {
    font-size: 3.5em;
    color: var(--text-color);
    text-align: left; /* Align left on larger screens */
}
.hero-content h1 strong {
    color: var(--primary-color);
}
.hero-content .tagline {
    font-size: 1.4em;
    color: var(--light-text-color);
    margin-bottom: 25px;
    font-style: italic;
}
.hero-content .description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allows buttons to wrap */
    justify-content: flex-start; /* Align left on larger screens */
}
.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* About Me Section */
.about-me-section {
    padding: 80px 0;
    background-color: var(--white);
}
.about-me-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.about-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%; /* Rounded image */
    box-shadow: var(--box-shadow);
    border: 5px solid var(--secondary-color);
}
.about-content {
    flex: 2;
    min-width: 300px;
    text-align: left;
}
.about-content h2 {
    text-align: left;
    color: var(--primary-color);
}
.about-content p {
    font-size: 1.05em;
    margin-bottom: 15px;
}

/* Why Now Section */
.why-now-section {
    padding: 80px 0;
    background-color: var(--background-light);
    text-align: center;
}
.why-now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.why-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
    transition: transform 0.3s ease;
}
.why-item:hover {
    transform: translateY(-5px);
}
.why-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

/* Offer Lancement Section */
.offer-lancement-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}
.offer-lancement-section .subtitle {
    font-size: 1.2em;
    color: var(--light-text-color);
    margin-bottom: 50px;
}
.offer-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.detail-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
}
.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.detail-item h3 {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.detail-item .feature-icon {
    width: 30px;
    height: 30px;
    /* You might want to color these icons if they are SVG */
    /* filter: invert(39%) sepia(87%) saturate(301%) hue-rotate(151deg) brightness(97%) contrast(85%); */
}
.detail-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.detail-item ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}
.detail-item ul li .list-icon {
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    top: 3px;
    /* filter: invert(39%) sepia(87%) saturate(301%) hue-rotate(151deg) brightness(97%) contrast(85%); */
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background-dark);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.testimonials-section h2 {
    color: var(--accent-color);
}
.testimonials-slider {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling on small screens */
    gap: 30px;
    padding-bottom: 20px;
    margin-top: 50px;
    justify-content: center; /* Center testimonials if there's space */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1); /* Firefox */
}
/* For Webkit browsers (Chrome, Safari) */
.testimonials-slider::-webkit-scrollbar {
    height: 8px;
}
.testimonials-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.testimonials-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    min-width: 300px;
    max-width: 450px;
    flex-shrink: 0; /* Prevents items from shrinking */
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-item p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows paragraph to take available space */
}
.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.client-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}
.client-name {
    font-weight: bold;
    color: var(--accent-color);
    margin: 0;
}
.client-title {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Pricing Funnel Section */
.pricing-funnel-section {
    padding: 80px 0;
    background-color: var(--background-light);
    text-align: center;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.pricing-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}
.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.pricing-card .level {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}
.pricing-card h3 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.pricing-card .price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.pricing-card .description {
    font-size: 1em;
    color: var(--light-text-color);
    margin-bottom: 30px;
    flex-grow: 1; /* Allows description to take available space */
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}
.pricing-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}
.pricing-card ul li .list-icon {
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    top: 0;
}
.pricing-card .btn {
    margin-top: auto; /* Pushes button to the bottom */
}

/* Swiss-Tunisia Section */
.swiss-tunisia-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}
.synergy-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}
.synergy-item {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
    border-bottom: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}
.synergy-item:hover {
    transform: translateY(-5px);
}
.synergy-item h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center; /* Center title */
}
.synergy-item .synergy-icon {
    width: 40px;
    height: 40px;
}
.result-text {
    font-size: 1.2em;
    font-style: italic;
    margin-top: 40px;
    color: var(--secondary-color);
}

/* CTA Final Section */
.cta-final-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.cta-final-section h2 {
    color: var(--white);
    margin-bottom: 30px;
}
.cta-final-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}
.cta-buttons {
    margin-bottom: 50px;
}
.cta-buttons .btn {
    margin: 0 15px 20px 15px; /* Adjust margin for responsive display */
}
.cta-buttons p {
    margin-top: 20px;
    font-weight: bold;
}

.simple-contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
    color: var(--text-color);
}
.simple-contact-form h3 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 22px); /* Adjust for padding and border */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in width */
}
.form-group textarea {
    resize: vertical;
}
.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    display: none; /* Hidden by default, shown by JS */
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Footer */
.main-footer {
    background-color: var(--background-dark);
    color: var(--white);
    padding: 50px 0 20px 0;
    font-size: 0.9em;
}
.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}
.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: left;
}
.footer-col p, .footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}
.footer-col a:hover {
    color: var(--white);
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.social-links img {
    width: 30px;
    height: 30px;
    filter: invert(1); /* To make icons white if they are dark */
}
.copyright {
    text-align: center;
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}
.copyright a {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content, .about-content {
        text-align: center;
    }
    .hero-content h1, .about-content h2 {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center; /* Center buttons on mobile */
    }
    .hero-image, .about-image {
        order: -1; /* Image before text on mobile */
    }
    .about-me-section .container {
        flex-direction: column;
    }
    .pricing-grid, .why-now-grid, .offer-details-grid, .synergy-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Nav */
    .hamburger {
        display: block; /* Show hamburger on mobile */
    }
    .main-nav {
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none; /* Hidden by default */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid #eee;
    }
    .main-nav.active {
        display: flex; /* Show when active */
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
    }
    .main-nav ul li {
        width: 100%;
    }
    .main-nav ul li a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    .main-nav ul li a::after {
        display: none; /* Hide hover underline on mobile menu */
    }
    .main-nav ul li a.btn {
        width: auto;
        margin: 10px auto;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .hero-content h1 { font-size: 2.5em; }
    .hero-content .tagline { font-size: 1.2em; }
    .btn-large { padding: 12px 25px; font-size: 1em; }
    .cta-final-section p { font-size: 1em; }
    .cta-buttons .btn { margin: 0 0 15px 0; display: block; width: 100%; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    .hero-content h1 { font-size: 2em; }
    .hero-content .tagline { font-size: 1em; }
    .pricing-card { padding: 30px 20px; }
    .simple-contact-form { padding: 30px 20px; }
    .hero-section, .about-me-section, .why-now-section, .offer-lancement-section,
    .testimonials-section, .pricing-funnel-section, .swiss-tunisia-section, .cta-final-section {
        padding: 60px 0; /* Reduced padding for smaller screens */
    }
}