/* Custom Properties (CSS Variables) */
:root {
    --primary-color: #007bff;
    --secondary-color: #00e7d4; /* A vibrant alternative to primary */
    --accent-color: #00b3a4; /* For pricing highlights */
    --text-color: #333;
    --light-text-color: #e2e2e2;
    --background-light: #f4f4f4;
    --background-dark: #1d1d1d;
    --card-background: #ffffff;
    --border-color: #eee;
    --shadow-light: rgba(0,0,0,0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Arial', sans-serif; /* A more common sans-serif font */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-color);
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px; /* Added horizontal padding for smaller screens */
}

h1, h2, h3, h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 3em;
    text-align: center;
    color: var(--primary-color);
}

h1 span {
    color: var(--secondary-color);
}

h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

.lead {
    font-size: 1.2em;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-align: center;
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Header and Navigation */
header {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-medium);
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow navigation items to wrap on smaller screens */
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color var(--transition-speed), border-bottom var(--transition-speed);
}

.main-nav a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Sections */
.section {
    padding: 80px 0;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x1080?text=Hero+Image+Outsourcing') no-repeat center center/cover; /* Updated placeholder image for outsourcing */
    color: white;
    text-align: center;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Make it take up a good portion of the viewport height */
}

.hero-section h1 {
    color: white;
    font-size: 4em;
    margin-bottom: 20px;
}

.hero-section .tagline {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.offers-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.offers-list li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 15px;
    border: 1px solid white;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.offers-list li a:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Service Sections (General Styling for the new structure) */
.service-section {
    background-color: var(--card-background);
}

.service-header {
    text-align: center;
    margin-bottom: 50px;
}

.service-header h2 {
    margin-bottom: 15px;
}

.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sub-service-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.sub-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.sub-service-item h3 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.sub-service-item ul {
    list-style: none;
    padding: 0;
}

.sub-service-item ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    color: #555;
}

.sub-service-item ul li .icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1em;
    flex-shrink: 0; /* Prevent icon from shrinking */
    padding-top: 3px; /* Align icon better with text */
}

/* Specific Service Pages Styling (New) */
.service-page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x400?text=Service+Banner') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 50px;
}

.service-page-hero h1 {
    color: white;
    font-size: 3.5em;
}

.service-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.detail-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px var(--shadow-light);
    text-align: center;
}

.detail-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.detail-card p {
    color: #666;
}

.detail-card .icon-large {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Technologies Slider (Skills & Language) */
.skills-section {
    background-color: var(--card-background); /* Override background if needed */
    padding-bottom: 0;
}

.skills-section h3,
.skills-section p {
    text-align: center;
}

.technologies-slider-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) #f1f1f1; /* Firefox */
    padding-bottom: 15px; /* Space for scrollbar */
}

.technologies-slider-container::-webkit-scrollbar {
    height: 8px;
}

.technologies-slider-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.technologies-slider-container::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

.technologies-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    white-space: nowrap; /* Prevent wrapping */
    justify-content: center; /* Center items if they don't fill the space */
    padding: 10px 0; /* Padding around the badges */
}

.tech-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block; /* Ensure badges behave as block elements for padding */
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: background-color var(--transition-speed);
}

.tech-badge:hover {
    background-color: #0056b3;
}


/* Pricing Section */
.pricing-section {
    background-color: var(--background-light);
}

.pricing-content {
    text-align: center;
}

.pricing-benefits {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: 0 4px 12px var(--shadow-light);
    text-align: center;
}

.pricing-benefits h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.pricing-benefits .highlight {
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.8em;
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.pricing-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 15px var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px var(--shadow-medium);
}

.pricing-card h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 2.2em;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.pricing-card .details {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.pricing-card ul li {
    color: #555;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05em;
}

.pricing-card ul li::before {
    content: "\2713"; /* Checkmark icon */
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.pricing-card ul li .icon {
    margin-right: 8px;
    color: var(--accent-color);
}

.languages-supported, .quote-cta {
    margin-top: 30px;
    text-align: center;
}

.languages-supported h3,
.quote-cta h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.languages-supported p {
    font-size: 1.1em;
    color: #666;
}

/* Footer Section */
.site-footer {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 50px 20px 20px;
    text-align: center;
}

.tsis-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-around;
    text-align: left;
    margin-bottom: 30px;
}

.tsis-column {
    flex: 1 1 250px;
    min-width: 200px;
    padding: 10px;
}

.tsis-column h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.tsis-column ul {
    list-style: none;
    padding: 0;
}

.tsis-column ul li {
    margin-bottom: 12px;
    font-size: 0.95em;
}

.tsis-column a {
    text-decoration: none;
    color: #ccc;
    transition: color var(--transition-speed);
}

.tsis-column a:hover {
    color: var(--secondary-color);
}

.copyright-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.copyright-info p {
    margin: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 10px 0;
    }

    .sub-services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        max-width: 90%;
    }

    .tsis-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero-section {
        padding: 80px 15px;
    }

    .offers-list {
        flex-direction: column;
        gap: 10px;
    }
}

/* FORMULAIRE DE CONTACT */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00e7d4;
    box-shadow: 0 0 5px rgba(0, 231, 212, 0.3);
}

.contact-form .button {
    width: fit-content;
    align-self: center;
    background-color: #00e7d4;
    padding: 12px 30px;
    font-size: 1em;
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .button:hover {
    background-color: #009688;
}

/* SECTION À PROPOS */
.about-section {
    background-color: #fff;
    padding: 80px 20px;
    color: #333;
    text-align: center;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-lead {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.8;
    text-align: justify;
}

.about-content h3 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #007bff;
}

.about-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0 auto 30px;
    max-width: 600px;
}

.about-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 1em;
}

.about-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00e7d4;
    font-weight: bold;
}

/* Specific styling for the Service Overview section on the main page */
.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.service-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-card .button {
    margin-top: 15px;
}

.service-card .icon-service {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.team-section {
  background-color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.team-container {
  max-width: 900px;
  margin: 0 auto;
}

.team-intro {
  font-size: 1.3em;
  color: #444;
  margin-bottom: 30px;
  font-weight: bold;
}

.team-description p {
  font-size: 1em;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.team-description strong {
  color: #007bff;
}
